Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: dll from win32 console. Pin
Stephen Hewitt23-Oct-11 0:52
Stephen Hewitt23-Oct-11 0:52 
GeneralRe: dll from win32 console. Pin
appollosputnik23-Oct-11 1:05
appollosputnik23-Oct-11 1:05 
GeneralRe: dll from win32 console. Pin
Stephen Hewitt23-Oct-11 1:12
Stephen Hewitt23-Oct-11 1:12 
GeneralRe: dll from win32 console. Pin
appollosputnik23-Oct-11 1:13
appollosputnik23-Oct-11 1:13 
GeneralRe: dll from win32 console. Pin
appollosputnik23-Oct-11 1:47
appollosputnik23-Oct-11 1:47 
GeneralRe: dll from win32 console. Pin
Stephen Hewitt23-Oct-11 2:17
Stephen Hewitt23-Oct-11 2:17 
GeneralRe: dll from win32 console. Pin
appollosputnik23-Oct-11 1:12
appollosputnik23-Oct-11 1:12 
GeneralRe: dll from win32 console. Pin
Richard MacCutchan23-Oct-11 1:59
mveRichard MacCutchan23-Oct-11 1:59 
Please put <pre> tags around your code as requested, so it is clearly readable

As to your code, this shows that you really do not understand how to create a Windows application.

You are getting the address of the runAppli() function and then calling it with "runAppli" as its input parameter, which is declared as UNREFERENCED_PARAMETER and hence has no purpose. The runAppli function itself is trying to show a window which does not exist, and using an MFC call even though the MFC environment has not been initialised. The net result is that the function will fail but will not give you any indication of why because you do not check for errors.

This program will never work however much you play with it. I would suggest you use the wizard in your Visual Studio IDE to create a proper Windows/MFC program, and examine the source and read the documentation to understand how the various pieces fit together.
Unrequited desire is character building. OriginalGriff


GeneralRe: dll from win32 console. Pin
appollosputnik23-Oct-11 4:37
appollosputnik23-Oct-11 4:37 
GeneralRe: dll from win32 console. Pin
Richard MacCutchan23-Oct-11 5:06
mveRichard MacCutchan23-Oct-11 5:06 
GeneralRe: dll from win32 console. Pin
appollosputnik23-Oct-11 5:29
appollosputnik23-Oct-11 5:29 
GeneralRe: dll from win32 console. Pin
Richard MacCutchan23-Oct-11 6:31
mveRichard MacCutchan23-Oct-11 6:31 
GeneralRe: dll from win32 console. Pin
appollosputnik23-Oct-11 5:48
appollosputnik23-Oct-11 5:48 
GeneralRe: dll from win32 console. Pin
appollosputnik23-Oct-11 6:41
appollosputnik23-Oct-11 6:41 
GeneralRe: dll from win32 console. Pin
Richard MacCutchan23-Oct-11 6:46
mveRichard MacCutchan23-Oct-11 6:46 
GeneralRe: dll from win32 console. Pin
appollosputnik23-Oct-11 6:51
appollosputnik23-Oct-11 6:51 
GeneralRe: dll from win32 console. Pin
Richard MacCutchan23-Oct-11 7:09
mveRichard MacCutchan23-Oct-11 7:09 
GeneralRe: dll from win32 console. Pin
appollosputnik23-Oct-11 7:23
appollosputnik23-Oct-11 7:23 
GeneralRe: dll from win32 console. Pin
Richard MacCutchan23-Oct-11 7:31
mveRichard MacCutchan23-Oct-11 7:31 
GeneralRe: dll from win32 console. Pin
appollosputnik23-Oct-11 7:20
appollosputnik23-Oct-11 7:20 
GeneralRe: dll from win32 console. Pin
Richard MacCutchan23-Oct-11 7:25
mveRichard MacCutchan23-Oct-11 7:25 
GeneralRe: How to get a handle for a Dialog Pin
Goto_Label_23-Oct-11 8:09
Goto_Label_23-Oct-11 8:09 
GeneralRe: How to get a handle for a Dialog Pin
Richard MacCutchan23-Oct-11 9:04
mveRichard MacCutchan23-Oct-11 9:04 
GeneralRe: How to get a handle for a Dialog Pin
appollosputnik24-Oct-11 7:00
appollosputnik24-Oct-11 7:00 
QuestionC Compiler needed (64 bit)! Pin
Veeshal Beotra21-Oct-11 17:34
Veeshal Beotra21-Oct-11 17:34 

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.