Click here to Skip to main content
16,005,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionEmail Pin
kk.tvm20-Apr-06 20:46
kk.tvm20-Apr-06 20:46 
AnswerRe: Email Pin
kakan20-Apr-06 21:00
professionalkakan20-Apr-06 21:00 
AnswerRe: Email Pin
Le Thanh Cong20-Apr-06 21:38
Le Thanh Cong20-Apr-06 21:38 
AnswerRe: Email Pin
David Crow21-Apr-06 3:23
David Crow21-Apr-06 3:23 
QuestionACCESSING METHOD EXPORT in CLASS in DLL Pin
Killer320-Apr-06 20:09
Killer320-Apr-06 20:09 
AnswerRe: ACCESSING METHOD EXPORT in CLASS in DLL Pin
Parthiban20-Apr-06 20:50
Parthiban20-Apr-06 20:50 
QuestionACCESSING METHOD EXPORT in CLASS in DLL Pin
Killer320-Apr-06 20:08
Killer320-Apr-06 20:08 
AnswerRe: ACCESSING METHOD EXPORT in CLASS in DLL Pin
ThatsAlok20-Apr-06 21:03
ThatsAlok20-Apr-06 21:03 
R.ilan thendral wrote:
INSTANCE hDLL; // Handle to DLLLPFNDLLFUNC1 lpfnDllFunc1; // Function pointerchar* key = new char [50];key ="KEYVAULE";char* strPlain = new char [50];strPlain="password";char* strResult = new char [50];DWORD dwrd =NULL;hDLL = LoadLibrary("Mydll.dll");if (hDLL != NULL){lpfnDllFunc1 = (LPFNDLLFUNC1)GetProcAddress(hDLL,"LSGEncrypt");if (lpfnDllFunc1 ==NULL) // Fails here? so DLL is freed up?{FreeLibrary(hDLL); }elsestrResult = lpfnDllFunc1("killer" ,"strikes HERE");}


You can use Exported class this way, because the function have no memory till the Classobject is created.this method is only used to load Dll function.

for loading class from DLL, first you have to create MFC extention DLL,secondly you can try this article...

http://www.codeproject.com/dll/noextensiondll.asp


"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
QuestionChanging the caption on the button in the AfxMessageBox Pin
Taruni20-Apr-06 20:06
Taruni20-Apr-06 20:06 
AnswerRe: Changing the caption on the button in the AfxMessageBox Pin
harshandu20-Apr-06 20:50
harshandu20-Apr-06 20:50 
AnswerRe: Changing the caption on the button in the AfxMessageBox Pin
ThatsAlok20-Apr-06 21:00
ThatsAlok20-Apr-06 21:00 
QuestionTree view problem Pin
harshandu20-Apr-06 19:54
harshandu20-Apr-06 19:54 
AnswerRe: Tree view problem Pin
Nishad S20-Apr-06 21:53
Nishad S20-Apr-06 21:53 
QuestionModeless Dialog Destroy Problem Pin
Hongjun Ge20-Apr-06 19:42
Hongjun Ge20-Apr-06 19:42 
AnswerRe: Modeless Dialog Destroy Problem Pin
David Crow21-Apr-06 3:26
David Crow21-Apr-06 3:26 
QuestionSQL SERVER PATH Pin
mikobi20-Apr-06 19:38
mikobi20-Apr-06 19:38 
QuestionRe: SQL SERVER PATH Pin
David Crow21-Apr-06 3:27
David Crow21-Apr-06 3:27 
QuestionHow to get visiable item index in a list control of icon style? Pin
chybin20-Apr-06 19:34
chybin20-Apr-06 19:34 
AnswerRe: How to get visiable item index in a list control of icon style? Pin
Naveen20-Apr-06 20:08
Naveen20-Apr-06 20:08 
GeneralRe: How to get visiable item index in a list control of icon style? Pin
chybin20-Apr-06 20:35
chybin20-Apr-06 20:35 
GeneralRe: How to get visiable item index in a list control of icon style? Pin
Naveen20-Apr-06 21:52
Naveen20-Apr-06 21:52 
GeneralRe: How to get visiable item index in a list control of icon style? Pin
chybin21-Apr-06 18:09
chybin21-Apr-06 18:09 
Questionmap::find , the two overloaded versions have the same pass-in parameters. Does it make sense? Pin
followait20-Apr-06 19:11
followait20-Apr-06 19:11 
AnswerRe: map::find , the two overloaded versions have the same pass-in parameters. Does it make sense? Pin
ThatsAlok20-Apr-06 20:48
ThatsAlok20-Apr-06 20:48 
AnswerRe: map::find , the two overloaded versions have the same pass-in parameters. Does it make sense? Pin
ThatsAlok20-Apr-06 20:57
ThatsAlok20-Apr-06 20:57 

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.