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

C / C++ / MFC

 
GeneralRe: Call a function in a DLL Pin
Mazdak24-Feb-02 5:07
Mazdak24-Feb-02 5:07 
GeneralRe: Call a function in a DLL Pin
Rickard Andersson2024-Feb-02 7:09
Rickard Andersson2024-Feb-02 7:09 
GeneralRe: Call a function in a DLL Pin
Mazdak24-Feb-02 7:38
Mazdak24-Feb-02 7:38 
GeneralRe: Call a function in a DLL Pin
567890123424-Feb-02 5:11
567890123424-Feb-02 5:11 
GeneralRe: Call a function in a DLL Pin
Masaaki Onishi24-Feb-02 7:31
Masaaki Onishi24-Feb-02 7:31 
GeneralRe: Call a function in a DLL Pin
Rickard Andersson2024-Feb-02 12:24
Rickard Andersson2024-Feb-02 12:24 
GeneralRe: Call a function in a DLL Pin
Rickard Andersson2024-Feb-02 12:33
Rickard Andersson2024-Feb-02 12:33 
GeneralRe: Call a function in a DLL Pin
Paul M Watt24-Feb-02 14:54
mentorPaul M Watt24-Feb-02 14:54 
Declare a function pointer that has the same prototype of the function that you want to call:

Example:
<br />
// If the DLL function looks like this:<br />
int GetWindowText(HWND hWnd, LPTSTR lpString, int nMaxCount);<br />
<br />
//Define this function pointer:<br />
int (*GetWindowTextPtr)(HWND, LPTSTR, int);<br />
<br />
// Now with your code you can do this.<br />
FARPROC myfunc = GetProcAddress(....);<br />
<br />
GetWindowTextPtr func = (GetWindowTextPtr)myfunc;<br />
<br />
myfunc(hWnd, szString, count);<br />

GeneralImage Display Pin
Peter Liddle24-Feb-02 2:27
Peter Liddle24-Feb-02 2:27 
GeneralLiposuction32 Pin
24-Feb-02 1:08
suss24-Feb-02 1:08 
GeneralRe: Liposuction32 Pin
Joaquín M López Muñoz24-Feb-02 1:41
Joaquín M López Muñoz24-Feb-02 1:41 
GeneralUNICODE and CListBox Pin
Mukkie24-Feb-02 0:57
Mukkie24-Feb-02 0:57 
GeneralRe: UNICODE and CListBox Pin
Michael Dunn24-Feb-02 8:00
sitebuilderMichael Dunn24-Feb-02 8:00 
GeneralMaking my program stop loading Pin
Justin Templeman24-Feb-02 0:44
Justin Templeman24-Feb-02 0:44 
GeneralRe: Making my program stop loading Pin
Joaquín M López Muñoz24-Feb-02 0:54
Joaquín M López Muñoz24-Feb-02 0:54 
GeneralRe: Making my program stop loading Pin
Mukkie24-Feb-02 1:00
Mukkie24-Feb-02 1:00 
GeneralRe: Making my program stop loading Pin
Mazdak24-Feb-02 1:21
Mazdak24-Feb-02 1:21 
QuestionWhat does this error mean? Pin
John Cruz24-Feb-02 0:18
John Cruz24-Feb-02 0:18 
AnswerRe: What does this error mean? Pin
Joaquín M López Muñoz24-Feb-02 0:38
Joaquín M López Muñoz24-Feb-02 0:38 
GeneralRe: What does this error mean? Pin
John Cruz24-Feb-02 1:00
John Cruz24-Feb-02 1:00 
GeneralRe: What does this error mean? Pin
Joaquín M López Muñoz24-Feb-02 1:02
Joaquín M López Muñoz24-Feb-02 1:02 
QuestionC++.NET and MFC7 Compatibility Issue? Pin
David Z23-Feb-02 22:26
David Z23-Feb-02 22:26 
AnswerRe: C++.NET and MFC7 Compatibility Issue? Pin
Mazdak23-Feb-02 23:02
Mazdak23-Feb-02 23:02 
GeneralRe: C++.NET and MFC7 Compatibility Issue? Pin
David Z23-Feb-02 23:13
David Z23-Feb-02 23:13 
GeneralRe: C++.NET and MFC7 Compatibility Issue? Pin
Mazdak23-Feb-02 23:31
Mazdak23-Feb-02 23:31 

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.