Click here to Skip to main content
15,914,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to launch an executable directly from memory? Pin
John Osborn12-Dec-01 8:39
John Osborn12-Dec-01 8:39 
AnswerRe: How to launch an executable directly from memory? Pin
Joaquín M López Muñoz12-Dec-01 9:22
Joaquín M López Muñoz12-Dec-01 9:22 
GeneralRe: How to launch an executable directly from memory? Pin
John Osborn12-Dec-01 13:26
John Osborn12-Dec-01 13:26 
GeneralIs it possible to change bmp in executable Pin
SAK12-Dec-01 7:36
SAK12-Dec-01 7:36 
GeneralRe: Is it possible to change bmp in executable Pin
Rick York12-Dec-01 7:58
mveRick York12-Dec-01 7:58 
GeneralRe: Is it possible to change bmp in executable Pin
Ernest Laurentin12-Dec-01 7:59
Ernest Laurentin12-Dec-01 7:59 
GeneralRe: Is it possible to change bmp in executable Pin
Alvaro Mendez12-Dec-01 8:06
Alvaro Mendez12-Dec-01 8:06 
GeneralProblem with ActiveX Pin
12-Dec-01 7:00
suss12-Dec-01 7:00 
Hi all,

I implemented an ActiveX which runs fine in Debug mode.
When I compiled the project in Release mode, I got this
error message "Can't execute program".

Apparently, after the compilation process, the
myApp::InitInstace() is called which in turn calls

STDAPI DllRegisterServer(void)
{
AFX_MANAGE_STATE(_afxModuleAddrThis);

if (!AfxOleRegisterTypeLib(AfxGetInstanceHandle(), _tlid))
return ResultFromScode(SELFREG_E_TYPELIB);

if (!COleObjectFactoryEx::UpdateRegistryAll(TRUE))
return ResultFromScode(SELFREG_E_CLASS);

return NOERROR;
}

for some wild reason, It trys to run something after InitInstance.
The DllRegisterServer() function returns NOERROR.
I tried this on the command line, still got the same error:
c:>regsvr32 myActx.ocx

Does anyone know why?
Eek! | :eek: Confused | :confused: Cry | :((

Thanks
GeneralRe: Problem with ActiveX Pin
Ernest Laurentin12-Dec-01 8:32
Ernest Laurentin12-Dec-01 8:32 
GeneralRe: Problem with ActiveX Pin
13-Dec-01 5:38
suss13-Dec-01 5:38 
GeneralRe: Problem with ActiveX Pin
Ernest Laurentin13-Dec-01 5:51
Ernest Laurentin13-Dec-01 5:51 
GeneralRe: Problem with ActiveX Pin
13-Dec-01 6:19
suss13-Dec-01 6:19 
GeneralRe: Problem with ActiveX Pin
14-Dec-01 4:20
suss14-Dec-01 4:20 
GeneralRuntime video Codec chose Pin
12-Dec-01 6:47
suss12-Dec-01 6:47 
GeneralRe: Runtime video Codec chose Pin
Un114-Apr-02 4:22
Un114-Apr-02 4:22 
QuestionHow to tell it's a text file or a rich text file in CRichEditView? Pin
davilism12-Dec-01 6:31
davilism12-Dec-01 6:31 
AnswerRe: How to tell it's a text file or a rich text file in CRichEditView? Pin
Bill Wilson12-Dec-01 12:43
Bill Wilson12-Dec-01 12:43 
QuestionInsert property page after pr.-Sheet created? Pin
Thomas Blenkers12-Dec-01 6:25
Thomas Blenkers12-Dec-01 6:25 
AnswerRe: Insert property page after pr.-Sheet created? Pin
Joaquín M López Muñoz12-Dec-01 6:37
Joaquín M López Muñoz12-Dec-01 6:37 
GeneralRe: Insert property page after pr.-Sheet created? Pin
Thomas Blenkers12-Dec-01 10:29
Thomas Blenkers12-Dec-01 10:29 
GeneralRe: Insert property page after pr.-Sheet created? Pin
Joaquín M López Muñoz12-Dec-01 11:42
Joaquín M López Muñoz12-Dec-01 11:42 
GeneralRe: Insert property page after pr.-Sheet created? Pin
Thomas Blenkers14-Dec-01 1:31
Thomas Blenkers14-Dec-01 1:31 
QuestionReading and writing a open CFile with fread fwrite,...? Pin
Patrick Hoffmann12-Dec-01 6:20
Patrick Hoffmann12-Dec-01 6:20 
AnswerRe: Reading and writing a open CFile with fread fwrite,...? Pin
Joaquín M López Muñoz12-Dec-01 6:29
Joaquín M López Muñoz12-Dec-01 6:29 
GeneralCommand Line (cin) Hiding & Counter Using C++ Pin
valikac12-Dec-01 6:13
valikac12-Dec-01 6:13 

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.