Click here to Skip to main content
15,915,093 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Send Object Through Network Pin
Tad McClellan8-May-05 14:19
professionalTad McClellan8-May-05 14:19 
GeneralRe: Send Object Through Network Pin
aRtsZ9-May-05 0:28
aRtsZ9-May-05 0:28 
GeneralRe: Send Object Through Network Pin
S. Senthil Kumar9-May-05 5:34
S. Senthil Kumar9-May-05 5:34 
GeneralRe: Send Object Through Network Pin
aRtsZ9-May-05 6:15
aRtsZ9-May-05 6:15 
GeneralRe: Send Object Through Network Pin
S. Senthil Kumar10-May-05 1:28
S. Senthil Kumar10-May-05 1:28 
GeneralRe: Send Object Through Network Pin
aRtsZ10-May-05 7:10
aRtsZ10-May-05 7:10 
GeneralIPhlpAPI : SetTcpEntry Pin
Vitoto7-May-05 18:47
Vitoto7-May-05 18:47 
GeneralEmbeded Executable Resource Pin
zx2c46-May-05 15:17
zx2c46-May-05 15:17 
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: Embeded Executable Resource Pin
Dave Kreskowiak7-May-05 4:56
mveDave Kreskowiak7-May-05 4:56 
GeneralRe: Embeded Executable Resource Pin
Colin Angus Mackay7-May-05 10:36
Colin Angus Mackay7-May-05 10:36 
GeneralRe: Embeded Executable Resource Pin
Dave Kreskowiak9-May-05 1:02
mveDave Kreskowiak9-May-05 1:02 
GeneralRe: Embeded Executable Resource Pin
Colin Angus Mackay9-May-05 1:07
Colin Angus Mackay9-May-05 1:07 
General.NET Framework Versions Pin
NRayman6-May-05 11:57
NRayman6-May-05 11:57 
GeneralRe: .NET Framework Versions Pin
Dave Kreskowiak6-May-05 12:32
mveDave Kreskowiak6-May-05 12:32 
GeneralRemote exe Pin
NRayman6-May-05 9:53
NRayman6-May-05 9:53 
GeneralRe: Remote exe Pin
Saksida Bojan6-May-05 10:59
Saksida Bojan6-May-05 10:59 
GeneralRe: Remote exe - Rephrase question Pin
NRayman6-May-05 11:05
NRayman6-May-05 11:05 
GeneralRe: Remote exe - Rephrase question Pin
Colin Angus Mackay6-May-05 11:13
Colin Angus Mackay6-May-05 11:13 
GeneralRe: Remote exe - Rephrase question Pin
NRayman6-May-05 11:52
NRayman6-May-05 11:52 
GeneralRe: Remote exe - Rephrase question Pin
Colin Angus Mackay6-May-05 11:56
Colin Angus Mackay6-May-05 11:56 
GeneralRe: Remote exe - Rephrase question Pin
Dave Kreskowiak6-May-05 12:30
mveDave Kreskowiak6-May-05 12:30 
GeneralReporting Woes... Pin
Robert M Greene6-May-05 9:27
Robert M Greene6-May-05 9:27 
GeneralRe: Reporting Woes... Pin
Tad McClellan8-May-05 14:26
professionalTad McClellan8-May-05 14:26 
Generalclosing form Pin
Anonymous6-May-05 0:26
Anonymous6-May-05 0:26 
GeneralRe: closing form Pin
MoustafaS6-May-05 2:14
MoustafaS6-May-05 2:14 

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.