Click here to Skip to main content
15,896,118 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: dll from win32 console. Pin
appollosputnik23-Oct-11 0:37
appollosputnik23-Oct-11 0:37 
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 
I have made some changes in the code let me know whats wrong in this my application is not launching.

int main(int argc, char **argv)
{
HWND hWnd=NULL;
/* get handle to dll */
HMODULE hDll = LoadLibrary(TEXT("C:\\Users\\DasmahapatraS\\Projects\\Bhagavan_Cadem\\RevolutionProj\\debug\\RevolutionProj.dll"));
typedef BOOL (* ICFUNC)(LPCSTR);
ICFUNC lpfnGetProcessID = (ICFUNC)GetProcAddress(hDll, "runAppli");
///* The actual call to the function contained in the dll */
BOOL intMyReturnVal = lpfnGetProcessID("runAppli");
/* Release the Dll */
FreeLibrary(hDll);
return 0;
}

////////////////////////////////////////////////////////////////////////////////////////////////////
extern "C" BOOL __declspec(dllexport) runAppli(LPCSTR lpAppName)
{
// Only needed if resources are accessed
//AFX_MANAGE_STATE(AfxGetStaticModuleState());
::ShowWindow( AfxGetMainWnd()->GetSafeHwnd(), SW_SHOW);
UNREFERENCED_PARAMETER(lpAppName);
return true;
}
GeneralRe: dll from win32 console. Pin
Richard MacCutchan23-Oct-11 1:59
mveRichard MacCutchan23-Oct-11 1:59 
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 

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.