Click here to Skip to main content
16,011,815 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralHelp with CSocket Server APP hanging while recieving data Pin
Brad Chase27-Feb-01 5:11
Brad Chase27-Feb-01 5:11 
GeneralRe: Help with CSocket Server APP hanging while recieving data Pin
l a u r e n27-Feb-01 8:14
l a u r e n27-Feb-01 8:14 
GeneralRe: Help with CSocket Server APP hanging while recieving data Pin
James R. Twine27-Feb-01 8:30
James R. Twine27-Feb-01 8:30 
QuestionHelp:How to use VC++ to actualize the registration number's location of a car's digital image? Pin
27-Feb-01 4:21
suss27-Feb-01 4:21 
AnswerRe: Help:How to use VC++ to actualize the registration number's location of a car's digital image? Pin
l a u r e n27-Feb-01 7:57
l a u r e n27-Feb-01 7:57 
GeneralActiveX and events Pin
Ivan Polak27-Feb-01 4:07
Ivan Polak27-Feb-01 4:07 
GeneralRe: ActiveX and events Pin
l a u r e n27-Feb-01 8:05
l a u r e n27-Feb-01 8:05 
GeneralExporting a function from a DLL Pin
confalonieri27-Feb-01 3:10
confalonieri27-Feb-01 3:10 
Hello,
I don't manage to export a procedure from a DLL.

I created a Win32 Dynamic Link Library with a function which declaration is:

__declspec(dllexport) BOOL Ping(UINT uiTimeout);

When I look at the overview of my resulting dll, I can see my function 'Ping' in
the export table but I can't get its address from another project.

In my project, I load the dll thanks to 'AfxLoadLibrary' but when I use 'GetProcAddress'
to get the address of the 'Ping' function, I get a NULL pointer:

typedef BOOL (* PINGFUNCTION)(UINT);

HINSTANCE hDLL = AfxLoadLibrary(m_szControl);
if (hDLL)
{
// Get the address of the ping function
FARPROC pnProc = GetProcAddress((HMODULE) hDLL, "Ping");
PINGFUNCTION MyPingFunction = (PINGFUNCTION) pnProc;
if (! MyPingFunction)
{
return ((int) GetLastError());
}
}

GeneralRe: Exporting a function from a DLL Pin
l a u r e n27-Feb-01 8:02
l a u r e n27-Feb-01 8:02 
GeneralDataGrid column resize - HOW ?! Pin
27-Feb-01 2:57
suss27-Feb-01 2:57 
Questionhow to use autonombers in ODBC Pin
Ariel27-Feb-01 2:30
Ariel27-Feb-01 2:30 
AnswerRe: how to use autonombers in ODBC Pin
l a u r e n27-Feb-01 7:52
l a u r e n27-Feb-01 7:52 
GeneralRe: how to use autonombers in ODBC Pin
Ariel27-Feb-01 8:05
Ariel27-Feb-01 8:05 
GeneralRe: how to use autonombers in ODBC Pin
l a u r e n27-Feb-01 8:11
l a u r e n27-Feb-01 8:11 
GeneralRe: how to use autonombers in ODBC Pin
Ariel2-Mar-01 2:49
Ariel2-Mar-01 2:49 
Generalstatic_cast Pin
ov27-Feb-01 1:53
ov27-Feb-01 1:53 
GeneralRe: static_cast Pin
27-Feb-01 3:28
suss27-Feb-01 3:28 
GeneralRe: static_cast Pin
Erik Funkenbusch1-Mar-01 13:24
Erik Funkenbusch1-Mar-01 13:24 
GeneralRe: static_cast Pin
ov1-Mar-01 20:39
ov1-Mar-01 20:39 
GeneralClose Pin
27-Feb-01 0:17
suss27-Feb-01 0:17 
GeneralRe: Close Pin
Christian Graus27-Feb-01 0:29
protectorChristian Graus27-Feb-01 0:29 
GeneralOn clicking Pin
26-Feb-01 21:59
suss26-Feb-01 21:59 
GeneralRe: On clicking Pin
l a u r e n27-Feb-01 1:21
l a u r e n27-Feb-01 1:21 
Generalcancel Pin
26-Feb-01 21:54
suss26-Feb-01 21:54 
GeneralRe: cancel Pin
PJ Arends26-Feb-01 22:34
professionalPJ Arends26-Feb-01 22: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.