[Dev-C++] calling functions from a DLL from your main program
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <dar...@vi...> - 2003-02-20 22:51:32
|
ok, so i made a C DLL in dev, and i have a C++ project. and since i cant find no books on how to use DLLs inside your project, can someone please tell me what to do? this is really getting to me. the DLL is named HTMLDll.dll and i linked it by clicking on the "add library or object" feature and just clicked on the DLL and it gave the whole path name. so i minimized it to a relevant path name ie. instead of C:\WINDOWS\DESKTOP\Darks Briefcase\C++ Programs\DarkCode\DarkCode\exten\HTMLDll.dll , i change it to exten\HTMLDll.dll , was this a mistake, because i know with DLL files, you have to take them everywhere the program goes, so a relevent pathname is good right? anyways back to my original question, i have a simple messagebox function in the HTMLDll just to test it, it compiled properly, we know this because HTMLDll.dll was created. i have it linked and everything in DarkCode, but what do i do to get that function from the DLL once a menu item is clicked, case MI_DLLSHOW MI is my way of saying MenuItem, and when they click this button, the messagebox the DLL provided is supposed to show up, but whats the command for Dev C/C++? thank you for your time |