System() ; Spawn*() ; does not work properly for my specific EXE program

hi to everyone

i use Borland C++ 3.01 (yes that "ugly" blue screen , why? because i write programs that manipulates txt files and Dos C++ works faster then any visual)

i have this program(lets call it x.EXE) i want to run from my code

the x.EXE reports an error (in windows) when i try to run it from my C++ program (using either system command or spawn* command.
you know the error i am talking about
GeoCoderBatchTool has encountered a problem and needs to close. We are sorry for the inconvenience

but when i doubleclick it in windows explorer it works fine.

i tried calling a batch file (that has "x.exe" in it) from my C++ program but it didn't work as well.

i ran the x.exe manually from the command prompt window , and it also worked fine.

does anyone has any ideas on how to make it work?
appriciate any help
Dos C++ works faster then any visual
I very much doubt that.

Why don't you call it through the API? CreateProcess().
http://msdn.microsoft.com/en-us/library/ms682425.aspx
I can't remember if it was blocking or not. I think it is.
Last edited on
Maybe the problem is in Borland? I have heard that isn't really good. Maybe give it a try with dev-cpp or VS? You can get both for free.
Topic archived. No new replies allowed.