| | |
Calling an SDI app from a Dialog
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: May 2007
Posts: 28
Reputation:
Solved Threads: 0
I made an SDI application. I want to invoke it by clicking a button on a dialog in another application.
I am using VC++ and tried including the header file of former
and then creating its object with 'new'.
But there are errors saying:
What am i missing or diong wrong?
I am using VC++ and tried including the header file of former
C++ Syntax (Toggle Plain Text)
#include "..\TypingEditor\TypingEditor.h"
C++ Syntax (Toggle Plain Text)
CTypingEditorApp *te = new CTypingEditorApp();
C++ Syntax (Toggle Plain Text)
public: __thiscall CTypingEditorApp::CTypingEditorApp(void)" (??0CTypingEditorApp@@QAE@XZ)
What am i missing or diong wrong?
You can't invoke one executable program (*.exe) from another by merly including a header file and calling new to create an instance of it. You have to use CreateProcess(), ShellExecute() or another similar function to launch an instance of that program.
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 haven't got any help on these methods
Sure you do -- just use google and see MSDN
Sure you do -- just use google and see MSDN
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.
![]() |
Similar Threads
- vb6 to vb.net conversion problems (VB.NET)
- Common Dialog (Visual Basic 4 / 5 / 6)
- vc++ mfc-i can't make getline work with a string for file input (C++)
- I'm Getting Bonked ? (Windows NT / 2000 / XP)
Other Threads in the C++ Forum
- Previous Thread: linking error
- Next Thread: program does not seems to run to end.
Views: 1207 | Replies: 4
| Thread Tools | Search this Thread |
Tag cloud for C++
6 add api array arrays beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete desktop directshow dll encryption error file forms fstream function functions game getline givemetehcodez google graph homeworkhelper iamthwee ifstream input int integer java lazy lib linkedlist linux loop looping loops map math matrix memory microsoft newbie news node number output parameter pointer problem program programming project proxy python random read recursion recursive reference return sort string strings struct studio system template templates test text tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






