954,487 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Calling an SDI app from a Dialog

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

#include "..\TypingEditor\TypingEditor.h"

and then creating its object with 'new'.

CTypingEditorApp *te = new CTypingEditorApp();

But there are errors saying:

public: __thiscall CTypingEditorApp::CTypingEditorApp(void)" (??0CTypingEditorApp@@QAE@XZ)


What am i missing or diong wrong?

gaasha
Light Poster
29 posts since May 2007
Reputation Points: 12
Solved Threads: 0
 

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

WolfPack
Postaholic
Moderator
2,051 posts since Jun 2005
Reputation Points: 572
Solved Threads: 115
 

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.

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

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.

gaasha
Light Poster
29 posts since May 2007
Reputation Points: 12
Solved Threads: 0
 

>> I haven't got any help on these methods
Sure you do -- just use google and see MSDN

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You