Try codeproject.com they had a great tutorial on calling a dll.
>From: <dar...@vi...>
>To: <dev...@li...>
>Subject: [Dev-C++] calling functions from a DLL from your main program
>Date: Thu, 20 Feb 2003 16:57:13 -0600 (CST)
>
>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
>
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
>The most comprehensive and flexible code editor you can use.
>Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
>www.slickedit.com/sourceforge
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
_________________________________________________________________
Worried what your kids see online? Protect them better with MSN 8
http://join.msn.com/?page=features/parental&pgmarket=en-gb&XAPID=186&DI=1059
|