Karl Blessing
Programmer
I have an application, that is targeted at NT(but had to be developed on a 98 machine) after fixing alot of things, like removing references and using createObjecT() instead, I have this function that seems to be causing the program to just freeze and causes anything that it executes, to be frozen, or locked.<br><br>Public Function ExecCmd(cmdline$, curFolder$)<br> Dim proc As PROCESS_INFORMATION<br> Dim start As STARTUPINFO<br> Dim ret As Long<br><br> start.cb = Len(start)<br> <br> ret& = CreateProcessA(0&, cmdline$, 0&, 0&, 1&, _<br> Null, 0&, curFolder$, start, proc)<br><br> ret& = WaitForSingleObject(proc.hProcess, INFINITE)<br> Call GetExitCodeProcess(proc.hProcess, ret&)<br> Call CloseHandle(proc.hThread)<br> Call CloseHandle(proc.hProcess)<br> ExecCmd = ret&<br> End Function<br><br>the part that says NULL was originally CREATE_NO_WINDOW(&H8000000) , then changed to SW_SHOWNORMAL, still nothing, when i execute this dos exe manually, it'll extract fine, and shows fine, but if I execute it from the program, it either freezes, also I Want to be able to show it, since the extraction may take upto 3 mins, and I dont want the user reaching for their reset button thinking nothing is happening. any Ideas? <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML,Visual InterDev 6, ASP(WebProgramming), QBasic(least i didnt start with COBOL)