Calling an SDI app from a Dialog

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: May 2007
Posts: 28
Reputation: gaasha is an unknown quantity at this point 
Solved Threads: 0
gaasha gaasha is offline Offline
Light Poster

Calling an SDI app from a Dialog

 
0
  #1
May 21st, 2007
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
  1. #include "..\TypingEditor\TypingEditor.h"
and then creating its object with 'new'.
  1. CTypingEditorApp *te = new CTypingEditorApp();
But there are errors saying:
  1. public: __thiscall CTypingEditorApp::CTypingEditorApp(void)" (??0CTypingEditorApp@@QAE@XZ)
  2.  

What am i missing or diong wrong?
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 1,496
Reputation: WolfPack has a spectacular aura about WolfPack has a spectacular aura about WolfPack has a spectacular aura about 
Solved Threads: 104
Moderator
WolfPack's Avatar
WolfPack WolfPack is offline Offline
Mentally Challenged Mod.

Re: Calling an SDI app from a Dialog

 
0
  #2
May 21st, 2007
Seems like a link error to me. Have you properly included the object files of the TypingEditor project to your current project.

バルサミコ酢やっぱいらへんで
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,639
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1497
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: Calling an SDI app from a Dialog

 
0
  #3
May 21st, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 28
Reputation: gaasha is an unknown quantity at this point 
Solved Threads: 0
gaasha gaasha is offline Offline
Light Poster

Re: Calling an SDI app from a Dialog

 
0
  #4
Jun 26th, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,639
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1497
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: Calling an SDI app from a Dialog

 
0
  #5
Jun 26th, 2007
>> I haven't got any help on these methods
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum


Views: 1207 | Replies: 4
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC