Click here to Skip to main content
15,899,679 members
Home / Discussions / COM
   

COM

 
GeneralUsing two .tlb files which has same class/interface Pin
jabhi197411-May-05 21:26
jabhi197411-May-05 21:26 
GeneralRe: Using two .tlb files which has same class/interface Pin
Indagro12-May-05 21:08
Indagro12-May-05 21:08 
GeneralMTS packages Pin
Pavneet Singh10-May-05 0:58
Pavneet Singh10-May-05 0:58 
GeneralRe: MTS packages Pin
Rizwan Bashir10-May-05 23:22
Rizwan Bashir10-May-05 23:22 
GeneralRe: MTS packages Pin
Pavneet Singh12-May-05 9:03
Pavneet Singh12-May-05 9:03 
GeneralRe: MTS packages Pin
Rizwan Bashir12-May-05 22:34
Rizwan Bashir12-May-05 22:34 
GeneralCOM+ association with Date Pin
Rizwan Bashir7-May-05 2:03
Rizwan Bashir7-May-05 2:03 
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 />

GeneralRe: Embed Exectuable Pin
Jörgen Sigvardsson6-May-05 23:21
Jörgen Sigvardsson6-May-05 23:21 
GeneralRe: Embed Exectuable Pin
zx2c47-May-05 5:52
zx2c47-May-05 5:52 
QuestionHow to initialize a ActiveX picture? Pin
ben.tsang6-May-05 3:44
ben.tsang6-May-05 3:44 
GeneralCan't Seem To Use COM+ By Remoting Pin
micdevnet5-May-05 23:02
micdevnet5-May-05 23:02 
QuestionHow I Read MBR Master Boot Record Pin
shahzad Ahmed5-May-05 21:18
shahzad Ahmed5-May-05 21:18 
GeneralVirtual memory Allocation Pin
ckkmohan3-May-05 2:55
ckkmohan3-May-05 2:55 
GeneralRe: Virtual memory Allocation Pin
James R. Twine6-May-05 8:33
James R. Twine6-May-05 8:33 
QuestionUrgent! How to instanciate an OCX ? Pin
turenne2-May-05 11:49
turenne2-May-05 11:49 
General,How to deploy COM+ Application. Pin
Het21091-May-05 19:38
Het21091-May-05 19:38 
GeneralRe: ,How to deploy COM+ Application. Pin
vinod shalgar12-May-05 1:41
vinod shalgar12-May-05 1:41 
GeneralCOM and structures Pin
Imtiaz Murtaza30-Apr-05 6:10
Imtiaz Murtaza30-Apr-05 6:10 
GeneralRe: COM and structures Pin
rwestgraham1-May-05 10:22
rwestgraham1-May-05 10:22 
GeneralRe: COM and structures Pin
Jörgen Sigvardsson5-May-05 12:52
Jörgen Sigvardsson5-May-05 12:52 
GeneralRe: COM and structures Pin
rwestgraham5-May-05 19:05
rwestgraham5-May-05 19:05 
GeneralRe: COM and structures Pin
Jörgen Sigvardsson5-May-05 20:51
Jörgen Sigvardsson5-May-05 20:51 
GeneralRe: COM and structures Pin
«_Superman_»5-May-05 4:53
professional«_Superman_»5-May-05 4:53 
GeneralRe: COM and structures Pin
vishalmore11-May-05 20:57
vishalmore11-May-05 20:57 

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.