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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. problem with CreateProcess

problem with CreateProcess

Scheduled Pinned Locked Moved C / C++ / MFC
oraclehelpdatabasequestion
2 Posts 2 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.
  • P Offline
    P Offline
    prabhathgk
    wrote on last edited by
    #1

    I am trying to execute an .sql file to creating tables in Oracle(8i) using CreateProcess() in my program and the system is giving my error that 'sqlplus.exe has encountered a problem and needs to close.' I want to know more about it //////////////////////////////////// //assume : CString cmd; LPTSTR m_szCommand; cmd.Format("C:\\oracle\\ora81\\bin\\sqlplus.exe man1/man1@rcrmtest @D:\\MainMaster.sql"); m_szCommand = cmd; Success = CreateProcess(NULL, LPTSTR(m_szCommand), NULL, NULL, TRUE, 0, NULL,m_szCurrentDirectory,&StartupInfo, &ProcessInfo); ///////////////////////////// As soon as the createprocess is executed I am getting 'Success' = true; but immediately am getting the above metioned warning. Can you figure out the problem?

    D 1 Reply Last reply
    0
    • P prabhathgk

      I am trying to execute an .sql file to creating tables in Oracle(8i) using CreateProcess() in my program and the system is giving my error that 'sqlplus.exe has encountered a problem and needs to close.' I want to know more about it //////////////////////////////////// //assume : CString cmd; LPTSTR m_szCommand; cmd.Format("C:\\oracle\\ora81\\bin\\sqlplus.exe man1/man1@rcrmtest @D:\\MainMaster.sql"); m_szCommand = cmd; Success = CreateProcess(NULL, LPTSTR(m_szCommand), NULL, NULL, TRUE, 0, NULL,m_szCurrentDirectory,&StartupInfo, &ProcessInfo); ///////////////////////////// As soon as the createprocess is executed I am getting 'Success' = true; but immediately am getting the above metioned warning. Can you figure out the problem?

      D Offline
      D Offline
      Dennis Gourjii
      wrote on last edited by
      #2

      Have you actually tried running it manuall with the same parameters? I think you'll get the same errror because the problem is with sqlplus.exe, not CreateProcess (since it returns true).

      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