Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Getting the FULL PATH of a SDI application (MFC/VC++)

elbitoselbitos Member Posts: 1
Hi!

I know how to get the name of a SDI application using AfxGetAppName().
But I need to know at run time the full path (drive, folders etc..) of my application to then scan its folder for other files.
How do i do???

Thanks a lot for your help :)

Comments

  • stoberstober Member Posts: 9,765 ✭✭✭
    : Hi!
    :
    : I know how to get the name of a SDI application using AfxGetAppName().
    : But I need to know at run time the full path (drive, folders etc..) of my application to then scan its folder for other files.
    : How do i do???
    :
    : Thanks a lot for your help :)
    :

    [code]
    The GetModuleFileName function retrieves the full path
    and file name for the file containing the specified module.


    DWORD GetModuleFileName(
    HMODULE hModule, // handle to module
    LPTSTR lpFilename, // file name of module
    DWORD nSize // size of buffer
    );
    [/code]
Sign In or Register to comment.