| | |
excute code
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jun 2008
Posts: 8
Reputation:
Solved Threads: 0
hello
i programing the code && design the interfaces
then , connect the programing with db "store the results in db"
then connect the db with interface and appeare the results on edit boxes in the interface
now , we want excute the programing code when click specific button .so, we use this function :
ShellExecute(this->m_hWnd,"open","proto1.exe","","", SW_SHOW );
when we run the interface and click the button excute the programing code"proto1.exe"
but the result false . the results diffrent about the results that appere when excute the file separetly on console also the data base some time doesn't update .so, the results itrated
also , the same copy from proto1 that deal with db and interface when take it in other place provide the same false results . althogh , ather copy of ptoto1 that dosn't deal with db and interface work very good
note , in proto1 code read from 2 files and these files important to programing the code and the results depod on them
in interface , the user do prowse and select 2 files . these file appear in edit boxes then stored in 2 other static files"in each chose for user change the content of files" that the proto1 read from them
i hope knowing why the results appearing false and db does not update
i programing the code && design the interfaces
then , connect the programing with db "store the results in db"
then connect the db with interface and appeare the results on edit boxes in the interface
now , we want excute the programing code when click specific button .so, we use this function :
ShellExecute(this->m_hWnd,"open","proto1.exe","","", SW_SHOW );
when we run the interface and click the button excute the programing code"proto1.exe"
but the result false . the results diffrent about the results that appere when excute the file separetly on console also the data base some time doesn't update .so, the results itrated
also , the same copy from proto1 that deal with db and interface when take it in other place provide the same false results . althogh , ather copy of ptoto1 that dosn't deal with db and interface work very good
note , in proto1 code read from 2 files and these files important to programing the code and the results depod on them
in interface , the user do prowse and select 2 files . these file appear in edit boxes then stored in 2 other static files"in each chose for user change the content of files" that the proto1 read from them
i hope knowing why the results appearing false and db does not update
Last edited by solaf_111; Jul 4th, 2008 at 12:54 am.
>>when we run the interface and click the button excute the programing code"proto1.exe"
but the result false
Do you mean ShellExecute() return 0? My guess is that you need to add the full path to the proto1.exe program. Example:
but the result false
Do you mean ShellExecute() return 0? My guess is that you need to add the full path to the proto1.exe program. Example:
ShellExecute(this->m_hWnd,"open","c:\\mydir\\proto1.exe","","", SW_SHOW ); Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
I'm sorry but I don't know how to help you. What compiler are you using? Are you using MFC or some other GUI ? What database are you using? How is proto1.exe accessing the database (ODBC or something else)? After running proto1.exe have you check the results in the db from command prompt or some other methodl outside your program?
Can't help you much without seeing code so that we can try the same thing to duplicate your problem.
Can't help you much without seeing code so that we can try the same thing to duplicate your problem.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
•
•
Join Date: Nov 2007
Posts: 979
Reputation:
Solved Threads: 209
•
•
•
•
yes, i do full path & put it in the same folder
both the same problem
Note that you should specify NULL for lpDirectory in order to use the calling program's working directory (now you are using a zero-length string).
http://msdn.microsoft.com/en-us/libr...53(VS.85).aspx
![]() |
Similar Threads
- when bad happens -> c program send mail (C)
- I need help 4 Dynamic GUI ??? (Java)
- combobox question (VB.NET)
- Need Help in Reading characters from a text file (C++)
- Simple Command Line interface - (Java)
- PUTTING C++ TO USE!!! (GUIs & MS Windows) (C++)
- TO CHAINSAW - or anybody else who knows C++ (C++)
Other Threads in the C++ Forum
- Previous Thread: About converting files??
- Next Thread: Eclipse shutting down at start
| Thread Tools | Search this Thread |
Tag cloud for C++
6 add api array arrays beginner binary bmp c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete desktop directshow dll download dynamic encryption error file forms fstream function functions game givemetehcodez google graph gui iamthwee ifstream input int java lib library lines linkedlist linker loop looping loops map math matrix memory microsoft newbie news number output pointer problem program programming project python random read recursion recursive reference return sort string strings struct studio system temperature template templates test text text-file tree unix url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets






