Click here to Skip to main content
15,914,109 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Remebering... Pin
Christian Graus18-Jul-01 13:31
protectorChristian Graus18-Jul-01 13:31 
GeneralRe: Remebering... Pin
Tim Deveaux18-Jul-01 13:32
Tim Deveaux18-Jul-01 13:32 
GeneralRe: Remebering... Pin
Stan Shannon18-Jul-01 14:22
Stan Shannon18-Jul-01 14:22 
GeneralRe: Remebering... Pin
Michael Martin18-Jul-01 19:50
professionalMichael Martin18-Jul-01 19:50 
Generaldisabling object closing Pin
18-Jul-01 12:38
suss18-Jul-01 12:38 
GeneralServices and System Hooks Pin
Todd Richardson18-Jul-01 11:35
Todd Richardson18-Jul-01 11:35 
GeneralRe: Services and System Hooks Pin
Michael Dunn18-Jul-01 11:58
sitebuilderMichael Dunn18-Jul-01 11:58 
GeneralProblem Runtime Linking To My DLL Pin
AJ12318-Jul-01 11:10
AJ12318-Jul-01 11:10 
Hi,

I am trying to link to a dll at runtime. My DLL is definitely okay, it has a functon :


_declspec(dllexport) int increment(int val)



The client to the DLL executes the following code:


typedef int(*lpf_increment)(int);

HINSTANCE plugin;

plugin = LoadLibrary("c:\\plugin.dll");

if (plugin != NULL)
{

lpf_increment testcall;

testcall = (lpf_increment) GetProcAddress(plugin, _T("increment"));

int val=99;
int res = (testcall)(val);

char dump[60];
wsprintf(dump,"%i",res);
MessageBox("dump");
}


The GetProcAddress returns null, anyone any clues what's wrong?

Cheers
Richard


GeneralRe: Problem Runtime Linking To My DLL Pin
Michael Dunn18-Jul-01 11:59
sitebuilderMichael Dunn18-Jul-01 11:59 
GeneralRe: Problem Runtime Linking To My DLL Pin
18-Jul-01 12:12
suss18-Jul-01 12:12 
GeneralRe: Problem Runtime Linking To My DLL Pin
18-Jul-01 12:14
suss18-Jul-01 12:14 
GeneralRe: Problem Runtime Linking To My DLL Pin
AJ12321-Jul-01 0:25
AJ12321-Jul-01 0:25 
Question/ShellExecute-/ How can I find the HWND* of the parent window? Pin
18-Jul-01 10:16
suss18-Jul-01 10:16 
AnswerRe: /ShellExecute-/ How can I find the HWND* of the parent window? Pin
Chris Losinger18-Jul-01 10:56
professionalChris Losinger18-Jul-01 10:56 
AnswerRe: /ShellExecute-/ How can I find the HWND* of the parent window? Pin
Bret Faller18-Jul-01 12:38
Bret Faller18-Jul-01 12:38 
GeneralSelectObject (Help a beginner!) Pin
SinclairE18-Jul-01 9:20
SinclairE18-Jul-01 9:20 
GeneralRe: SelectObject (Help a beginner!) Pin
José Luis Sogorb18-Jul-01 10:03
José Luis Sogorb18-Jul-01 10:03 
GeneralRe: SelectObject (Help a beginner!) Pin
Ben Burnett18-Jul-01 11:52
Ben Burnett18-Jul-01 11:52 
QuestionMaximum index of array? Pin
18-Jul-01 9:14
suss18-Jul-01 9:14 
AnswerRe: Maximum index of array? Pin
Tim Deveaux18-Jul-01 9:21
Tim Deveaux18-Jul-01 9:21 
AnswerRe: Maximum index of array? Pin
Nemanja Trifunovic18-Jul-01 10:27
Nemanja Trifunovic18-Jul-01 10:27 
GeneralDaoRecordSet Sorting Pin
otvac18-Jul-01 8:46
otvac18-Jul-01 8:46 
GeneralRe: DaoRecordSet Sorting Pin
Carlos Antollini18-Jul-01 9:30
Carlos Antollini18-Jul-01 9:30 
GeneralChanging specific pen attributes Pin
José Luis Sogorb18-Jul-01 8:17
José Luis Sogorb18-Jul-01 8:17 
Questionunsigned char to char??? char to unsigned char??? Pin
18-Jul-01 7:24
suss18-Jul-01 7:24 

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.