Advertisement

635 organizations, including eBay, Ericsson and Lockheed Martin, now work smarter with Corporate Accounts. Save up to 42%

 

Welcome! If you have any general questions about Experts Exchange, feel free to ask me.

 
Time Tested Windows Programming Solutions: 51 - 75 of 1838
 
Hi,     I am trying to access the USB Port through the Windows SDK.I am using the CreateFile() and passing the device File Name as \\\\.\\USB001 or \\\\.\\usbscan0(tried all the other permuta...
I wrote a script that deletes files 4 days and older from a drive.  This is needed because if the drive fills up, the rest of the functions fail.  I would like some way to idenitfy the file(s)...
Hello, I have a picture box, in which I need to draw a rectangle when user makes a selection by dragging the mouse. I am able to capture the mouse click event in the picture box(by der...
I need the RGB values of the color orange (couldn't find it in MSDN or in the Windows books that I have).  If possible, it would be great to get a link a place where they have a complete list ...
Hi, I have made a non-Unicode MFC application and now I am trying to add multi-language support. The only possible way I have found to do that, is to have resources loaded from Win32 re...
Is there a way to limit the CPU usage of an application? I have an app running and it needs to have at least 30% CPU all the time.  Problem is that scrolling in IE or acrobat reader pegs the C...
I have to write an application that sends some keystrokes to other applications. I have to send them by using WM_KEYDOWN. Unfortunately, sometimes (too much...) the translation is wrong, and a...
Hello everyone,   I am trying to read the Outlook 2000/XP account details from the registry using VBScript (WSH specifically), so I can then import the information into an asset managemen...
Hi all! How to change IP address from program (visual C++) in WinXP without machine reboot? By the way if I change IP address in WinXP from program through changing register value must I reb...
Hi, I need to convert a CString to a wstring. Actual I do it while initialize the wstring (std::wstring path(sTempBuffer);) , but now I need to do it in a function. So how to convert a CStrin...
When using CreateWindow , the first classname could be like "button" or "static". When using the "listbox" it should be able to make a drop down listbox.. How do i fill this listbox with vari...
I want to be able to open a file in MSDEV using the command line, without getting a new MSDEV app instantiation. This attempt: "C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\M...
I am trying to write an application that, given an inf file, driver, and necessary info, would install the driver and add a printer automatically to any windows system without going through th...
Hi, I was wondering where I can find a list of assembler equivilants in hex. I am not sure of the proper name, so searching on altavista didn't turn up much. What I mean is when a program...
I am hooking NtSetInformationFile in order to prevent certain files from being deleted, How can I get a files full path when I only have its handle ?
Hi people... I am trying to get the GUID of users in Windows 2003 Active Directory? Any ideas? Thanks Balan
Hi, I want a utility that will allow me to view the OLE/COM objects that are registered on my computer. Would be really cool if it displayed properties / methods as well. Can I down l...
Hi all, I have SourceSafe 6.0d. We have recently (a few months ago) transferred our SourceSafe database to a new server. Although this was unpleasant, once I'd got over all the problems,...
Hi, I'm overriding the WndProc method  of a Windows Form in C#.NET and would like to know where I can get a list of all the Windows Messages and their corresponding constant values, on the ...
We use ShellExecute to open PDF files after generation.  This works fine on 2000, XP and most Vista setups. My problem is that one Vista machine opens the PDF in notepad.  File associations...
Hello, Here is our problem. If I am wrong in any place please correct me. The whole context I am discussing here is with respect to Windows XP Professional Operating System on intel’s Penti...
I would like to have a solution for the problem that's not written with MFC code or similiar, but uses "lo-level" Win32 apis C calls. // create a window class with aWc.hbrBackground     = (HB...
Hey Guys, I have written a Printer Mapping script in VBS/WSH (see actual script below) and have 2 questions: 1) Is there a way to permanently elevate/run a VBS script with admin privileges...
On Windows XP I can set the priority of a process with the aid of the taskmanager. There I can set the process priority to "realtime" where needed. Is it possible to do that programmatically, ...
How can I change the font in a ListView? I send a WM_SETFONT, and it changes the font, but the height of lines don't change. If i assign a big font, the result is that we see part of text an...