944,110 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 1362
  • C++ RSS
May 21st, 2007
0

Calling an SDI app from a Dialog

Expand Post »
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
C++ Syntax (Toggle Plain Text)
  1. #include "..\TypingEditor\TypingEditor.h"
and then creating its object with 'new'.
C++ Syntax (Toggle Plain Text)
  1. CTypingEditorApp *te = new CTypingEditorApp();
But there are errors saying:
C++ Syntax (Toggle Plain Text)
  1. public: __thiscall CTypingEditorApp::CTypingEditorApp(void)" (??0CTypingEditorApp@@QAE@XZ)
  2.  

What am i missing or diong wrong?
Similar Threads
Reputation Points: 12
Solved Threads: 0
Light Poster
gaasha is offline Offline
29 posts
since May 2007
May 21st, 2007
0

Re: Calling an SDI app from a Dialog

Seems like a link error to me. Have you properly included the object files of the TypingEditor project to your current project.

Moderator
Reputation Points: 572
Solved Threads: 115
Mentally Challenged Mod.
WolfPack is offline Offline
1,559 posts
since Jun 2005
May 21st, 2007
0

Re: Calling an SDI app from a Dialog

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.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2283
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,961 posts
since Aug 2005
Jun 26th, 2007
0

Re: Calling an SDI app from a Dialog

Hi there!
Sorry for late response. I had other assignments with earlier deadlines.

Can u please tell me how to use CreateProcess() or ShellExecute() process with my project. I haven't got any help on these methods as I am using Visual C++ 6 Bible.
Reputation Points: 12
Solved Threads: 0
Light Poster
gaasha is offline Offline
29 posts
since May 2007
Jun 26th, 2007
0

Re: Calling an SDI app from a Dialog

>> I haven't got any help on these methods
Sure you do -- just use google and see MSDN
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2283
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,961 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: linking error
Next Thread in C++ Forum Timeline: program does not seems to run to end.





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC