Click here to Skip to main content
15,906,574 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DirectX Beginner Pin
Mr_Byte26-Sep-01 7:12
Mr_Byte26-Sep-01 7:12 
GeneralCDC Resource/Memor Leaks... (continued)... Pin
26-Sep-01 6:42
suss26-Sep-01 6:42 
GeneralRe: CDC Resource/Memor Leaks... (continued)... Pin
Tomasz Sowinski26-Sep-01 6:50
Tomasz Sowinski26-Sep-01 6:50 
GeneralRe: CDC Resource/Memor Leaks... (continued)... Pin
26-Sep-01 8:18
suss26-Sep-01 8:18 
GeneralRe: CDC Resource/Memor Leaks... (continued)... Pin
Tomasz Sowinski26-Sep-01 8:23
Tomasz Sowinski26-Sep-01 8:23 
GeneralRe: CDC Resource/Memor Leaks... (continued)... Pin
26-Sep-01 8:32
suss26-Sep-01 8:32 
GeneralRe: CDC Resource/Memor Leaks... (continued)... Pin
Tomasz Sowinski26-Sep-01 8:39
Tomasz Sowinski26-Sep-01 8:39 
GeneralExport function Pin
Jose Fco Bonnin26-Sep-01 4:49
Jose Fco Bonnin26-Sep-01 4:49 
I've created an ATL COM - dll - MFC Supported with the AppWizard and I added a function that return a CString.

Now I want access to this function from another application to do it I type the next code.

In the ATL COM
...
__declspec(dllexport) CString GetEncodedText(CString p_sPlainText);
...

In the other application
...
hDLL = AfxLoadLibrary("BabMD5.dll");
if (hDLL != NULL) {
typedef CString (CALLBACK *ENCODETEXT)(CString);
ENCODETEXT p_encodeText = (ENCODETEXT)GetProcAddress( hDLL, _T("GetEncodedText"));

if ( p_encodeText != NULL) { // -> NEVER GET HERE
strEncoded = (*p_encodeText)( strPlain );
}

AfxFreeLibrary( hDLL);
}
...

Anybody knows what's happen? Why I can't get the function?

Thanks in advance
GeneralRe: Export function Pin
Michael P Butler26-Sep-01 4:59
Michael P Butler26-Sep-01 4:59 
GeneralRe: Export function Pin
Jose Fco Bonnin26-Sep-01 5:22
Jose Fco Bonnin26-Sep-01 5:22 
GeneralRe: Export function Pin
Carlos Antollini26-Sep-01 6:02
Carlos Antollini26-Sep-01 6:02 
GeneralRe: Export function Pin
Rashid Thadha26-Sep-01 11:36
Rashid Thadha26-Sep-01 11:36 
GeneralAudio program works under Win2k but not Win98 Pin
groston26-Sep-01 4:47
groston26-Sep-01 4:47 
GeneralCListCtl Pin
otvac26-Sep-01 4:29
otvac26-Sep-01 4:29 
GeneralRe: CListCtl Pin
Michael P Butler26-Sep-01 5:02
Michael P Butler26-Sep-01 5:02 
GeneralRe: CListCtl Pin
Tomasz Sowinski26-Sep-01 6:43
Tomasz Sowinski26-Sep-01 6:43 
GeneralRe: CListCtl Pin
Michael P Butler26-Sep-01 8:37
Michael P Butler26-Sep-01 8:37 
GeneralRe: CListCtl Pin
Tomasz Sowinski26-Sep-01 8:47
Tomasz Sowinski26-Sep-01 8:47 
GeneralRe: CListCtl Pin
Rashid Thadha26-Sep-01 11:32
Rashid Thadha26-Sep-01 11:32 
GeneralThe browser and the registry Pin
26-Sep-01 4:00
suss26-Sep-01 4:00 
GeneralRe: The browser and the registry Pin
Tomasz Sowinski26-Sep-01 4:07
Tomasz Sowinski26-Sep-01 4:07 
GeneralRe: The browser and the registry Pin
26-Sep-01 4:18
suss26-Sep-01 4:18 
GeneralRe: The browser and the registry Pin
Tomasz Sowinski26-Sep-01 4:23
Tomasz Sowinski26-Sep-01 4:23 
GeneralRe: The browser and the registry Pin
26-Sep-01 4:32
suss26-Sep-01 4:32 
GeneralRe: The browser and the registry Pin
Tomasz Sowinski26-Sep-01 6:35
Tomasz Sowinski26-Sep-01 6:35 

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.