Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Problem in SearchPath

Problem in SearchPath

Scheduled Pinned Locked Moved C / C++ / MFC
help
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SiddharthAtw
    wrote on last edited by
    #1

    I want to initialize a executable, making OS to search for the file. STARTUPINFO si = {sizeof(si)}; PROCESS_INFORMATION pi; TCHAR szCommandLine[1024] = {0},*pszCommandLine = 0; DWORD lFileName = SearchPath(NULL,(LPCWSTR)"YPager",(LPCWSTR)".exe",(DWORD)sizeof(szCommandLine), szCommandLine, *pszCommandLine); BOOL bCreate = CreateProcessNULL,szCommandLine,NULL,NULL,FALSE,0,NULL,NULL,&si,&pi); there is no complier error but szCommandLine cannot fill the path. Any other suggestions to achieve the same goal is appreciated. Cheers! Siddharth

    S 1 Reply Last reply
    0
    • S SiddharthAtw

      I want to initialize a executable, making OS to search for the file. STARTUPINFO si = {sizeof(si)}; PROCESS_INFORMATION pi; TCHAR szCommandLine[1024] = {0},*pszCommandLine = 0; DWORD lFileName = SearchPath(NULL,(LPCWSTR)"YPager",(LPCWSTR)".exe",(DWORD)sizeof(szCommandLine), szCommandLine, *pszCommandLine); BOOL bCreate = CreateProcessNULL,szCommandLine,NULL,NULL,FALSE,0,NULL,NULL,&si,&pi); there is no complier error but szCommandLine cannot fill the path. Any other suggestions to achieve the same goal is appreciated. Cheers! Siddharth

      S Offline
      S Offline
      Stlan
      wrote on last edited by
      #2

      It will not help you to get a response faster!

      A 1 Reply Last reply
      0
      • S Stlan

        It will not help you to get a response faster!

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        There was a bit problem with my server. Hence it's like that. Any way sorry if anyone get anoyed

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups