Results 1 to 4 of 4

Thread: Application Path [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125

    Application Path [RESOLVED]

    Resolved by other means

    I am using the following code which I found on this site to get the application filename and path, etc., but I want to just get the path so I can append "\mysql\setup.exe" to the end of it. What function can I use to strip the program's name off the end after the last '\\'?

    Code:
        char filename[MAX_PATH];
        GetModuleFileName(GetModuleHandle(NULL), filename, MAX_PATH);
        MessageBox(filename, "MasterSaw Installer", MB_OK);
    BTW, I am using MFC.

    Thanks.
    Last edited by MidgetsBro; Oct 7th, 2002 at 07:11 PM.
    <removed by admin>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width