First  |  Prev |  Next  |  Last
Pages: 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Create status bar
Hi, I am tring to create a regular status bar via C++ code, the following is an excerpt: [code] #define STRICT #include <windows.h> #include <windowsx.h> #pragma comment (lib, "comctl32.lib") #include <commctrl.h> (...) #define IDC_STATUSBAR 600 HINSTANCE hInst; // Gloabl (...) // HANDLE_MSG (... 10 Feb 2010 14:34
Quick printf binary number question
Hello, I am wondering how to display a binary number with printf. (00000001b) The specifier should look something like this printf ("%b\n", a); Have taken a look at my reference but did not find it Thanks in advance Jack ... 10 Feb 2010 23:35
StartupInfo in CreateProcess for ShowWindow
Hello NG, I start a process with CreateProcess. The called exe is a Win32 App that is run in a dos console. So CreateProcess opens the DOS console window. But I don't want show the DOS window or I want show it minimized. So I made following: STARTUPINFO startupInfo; PROCESS_INFORMATION processIn... 10 Feb 2010 06:42
"PORTING C" > NULL problem!
Hello, As you all know, I used to use a non C compliant compiler. Now in the new C compiler, I declared a NULL in a header file like this: #define NULL 0 so I could pass NULL as a function parameter... stuff like this: void f1(var1, NULL); ..... and so forth. I recently upgraded the compiler's version... 15 Feb 2010 04:21
Books on Shell and gadgets programming
Could anyone recommend some? Windows Shell programming + Windows Sidebar gadgets programming.... Thanks Jack ... 9 Feb 2010 05:06
how to gray a menu item
Hi, I have some difficulties understanding how to go about using EnableMenuItem() function (I need to gray a menuitem) BOOL EnableMenuItem( HMENU hMenu, UINT uIDEnableItem, UINT uEnable ); Now, I have the menu defined in an .rc and .h files like the following: //resource.h #define IDM_MENU ... 8 Feb 2010 11:07
Making userdefined messages like WM_PAINT or WM_QUIT
Raymond Chen's blog says, messages like WM_PAINT, WM_QUIT messages are treated in special way. http://blogs.msdn.com/oldnewthing/archive/2005/11/04/489028.aspx ie, even if more than one message is posted, system combines the messages only once the windowprocedure is called. I need this behaviour for a WM_APP or ... 8 Feb 2010 11:07
Using TCHAR with pcap and sockets (send/recv/setsockopt)
Hi all, I'm using Visual Studio .NET 2003, and I'm trying to write a program that can compile in both Unicode and Multi-Byte. Hence, the use of TCHAR. However, I'm getting errors on pcap functions and socket functions: error C2664: 'pcap_findalldevs': cannot convert parameter 2 from 'TCHAR[256]' to 'char *' ... 10 Feb 2010 06:42
filename string manipulation
I have the following code: void GLTexture::Load(char *name) { // make the texture name all lower case texturename = _strlwr(_strdup(name)); // strip "'s if (strstr(texturename, "\"")) texturename = strtok(texturename, "\""); //> At ths location I want to add "3ds models/" to the filename.. //And ... 8 Feb 2010 04:32
"PORTING C" > code for CURR_SYS_OSC
Hello, Igor, I hope you are still around, I would really like to persue what we were talking about in the previous thread. I know this seems like we are going backwards here, but the trouble I am having has more to do on structure than coding... and ofcourse my lack of experience in C ! :-) I hope all this... 8 Feb 2010 19:09
First  |  Prev |  Next  |  Last
Pages: 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23