FAQ Database Discussion Community


SerialPort object does not receive any data under Windows XP

c#,.net-4.0,serial-port,windows-xp
I have a SerialPort object to control a gsm modem connected to a virtual com port. My problem is that i do not receive any data under Windows XP. The DataReceived Event is not triggered nor outputs port.ReadExisting() any data if called periodically. But when i shut down my program...

Highest .NET version supported by Windows XP

.net,windows-xp,compatibility
What is the highest version of the .NET framework that is supported by Windows XP (32-bit)

C# Generic GDI+ Error when using Image.Save()

c#,windows,windows-xp,gdi+,tiff
I am a relative novice with imaging in C#. This is my first question on this board after a very long time of being a member. I hope it can help me get through this tricky scenario. I need to read the contents (frames) of a Multi Page TIFF, saving...

Create an ICO working on XP with python from a PNG or JPG

python,python-2.7,windows-xp,python-imaging-library,ico
ICO created from PNG or JPG with python Pillow are not working on Windows XP. ICO works fine on Vista and later versions. I wrote a simple code which demonstrate that an ICO which was working on XP and saved with PIL break it on XP: from PIL import Image...

Can't get an error in VB6 on Windows 7 while I can on Windows Xp

windows-7,vb6,windows-xp
I must correct some trouble on a program which is made in VB6. When I try to print a file in XPS type and then I close the folder selection box the program give me a "Run time error 482". So I decide to get the error with this :...

How to issue a READ CD command to a CD-ROM drive in Windows?

c,winapi,windows-xp,ioctl,cd-rom
I'm working on an application that needs to issue raw SCSI commands to a CD-ROM drive. Currently, I'm struggling with sending a READ CD (0xBE) command to the drive and getting back the data from a given sector of the CD. Consider the following code : #include <windows.h> #include <winioctl.h>...

Script to Install Font in Windows XP

vbscript,windows-xp
I am trying to install fonts in windows XP using a VBScript. But for some reason my script works fine in Windows 7 but does not work in Windows XP. I need to install fonts without a system reboot so, I had to choose this approach instead of other registry...

C++ - GetUserName() when process is run as administrator

c++,windows-7,windows-xp,windows-vista,username
I have a simple C++ program that prompt the user name #include <windows.h> #include <Lmcons.h> #include <winbase.h> int _tmain(int argc, _TCHAR* argv[]) { wchar_t username[UNLEN + 1]; DWORD username_len = UNLEN + 1; ::GetUserName(username, &username_len); MessageBox(NULL, username, NULL, 1); return 1; } GetUserName() performs as expected in administrator accounts, meaning...

How to Close CMD after starting an program

windows,batch-file,cmd,windows-xp
I have wrote a batch file that opens two CMD windows in the folder I want so that I can run a server and type commands. I also want to be able to open firefox and sublime editor. Everything works except I am left with 4 cmd windows not just...

regsvr32 Custom ocx file not Registering

vba,windows-xp,regsvr32
I've been asked to install an old VB program on an XP computer, but when I do I get an error when I run the program saying that Component 'filename.ocx' or one of its dependencies is not correctly registered: a file is missing or invalid. This is a custom file...

Change Minimizing Visual Effect

c#,.net,forms,windows-xp,effects
I've created an app with invisible form. (Opacity = 0 or Visible = false ShowInTaskbar = false) I've tried a lot of different ways of activating my form while having active other applications. By "activating" I mean giving focus to it without making it visible. For some reason, Activate() and...

How to format dir command in cmd for XP and Win 2000

windows,cmd,windows-xp,windows-2000
When I use dir command in win XP it returns all kind of info: Volume in drive C is OSDisk Volume Serial Number is AEF7-B35F Directory of C:\Users\bd250124\Desktop\test 06/11/2015 12:14 PM <DIR> . 06/11/2015 12:14 PM <DIR> .. 06/11/2015 12:14 PM 10 test01.txt 06/11/2015 12:13 PM 0 test02.txt 2 File(s)...

Can Apache Cordova compile to legacy Windows desktop apps (non-metro)?

javascript,cordova,windows-7,windows-xp,cordova-3
I need to develop an app that retrieves and saves data interacting with users, with a high focus on multi-platform support and rapid development. The app does not require heavy graphics or processing etc. I'm considering the use of Apache Cordova. Can it compile and run as a native desktop...

using hook on OPENFILEW dialog disables resize control

winapi,dialog,windows-xp,hook
Using this code the resulting dialog box is drawn without ability to be able to be resized by mouse: #include <windows.h> static UINT_PTR CALLBACK OFNHookProc (HWND hdlg, UINT uiMsg, WPARAM wParam, LPARAM lParam) { return 0; } int main() { OPENFILENAMEW ofn; ZeroMemory(&ofn, sizeof(ofn)); ofn.lStructSize = sizeof(OPENFILENAMEW); ofn.nMaxFile = MAX_PATH;...