Click here to Skip to main content
15,917,176 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Compile problem Pin
CoolASL21-Nov-05 18:23
CoolASL21-Nov-05 18:23 
QuestionDLL Problem, Linker error. Need Help?? Pin
Owner drawn20-Nov-05 17:58
Owner drawn20-Nov-05 17:58 
AnswerRe: DLL Problem, Linker error. Need Help?? Pin
Cool Ju20-Nov-05 20:09
Cool Ju20-Nov-05 20:09 
GeneralRe: DLL Problem, Linker error. Need Help?? Pin
Owner drawn20-Nov-05 20:41
Owner drawn20-Nov-05 20:41 
GeneralRe: DLL Problem, Linker error. Need Help?? Pin
ThatsAlok20-Nov-05 21:37
ThatsAlok20-Nov-05 21:37 
AnswerRe: DLL Problem, Linker error. Need Help?? Pin
ThatsAlok20-Nov-05 21:35
ThatsAlok20-Nov-05 21:35 
GeneralRe: DLL Problem, Linker error. Need Help?? Pin
Owner drawn20-Nov-05 22:34
Owner drawn20-Nov-05 22:34 
GeneralRe: DLL Problem, Linker error. Need Help?? Pin
ThatsAlok20-Nov-05 23:44
ThatsAlok20-Nov-05 23:44 
Here A Small code that will demonstrate dynamically loading of function from DLL.here, I will load mciSendString defined in WINMM.DLL .

// first make Function pointer
typedef MCIERROR (WINAPI * MCISENDSTRING)(
LPCTSTR lpszCommand,
LPTSTR lpszReturnString,
UINT cchReturn,
HANDLE hwndCallback
);

/// In function where you want to use about api
MCISENDSTRING fnmciSendString=NULL;
HMODULE hLibrary;

// load the library
hLibrary=LoadLibrary(_T("winmm.dll"));

// check is library loaded
if(hLibrary)
{
// if yes try to get Function addressfnmciSendString=(MCISENDSTRING)::GetProcAddress(_T("mciSendString"));
}

// check is we got Function Pointer
if(fnmciSendString)
{
// if yes call function
(fnmciSendString)(......);
}



"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
GeneralRe: DLL Problem, Linker error. Need Help?? Pin
Owner drawn21-Nov-05 0:45
Owner drawn21-Nov-05 0:45 
QuestionUDP/IP transfer file Pin
001141120-Nov-05 16:43
001141120-Nov-05 16:43 
QuestionHow to set the cursor shape when pop a menu? Pin
followait20-Nov-05 14:53
followait20-Nov-05 14:53 
AnswerRe: How to set the cursor shape when pop a menu? Pin
Yiling Lai20-Nov-05 15:55
Yiling Lai20-Nov-05 15:55 
AnswerRe: How to set the cursor shape when pop a menu? Pin
kakan20-Nov-05 21:47
professionalkakan20-Nov-05 21:47 
AnswerRe: How to set the cursor shape when pop a menu? Pin
Gary R. Wheeler21-Nov-05 2:37
Gary R. Wheeler21-Nov-05 2:37 
QuestionHow to scroll the Edit box without flash Pin
LaHaHa20-Nov-05 14:25
LaHaHa20-Nov-05 14:25 
AnswerRe: How to scroll the Edit box without flash Pin
Yiling Lai20-Nov-05 16:03
Yiling Lai20-Nov-05 16:03 
GeneralRe: How to scroll the Edit box without flash Pin
LaHaHa20-Nov-05 18:11
LaHaHa20-Nov-05 18:11 
QuestionMFCListCtrl Question Pin
kevin12720-Nov-05 11:14
kevin12720-Nov-05 11:14 
AnswerRe: MFCListCtrl Question Pin
followait20-Nov-05 14:55
followait20-Nov-05 14:55 
GeneralRe: MFCListCtrl Question Pin
kevin12720-Nov-05 15:51
kevin12720-Nov-05 15:51 
GeneralRe: MFCListCtrl Question Pin
kevin12720-Nov-05 15:59
kevin12720-Nov-05 15:59 
QuestionAre plugins necessary in this situation? Pin
hymerman20-Nov-05 10:49
hymerman20-Nov-05 10:49 
AnswerRe: Are plugins necessary in this situation? Pin
Roger Allen21-Nov-05 6:54
Roger Allen21-Nov-05 6:54 
GeneralRe: Are plugins necessary in this situation? Pin
hymerman21-Nov-05 13:29
hymerman21-Nov-05 13:29 
QuestionCHtmlView Question Pin
Mohammad A Gdeisat20-Nov-05 10:07
Mohammad A Gdeisat20-Nov-05 10:07 

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.