Click here to Skip to main content
15,915,093 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Adding WTL to an MFC project Pin
Michael Dunn17-May-05 17:34
sitebuilderMichael Dunn17-May-05 17:34 
GeneralIs this Possible Pin
ThatsAlok11-May-05 21:07
ThatsAlok11-May-05 21:07 
GeneralRe: Is this Possible Pin
Vi212-May-05 21:13
Vi212-May-05 21:13 
GeneralRe: Is this Possible Pin
ThatsAlok12-May-05 21:50
ThatsAlok12-May-05 21:50 
GeneralRe: Is this Possible Pin
Vi212-May-05 22:04
Vi212-May-05 22:04 
GeneralATL Component not working properly in windows 98 Pin
naveen.V8-May-05 22:55
naveen.V8-May-05 22:55 
GeneralMTS packages Pin
Pavneet Singh7-May-05 8:19
Pavneet Singh7-May-05 8:19 
GeneralEmbed Exectuable Pin
zx2c46-May-05 15:16
zx2c46-May-05 15:16 
Any idea how to embed an exectuable inside another executable, and then from with in your program, call the embeded exectuable with out creating another process or wrting the embed exectuable to disk?

I have a C++ program (straight C++, not managed). It has some logic and then depending on a number of conditions, ShellExecute()s another exectble file (client.exe), which happens to be a .net file. Is there anyway that I can add this client.exe file as a resource of my C++ program, and then call the beginning of the code from within the C++ program, so I wouldn't have to extract the resource or create a new process

Please help

Thanks,
Jason A. Donenfeld

PS: This is what I have now:
<br />
#define WIN32_LEAN_AND_MEAN<br />
#include<br />
#include<br />
#include<br />
<br />
#define INSTANCEMESSAGE "ShowZIM"<br />
#define WINDOW_TITLE "ZX2C4InstantMessenger"<br />
#define MUTEX_STRING "Local\\ZX2C4IM"<br />
#define FILE "client.exe"<br />
<br />
int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)<br />
{<br />
if(_tcscmp(lpCmdLine,"clone"))<br />
{<br />
CreateMutex(NULL,TRUE,MUTEX_STRING);<br />
if(GetLastError()==ERROR_ALREADY_EXISTS)<br />
{<br />
SendMessage(FindWindow(NULL, WINDOW_TITLE), RegisterWindowMessage(INSTANCEMESSAGE), NULL, NULL);<br />
return 0;<br />
}<br />
}<br />
ShellExecute(NULL,NULL,FILE,lpCmdLine,NULL,SW_SHOW);<br />
return 0;<br />
}<br />

GeneralOutput Atl Variant Function under Excel Pin
Member 18924296-May-05 4:51
Member 18924296-May-05 4:51 
GeneralImplement WTL application as a static library Pin
marcpolo3-May-05 22:50
marcpolo3-May-05 22:50 
GeneralUpdateAllViews Pin
act_x3-May-05 11:22
act_x3-May-05 11:22 
GeneralRe: UpdateAllViews Pin
Michael Dunn4-May-05 16:40
sitebuilderMichael Dunn4-May-05 16:40 
Generaloops Pin
knapak29-Apr-05 9:28
knapak29-Apr-05 9:28 
GeneralRe: oops Pin
toxcct18-May-05 3:08
toxcct18-May-05 3:08 
QuestionPointers to vectors? Pin
knapak29-Apr-05 9:25
knapak29-Apr-05 9:25 
AnswerRe: Pointers to vectors? Pin
Stuart Dootson29-Apr-05 9:52
professionalStuart Dootson29-Apr-05 9:52 
GeneralRe: Pointers to vectors? Pin
knapak29-Apr-05 10:04
knapak29-Apr-05 10:04 
GeneralRe: Pointers to vectors? Pin
markkuk29-Apr-05 10:46
markkuk29-Apr-05 10:46 
GeneralRe: Pointers to vectors? Pin
knapak29-Apr-05 10:54
knapak29-Apr-05 10:54 
GeneralRe: Pointers to vectors? Pin
knapak29-Apr-05 12:45
knapak29-Apr-05 12:45 
GeneralRe: Pointers to vectors? Pin
Stuart Dootson29-Apr-05 22:25
professionalStuart Dootson29-Apr-05 22:25 
GeneralRe: Pointers to vectors? Pin
knapak2-May-05 9:55
knapak2-May-05 9:55 
GeneralRe: Pointers to vectors? Pin
markkuk30-Apr-05 11:56
markkuk30-Apr-05 11:56 
GeneralRe: Pointers to vectors? Pin
knapak2-May-05 9:57
knapak2-May-05 9:57 
QuestionHow do I save/load STL data (map &amp; vector) Pin
Larry Mills Sr26-Apr-05 15:33
Larry Mills Sr26-Apr-05 15:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.