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

C / C++ / MFC

 
GeneralRe: dll from win32 console. Pin
Stephen Hewitt22-Oct-11 23:25
Stephen Hewitt22-Oct-11 23:25 
GeneralRe: dll from win32 console. Pin
appollosputnik22-Oct-11 23:50
appollosputnik22-Oct-11 23:50 
GeneralRe: dll from win32 console. Pin
Stephen Hewitt23-Oct-11 0:03
Stephen Hewitt23-Oct-11 0:03 
GeneralRe: dll from win32 console. Pin
appollosputnik23-Oct-11 0:03
appollosputnik23-Oct-11 0:03 
GeneralRe: dll from win32 console. Pin
Stephen Hewitt23-Oct-11 0:07
Stephen Hewitt23-Oct-11 0:07 
GeneralRe: dll from win32 console. Pin
appollosputnik23-Oct-11 0:14
appollosputnik23-Oct-11 0:14 
GeneralRe: dll from win32 console. Pin
appollosputnik23-Oct-11 0:25
appollosputnik23-Oct-11 0:25 
GeneralRe: dll from win32 console. Pin
appollosputnik23-Oct-11 0:37
appollosputnik23-Oct-11 0:37 
How can I get the handle from the client console and pass it to the lpfnGetProcessID .... to runAppli....With the code below I am getting run-time error. that hwnd being used without being intialized.. Please tell me how can I initialize hwnd. Thanks Sujan


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

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.