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

C / C++ / MFC

 
AnswerRe: Examples of SaveAs in winapi / c++ Pin
CPallini17-Nov-09 2:46
mveCPallini17-Nov-09 2:46 
GeneralRe: Examples of SaveAs in winapi / c++ Pin
Nicola Curran17-Nov-09 3:10
Nicola Curran17-Nov-09 3:10 
GeneralRe: Examples of SaveAs in winapi / c++ Pin
Nicola Curran17-Nov-09 3:13
Nicola Curran17-Nov-09 3:13 
GeneralRe: Examples of SaveAs in winapi / c++ Pin
Nicola Curran17-Nov-09 3:13
Nicola Curran17-Nov-09 3:13 
QuestionDont send error message occured only once Pin
thippipriya17-Nov-09 2:02
thippipriya17-Nov-09 2:02 
QuestionRe: Dont send error message occured only once Pin
David Crow17-Nov-09 3:37
David Crow17-Nov-09 3:37 
AnswerRe: Dont send error message occured only once [modified] Pin
thippipriya17-Nov-09 16:25
thippipriya17-Nov-09 16:25 
QuestionCalling dll function Pin
Le@rner17-Nov-09 1:05
Le@rner17-Nov-09 1:05 
Hi all,

I have made a Regular dll using shared mfc dll in that dll i have made a generic class in that class i have made a function SayHello

in .cpp file
CString CMyClass::SayHello(CString str)
{
	return (_T("Hello") + str);
}
in .h file
_declspec(dllimport) CString SayHello(CString str);


now i want to call this function in my clients application.

i have copied its .dll file and .lib file in applications debug folder.

and in properties\Linker\input\Additional Dependencies\..\Debug\MyDll.lib

now in code

HINSTANCE hDll = ::LoadLibrary(_T("MyDll.dll"));


now i want to call SayHello Function

How to do it?

Thanks in advance

To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.

AnswerRe: Calling dll function Pin
SandipG 17-Nov-09 1:29
SandipG 17-Nov-09 1:29 
AnswerRe: Calling dll function Pin
Kushagra Tiwari17-Nov-09 2:46
Kushagra Tiwari17-Nov-09 2:46 
QuestionHow to create a vector? Pin
deadlyabbas17-Nov-09 0:58
deadlyabbas17-Nov-09 0:58 
AnswerRe: How to create a vector? Pin
Jijo.Raj17-Nov-09 1:30
Jijo.Raj17-Nov-09 1:30 
GeneralRe: How to create a vector? Pin
deadlyabbas17-Nov-09 3:50
deadlyabbas17-Nov-09 3:50 
GeneralRe: How to create a vector? Pin
«_Superman_»17-Nov-09 7:17
professional«_Superman_»17-Nov-09 7:17 
Questiondde problem Pin
trioum17-Nov-09 0:24
trioum17-Nov-09 0:24 
QuestionFind out Build Configuration from exe Pin
Maya_16-Nov-09 23:21
Maya_16-Nov-09 23:21 
AnswerRe: Find out Build Configuration from exe Pin
Randor 17-Nov-09 2:13
professional Randor 17-Nov-09 2:13 
QuestionRe: Find out Build Configuration from exe Pin
David Crow17-Nov-09 3:43
David Crow17-Nov-09 3:43 
AnswerRe: Find out Build Configuration from exe Pin
Randor 17-Nov-09 11:21
professional Randor 17-Nov-09 11:21 
GeneralRe: Find out Build Configuration from exe Pin
Maya_17-Nov-09 5:22
Maya_17-Nov-09 5:22 
GeneralRe: Find out Build Configuration from exe Pin
Maya_17-Nov-09 16:05
Maya_17-Nov-09 16:05 
GeneralRe: Find out Build Configuration from exe Pin
Randor 17-Nov-09 16:29
professional Randor 17-Nov-09 16:29 
GeneralRe: Find out Build Configuration from exe Pin
Maya_18-Nov-09 2:32
Maya_18-Nov-09 2:32 
Questiondll for middleware Pin
Eka Candra16-Nov-09 20:24
Eka Candra16-Nov-09 20:24 
AnswerRe: dll for middleware Pin
CPallini16-Nov-09 20:41
mveCPallini16-Nov-09 20:41 

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.