Search:
Type: Posts; User: poccil
Search:
Search took 0.13 seconds.
-
Given only a Win32 handle, is it possible to reasonably surmise the file system of that handle? Information I could use comes from GetFileTime, GetFileInformationByHandle, etc. A similar quesion may...
-
December 3rd, 2003, 10:01 PM
Perhaps you should visually indicate to the user whether a folder or a file was selected earlier, preferably while the list is being generated. Use these macros.
#define FileExists(f) \
...
-
December 3rd, 2003, 09:57 PM
int readfile ();
double fee_adjuster(int car_or_truck, int num_hours, int time_day);
int print_file (double fee);
int print_screen (double fee);
The prototypes of the functions are...
-
December 3rd, 2003, 09:42 PM
CPen and co. are wrappers to the Windows handles (HPEN and co.) from the Windows API.
-
December 3rd, 2003, 09:39 PM
As worded, "maximum handle" could mean the maximum value of an NT handle, which uses all 32 bits.
-
October 1st, 2003, 12:31 PM
This occurs because you're doing a background job in the same thread as the one with the windows. Create a worker thread to solve the problem. Relevant:
...
-
October 1st, 2003, 12:27 PM
The FindResource function should choose an appropriate language ID from the file if that resource exists.
Call GetUserDefaultLCID to retrieve the user's current locale (language) information.
-
October 1st, 2003, 12:18 PM
Use the GetVolumeInformation function.
-
October 1st, 2003, 12:15 PM
I don't recommend a recursive Fibonacci method, as RecursiveFibonacci(100) will take thousands of years to complete! Here's a better and more efficient rewrite:
long Fibonacci(int n){
long...
-
September 30th, 2003, 09:25 AM
The virtual keys as used in Windows are VK_RIGHT and VK_LEFT. Explain why you need to know this.
-
September 30th, 2003, 09:24 AM
Perhaps it's better to say where you have problems in your post?
-
September 25th, 2003, 07:57 AM
wc.lpfnWndProc = (WNDPROC)WindowProc;
Every window class must have a window procedure. Be sure to cast to WNDPROC to avoid the error.
-
September 24th, 2003, 10:37 AM
Similar:
http://www.codeguru.com/forum/showthread.php?s=&threadid=245882
Related:
http://msdn.microsoft.com/msdnmag/issues/01/07/winmgr/default.aspx
-
September 24th, 2003, 10:30 AM
Similar:
http://www.codeguru.com/forum/showthread.php?s=&threadid=261780
-
September 23rd, 2003, 10:30 AM
The appearance of the button depends on the bitmap's look, particularly its colors. Can you show us the button's bitmap?
-
September 23rd, 2003, 10:18 AM
A double is 64 bits wide, but the size of item data is sized to LONG_PTR, which may be only 32 bits wide. You can either allocate a pointer to the double or place a 32 bit float for the item data.
-
August 29th, 2003, 01:27 PM
You should change your approach. By "the files it will install", do you mean their file names, or their actual contents? If the former, which is the more likely case, I would suggest creating a...
-
August 29th, 2003, 01:21 PM
You should handle the menu initialization in the WM_INITMENU message. You may find these macros helpful.
#define EnableItemCond(hmenu,id,cond) EnableMenuItem((hmenu),(id),MF_BYCOMMAND |...
-
August 29th, 2003, 01:18 PM
Any data variable, including pointers, has a pointer to the address at which it is located. So a (void*) is a pointer to void, a (void**) is a pointer to a pointer to void, and so on.
-
August 29th, 2003, 01:13 PM
Be aware that some paths, such as UNC paths, aren't referenced by a drive letter.
-
August 29th, 2003, 01:10 PM
In <stdio.h>, the function is called "remove".
-
August 28th, 2003, 02:05 AM
The DOS SUBST command associates a path with a drive letter; here is a post discussing an attempt to emulate it.
http://www.codeguru.com/forum/showthread.php?s=&threadid=91671&highlight=subst
-
August 28th, 2003, 01:46 AM
I see plenty of things wrong with it. The function DrawCityMap must load six bitmaps every single time the program receives a WM_PAINT message, which can occur quite often. Why not load the bitmaps...
-
August 28th, 2003, 01:32 AM
Are you trying to read a hard disk? See the article
http://support.microsoft.com/?kbid=137176
-
August 26th, 2003, 01:39 AM
http://www.codeguru.com/forum/showthread.php?s=&postid=799568#post799568
|
Click Here to Expand Forum to Full Width
|