CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: poccil

Page 1 of 19 1 2 3 4

Search: Search took 0.13 seconds.

  1. File time and consistency between file system

    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...
  2. Replies
    1
    Views
    686

    Perhaps you should visually indicate to the user...

    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) \
    ...
  3. Replies
    3
    Views
    794

    int readfile (); double fee_adjuster(int...

    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...
  4. Replies
    2
    Views
    803

    CPen and co. are wrappers to the Windows handles...

    CPen and co. are wrappers to the Windows handles (HPEN and co.) from the Windows API.
  5. Thread: handle

    by poccil
    Replies
    3
    Views
    853

    As worded, "maximum handle" could mean the...

    As worded, "maximum handle" could mean the maximum value of an NT handle, which uses all 32 bits.
  6. Thread: Gray window

    by poccil
    Replies
    3
    Views
    851

    This occurs because you're doing a background job...

    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:
    ...
  7. Replies
    3
    Views
    1,451

    The FindResource function should choose an...

    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.
  8. Use the GetVolumeInformation function.

    Use the GetVolumeInformation function.
  9. Thread: Super Edit

    by poccil
    Replies
    8
    Views
    1,170

    I don't recommend a recursive Fibonacci method,...

    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...
  10. Thread: ASCII char

    by poccil
    Replies
    3
    Views
    844

    The virtual keys as used in Windows are VK_RIGHT...

    The virtual keys as used in Windows are VK_RIGHT and VK_LEFT. Explain why you need to know this.
  11. Thread: Super Edit

    by poccil
    Replies
    8
    Views
    1,170

    Perhaps it's better to say where you have...

    Perhaps it's better to say where you have problems in your post?
  12. Replies
    8
    Views
    5,780

    wc.lpfnWndProc = (WNDPROC)WindowProc; Every...

    wc.lpfnWndProc = (WNDPROC)WindowProc;


    Every window class must have a window procedure. Be sure to cast to WNDPROC to avoid the error.
  13. Replies
    1
    Views
    708

    Similar:...

    Similar:
    http://www.codeguru.com/forum/showthread.php?s=&threadid=245882

    Related:
    http://msdn.microsoft.com/msdnmag/issues/01/07/winmgr/default.aspx
  14. Replies
    6
    Views
    1,674

    Similar:...

    Similar:
    http://www.codeguru.com/forum/showthread.php?s=&threadid=261780
  15. Replies
    3
    Views
    986

    The appearance of the button depends on the...

    The appearance of the button depends on the bitmap's look, particularly its colors. Can you show us the button's bitmap?
  16. Thread: SetItemData

    by poccil
    Replies
    7
    Views
    1,751

    A double is 64 bits wide, but the size of item...

    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.
  17. Replies
    5
    Views
    809

    You should change your approach. By "the files it...

    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...
  18. Replies
    3
    Views
    1,730

    You should handle the menu initialization in the...

    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 |...
  19. Replies
    3
    Views
    750

    Any data variable, including pointers, has a...

    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.
  20. Replies
    6
    Views
    938

    Be aware that some paths, such as UNC paths,...

    Be aware that some paths, such as UNC paths, aren't referenced by a drive letter.
  21. Thread: Files Help.

    by poccil
    Replies
    2
    Views
    695

    In , the function is called "remove".

    In <stdio.h>, the function is called "remove".
  22. Replies
    2
    Views
    873

    The DOS SUBST command associates a path with a...

    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
  23. I see plenty of things wrong with it. The...

    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...
  24. Are you trying to read a hard disk? See the...

    Are you trying to read a hard disk? See the article

    http://support.microsoft.com/?kbid=137176
  25. Replies
    1
    Views
    8,894

    http://www.codeguru.com/forum/showthread.php?s=&po...

    http://www.codeguru.com/forum/showthread.php?s=&postid=799568#post799568
Results 1 to 25 of 469
Page 1 of 19 1 2 3 4





Click Here to Expand Forum to Full Width

Featured