Tech Support > Microsoft Windows > Development Resources
PlaySound, available memory
Posted on August 8th, 2004 | 1 Comments

I want to play a .wav file using PlaySound. However, it seems that the file does not fit into the available physical memory, only the first part is played and then it stops. However, it seems that...

unresolved external symbol "class foo dbg"
Posted on August 7th, 2004 | 3 Comments

Hello, I hope a Visual c++ expert can help me on that. I have a class: /* foo.h */ class __declspec( dllexport ) foo { void bar() { std::cout << "bar"; }; };

Message / PeekMessage() help..
Posted on August 7th, 2004 | 4 Comments

I don't know if I'm using PeekMessage wrong, or what. But I can't seem to check if a WM_MOVE message has been placed in the queue. I have a window class (C++ class) that contains various information...

Enumerating Network resources and shared folder files.
Posted on August 7th, 2004 | 2 Comments

i all, I used the method WNetOpenEnum() and WNetEnumResource() to enumerated the windows network resources like - My Network places - Entire Networks -Microsoft windows network - Net (DC) -...

DDK Print Driver Dialog Can't Focused
Posted on August 7th, 2004 | 2 Comments

I'm writting a print monitor. The monitor will pop up dialog to let user input file name. However, the dialog box can't get focused when it pops up. I tried functions such as SetFocus(),...

max size for String and Binary registry values?
Posted on August 6th, 2004 | 2 Comments

Hi y'all! When writing String and Binary values to the registry, is there a limit to the string length or data size I can use? I need to write a long string (approx. between 3000 and 5000...

Icons and bitmaps
Posted on August 6th, 2004 | 2 Comments

HBITMAP GetTheIcon() { HBITMAP oldBMP1, oldBMP2; HICON hIcon = LoadIcon(NULL, IDI_APPLICATION); HDC hdc = GetDC(NULL); HDC hdcMem1 = CreateCompatibleDC(hdc); HDC hdcMem2 =...

display ODBC scrollable result set in listview
Posted on August 6th, 2004 | 5 Comments

I'm using a list view control right now to display query results. But when I have large result sets it is not practical. So I want to implement a scrollable cursor and I'd like to use the list...

Sorting a ListView in Borland C++ 5.02
Posted on August 6th, 2004 | 1 Comments

I've been working on some code for about a week now and I'm getting very frustrated with it. I've put together a ListView control, populated it, and now I'm trying to sort on the columns. The...

WriteFile fails on few systems
Posted on August 6th, 2004 | 1 Comments

Hi, I have a USB device which i connect to with CreateFile() through an USB WDM interrupt driver. I later use WriteFile() on the same handle. This software and hardware combination works on probably...

Call Identifier ???
Posted on August 6th, 2004 | 0 Comments

Hi all, I really like to know how to set the "Call Identifier" for a MSRPC call? Thank you for your help in advance! Yours,

folder's icon
Posted on August 6th, 2004 | 4 Comments

Im using "SHGetFileInfo" to get the icon associated with a file. But when that file is a folder, i get no icon back. How can i get the icon for a folder? thanks. -- Alex Cohen

recv problem.
Posted on August 6th, 2004 | 2 Comments

I use recv to get messages from a server, every messages are separated by \r\n combination Here is my loop to receive the messages : while( ((trbytes = recv( Socket, RcvBuf, 8192, NULL)) != 0) &&...

Edit Subclassing
Posted on August 6th, 2004 | 2 Comments

Hello, I want to sublcass an Edit control so that I can catch when the user presses the enter key here's my subclass window proc, EditControlProc is the normal Edit window proc. LRESULT CALLBACK...

GINA, LogonUser, change password when first logon
Posted on August 6th, 2004 | 0 Comments

Hi! I wrote my own gina replacement and it works fine for a few months. there is only a problem when logging first time to the domain and I need to change the password. My code currently returns...

Enumerating Network resources and shared folder files.
Posted on August 6th, 2004 | 0 Comments

i all, I used the method WNetOpenEnum() and WNetEnumResource() to enumerated the windows network resources like - My Network places - Entire Networks -Microsoft windows network - Net (DC) -...

total fairy chase in DLL Hell
Posted on August 6th, 2004 | 5 Comments

This is sorta cross-topic, but i think this is the most appropriate place to ask first. I'm running a win32 c++ program from a shortcut. When I run the program from the build directory, it runs...

Re: How to detect if a screensaver is launched manually?
Posted on August 6th, 2004 | 0 Comments

Thanks. Finding out the kb / mouse idle time seems messy; usual way seems to be to add systemwide hooks. I might be able to get away with Norm's suggestion for the shortcuts that I install. Cheers...

LESSON LEARNED: Placing a modeless dialog behind a parent.
Posted on August 5th, 2004 | 1 Comments

I ahave a modeless dialog I want to place behing the invoking application when an MDI window or the application is selected. I tried many ways to do this: 1- Make it an overlapped dialog instead of a...

[beginner] programming a modem?
Posted on August 5th, 2004 | 1 Comments

Hello, I've got an easy problem to solve, but I have no idea how. Here is a simplification: I've got a modem on COM1 which can be in state 1 or 2. I'd like to create a script or a programm that...