Miguel Angel Herrera Escobar's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. DX9c and VStudio 6
I just downloaded the DX9c SDK and it did not add an application template to the IDE. Can I do this manually Do I need to reinstall Thanks. -Lee Mykre is correct, no DirectX app template any more. I think the only IDE integration that the SDK adds is 'Run with Debug runtime' and Shader Debugging. ...Show All
Visual Studio Properties of Chart Object
Are the properties of the chart object accessible i.e. Chart Title, X-axis, and Y-axis. Thanks, Bunk As mentioned in your other thread, the ReportViewer controls are based on the Report Definition Language (RDLC). You define charts in RDLC and you can set properties there to a constant value or to an expression. However, the RDLC objects (such as chart, matrix, table, etc.) cannot be directly accessed through the ReportViewer API. -- Robert ...Show All
Visual Studio Inconsistent Behavior With Commands on Menu vs. Toolbar
I have added a new command by implementing a package. I want this command to appear on the "Build" menu, and in the "Build" toolbar, but only when the project factory for my new project type has context. I am able to do this succesfully on the "Build" menu, but my new command is only greyed out, not absent from the "Build" toolbar, when it should be. My .ctc file looks as follows: CMDS_SECTION guidBuildToolbarsPkg MENUS_BEGIN // NewMenu Relative to Group Priority Type Name Text MENUS_END NEWGROUPS_BEGIN // NewGroup Parent Group Pri ...Show All
Visual Basic Mixed string and numeric record I/O
I'm looking for a VB 2005 example of reading a non-text file into a structure and writing from it; basically record I/O. In VB 6 I defined a record like Type CRecord CName As String * 15 CDesc As String * 34 CNuTp As Integer CNuRs As Integer COnOf As String * 1 End Type and opened the file as Random and read the records into a buffer with the CRecord type. I can't find any example of this in the VB 2005 help system, and when I try the auto-translated version I get a "read past end of file" error on the first record read. I suspect the problem is with the Structure that replaced the Type to define the record, and may ...Show All
Microsoft ISV Community Center Forums Need recommendation on Office/VBA/.NET/C# solution (cross-posting from the VSTO Forum)
****** The reason that I am cross-posting this from the VSTO froum is to reach the widest expert base. Thanks. ****** We want to move logic currently in Word XP VBA to C# component(s). What the VBA code basically does is calling Web Services that are implemented in Java, and display the returned data in Word documents. Our requirements are: improved performance easiness to install the components on end-user's PC's ability to be shared the components across all the products in the Office suite After doing some reading, there seem to be 2 solutions to me: Register the C# components as plain-vanilla COM objects using COM interop and call ...Show All
.NET Development PInvoke/Interop to access unmanaged code
Hi. I have a c# program which is using an unmanaged 3rd party dll to control a device. I am using the following code to access the dll: _________________________________ [DllImport("3rdPartyInf.dll")] public static extern uint Init([In]int par1, [Out] char[] param2, [Out] uint param3); _________________________________ Now, the problem is that while this is fine for our desktop machines, it throws a DllNotFoundException - Unable to load DLL ("3rdPartyInf.dll") if I try to use a laptop (Dell Latitude D800). It makes no difference whether I try to access the dll from vc++ or from c# - even from vb! All the machines are running XP ...Show All
Visual C# When does P/Invoke free a DLL from memory again ?
From MSDN "a closer look at platform invoke" it listed the steps when an unmanaged functions is called 1. Locate DLL containing function. 2. Load this DLL into memory 3. Locate the function in memory and push its agruments onto the stack. 4. Transfer control to unmanaged function. The first function I intend to call from the unmanaged DLL initialises alot of global variables which subsequent calls can use. Can I hold an instance of the loaded module to pass around in mananaged code How do I know subsequent calls to the same DLL will use the same instance and therefore see the same global variables Or wh ...Show All
Visual Studio Key Value Pairs / Building Command Line Parameters - Question
I have searched around quite a bit to find the 'standard' method of populating a key-value pair list in a target application. So far, I haven't found a standard method of doing for this situation; any suggestions would be appreciated. Ok, here is the situation: Let's say we have an application 'MyApp.exe' that allows a user to enter some command line parameters: MyApp.exe /BackColor:#000000 /UserDefinedParam:asdf /AnotherParam:123 So, MyApps.exe is now going to be exposed to MSBuild, by deriving from Microsoft.Build.Framework. Task . The first param will be exposed as a property. So the MSBuild project ...Show All
Visual C++ why would operator=() and operator*() conflict in ref class??
I have some code that boils down to this: ref struct A { A % operator =( const A % other) { return * this ; //<<-- offending line - thinks I mean make "this" an int as defined below: } int operator *() { return _i; } int _i; }; int main( array <System::String ^> ^args) { A a, b; a = b; return 0; } So when I compile this example in VC++ Express 2005 I get the following error: : error C2440: 'return' : cannot convert from 'int' to 'A %' What is the way around this problem If I make A a non-ref type and change the '%' to ' ...Show All
Visual Studio Express Editions How do I become a "known" publisher, so I can eliminate the security warning?
Visual Basic 2005 Express Edition: When my application is installed from a CD, I get: Application Install - Security Warning Publisher cannot be verified. Are you sure you want to install this application Unknown Publisher. How do I become a "known" publisher, so I can eliminate this warning http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnwinforms/html/clickoncetrustpub.asp Best regards, Johan Stenberg ...Show All
.NET Development Problems with WebClient.UploadFileAsync
Hi, Consider the following code: //-------------------------------------------------------------------------- public Form1 { WebClient client = new WebClient(); client.UploadProgressChanged += new UploadProgressChangedEventHandler (client_UploadProgressChanged); client.UploadFileCompleted += new UploadFileCompletedEventHandler (client_UploadFileCompleted); Uri uri = new Uri ( http://example.com/upload.aspx ); client.UploadFileAsync(uri, @"c:\somefile.bin"); } void client_UploadProgressChanged( object sender, UploadProgressChangedE ...Show All
Visual Basic Process question
Is there a way to trap an event relating to trying to start a process when the computer lacks the application. For instance doing a process.start on a MS Project file when the computer lacks the application. Now my application just hangs when that occurs. Thanks, Fred your app is hanging because of the never ending loop: While Not proc.HasExited End While Get rid of the loop and add proc . StartInfo . ErrorDialog = True so your code will look like this: Dim proc As New System.Diagnostics.Process proc.StartInfo.UseShel ...Show All
Visual Basic Error Msg - "multiple definitions with identical signatures"
I recently had to recover a hard drive. I was able to get an earlier draft of my program and rewrite most of what I'd lost, but meanwhile had to wipe the drive, load a newer version of XP, etc. I've gotten everything back except now I get this one last error msg and I can't find the source. This wasn't happening earlier when the very same language was running: "Private Sub InitializeComponent() has multiple definitions with identical signatures." This comes up in the designer view of a second form I call from a button click on form1. I suspect that you are running on VB 2005. If that is the case, check your .designer fi ...Show All
Visual Studio Team System Getting exception.System.Threading.ThreadAbortException while running a test (Beta 2)
In my project, there some functions those invoke threads. I added some unit test cases for them. But when I run them using Test Manager, I receive a ThreadAbortException. There is no problem in those functions as they are already being used in some of the applications. But when I try to invoke those methods using Test menu of Visual Studio IDE, I get this exception. Has anybody faced this problem before I have created a sample code to explain what I am doing. Here it is: Sample of My Class: using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; using System.Threading; namespace ClassL ...Show All
Smart Device Development Deployment Issues When Development Workstation & Device Shut Down
Hello, I have been working with a Windows CE 5.0 based industrial controller and VS 2005 Pro. I have been able to connect to the device and deploy my application with ActiveSync 4.1 and the "Debugging on CE5.0 device without ActiveSync" directions (http://blogs.msdn.com/vsdteam/archive/2005/04/28/413304.aspx), but it took several hours of trying various combinations of ActiveSync resets and running "conmanclient2" and "cmaccept" on the client to get the deploy to work. Once my C# application deployed for the first time, it continued to deploy -- build after build, even across client resets. The problems start w ...Show All
