Richard Shears's Q&A profile
Visual C# Getting name of cd in cdrom
I can use the Directory and DirectoryInfo to get every bit of information about the files contained on a CD in the drive. I can use the DriveInfo to get all the specifications about the CDRom with the exception of the Name assigned to the actual CD. The best I can get is the Drive letter and volume label. The volume label is not always the same as the cd name. For example, I have my bluetooth driver CD in at the moment.&n ...Show All
Visual C++ Migration from VC 6.0 to VC 7.1
I am porting from VC 6.0 to VC.NET 2003 and I am getting the following issue:- error C2143: syntax error : missing '}' before 'constant'. Plus any document or help on migration from VC 6.0 to VC 7.1 Best Regards, Just another try. So you include MSXML4 with an import. The ShObjIdl.h needs the DOm pointer definition. So using namespace MSXML2 will over this definition for the heaer file. Try to place: #import " ...Show All
.NET Development Instruction of IL in PE File(01)(70)(04)(0A)?
After running idasm, i found that IL_0000: /* 02 | */ ldarg.0 IL_0001: /* 18 | */ ldc.i4.2 IL_0002: /* 8D | (01)000004 */ newarr [mscorlib/* 23000001 */]System.String/* 01000004 */ IL_0007: /* 0A | */ stloc.0 IL_0008: /* 06 | */ ldloc.0 IL_0009: /* 16 | */ ldc.i4.0 IL_000a: /* 72 | (70)00001B */ ldstr "Hello World by " /* 7000001B */ ..... there are some (01), (70), ...Show All
Visual C# Thread Synchronization C# --> C++
Hello I have a little native dll written in C++. I call it's functions from C#, but I have some problems that I can't afford. I have no unerstanding in multi-threading at all, so your help will be appreciated. I have a C# class which uses BackgroundWorker. It calls the dll's function to determine some changes and if one found, it must trigger associated event. But the problem is that I call Connect() function from the BackgroundWorker's Do ...Show All
Visual C# Code Behind pages for VS C# 2005
Hello, In the class that I was in, double clicking on the .aspx page (in D esign mode)would open a file for the .aspx.cs page. However, when I do a double click in VS C# 2005 on the .aspx page, I get the following inserted into my .aspx page -------------------------------------------------------------- < script runat ="server"> protected void Page_Load( object sender, EventArgs e) { } </ script > ------------------- ...Show All
Visual Basic Can I run application(*.exe) that I wrote in VB2005 beta 2 in other computer?
I copy the "bin" library to another computer and tried to run the EXE file, at the first it ask me to reinstall ".net framework" so I installed from windows update and after that he write that he didn't find debug.... the o.s is windows 98 maybe this is the problem Hi, The Windows 98 is not on the dot net framework 2.0 supported operating systems list.  ...Show All
Software Development for Windows Vista Playing a wmv file
Hi I am looking to play a wmv file through directshow. I would like to play both the audio as well as the video streams. Basically i have a wmv file i need to read it and play it. I am working on win mobile 5.0. Also i have heard of the windows media source filter but not enough documentation available on it. If anybody could guide me i would be grateful Regards Adil Saleem I don't have win mobile, so I'm not sure what's availabl ...Show All
Smart Device Development Storage program
I've created an application for compact framework 2.0 and sql mobile. When the device need a cold boot i lose all my files. My device can't use an storage card but the device has built in storage cards when i put my program on a built in storage card an the device needs a cold boot, all files are there but i can't run my application because compact framework and sql mobile are missing... how do i solve this problem thanks ...Show All
Visual Basic Button State "Hanging"
I'm a newbie to VB 2005 converting from VB6 and I've run into a problem I don't understand! (I'm using VS2005). I'm using a "While" loop to detect when a Button has been clicked before the user can progress in the flow of the program. But when I call the code, the button whose event calls it seems to hang in the down state. To reproduce (slightly different but demonstrates the problem), set up a new project and add a button and a ...Show All
Windows Forms Checking a event handler exists
Hi all, I have one simple question, I override the OnPaint event for one control and call base.OnPaint(...) so I can have event handlers for this control. I want to know how can I check if a paint event handler is associated to this control, so I can call a default painting method only. Thanks ! I did not know that... I've only ever had to check "my own" delegates for null, so I assumed that it would ...Show All
Visual Studio 2008 (Pre-release) Determining whether WinFX Runtime Components are installed
I have a program that uses the WinFX runtime components that I would like to deploy using ClickOnce. I am trying to set up the runtime components as a prerequisite to the install of my app. I would like to be able to detect whether the runtime components are already installed on the client, and if they are not (or not the latest version) then require them to install them. How can I determine if they are installed and the version of the runtime i ...Show All
Smart Device Development How to get the DataGridView
I'm working on a Pocket PC Mobile 5.0 application project. I would like to use the DataGridView component. It is in the toolbox under "All Windows Forms" but it's grayed out. How do I get it to show up so I can use it Thanks, Bob Krauth DataGridView is not available on Compact Framework. You can: - Use DataGrid instead (good way to go). - Use 3rd party grid like controls (if you ne ...Show All
Visual Studio 2008 (Pre-release) Assembly problem!
I have a problem ask for your help! I'm puzzled by it several days. Maybe it is easy to you. Then,please help me! Thank you! In my project, there are Scene1.xaml, Scene1.xaml.cs, Page1.xaml, Page1.xaml.cs, and Application xaml, Application.xaml.cs, etc. Scene.xaml define a main window where I define a area to display Page1.xaml. In Page1.xaml: < Mapping XmlNamespace="uc" ClrNamespace="HyperBar" > <Grid x ...Show All
Visual Studio Team System Connecting from VS to controller
Hello there, we have one machine with Visual Studio and the second one with a controller installed. There is a VPN between those boxes and a firewall as well. We opened all ports in both directions which are mentioned in the documentation or in this forum. But when the test is started in the Visual Studio, the controller tries to connect back to the Visual Studio (probably to get the files of the test). And here is my problem: The Visual Studio ...Show All
Visual Studio Express Editions Deployment with VS 2005 Express Edition C++
Yo can some one tell me how you use deployment with VS 2005 express edition 2005 or if you even can use deployment. All I want to do is use my programs on other computers. If you have not opened bug already, please do so. The corresponding team will take a look on this issue. Thanks, Nikola ...Show All
