Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / How do I make a DLL in VC 2008 Express? Explained well, please.

Author
Message
Clonkex
Forum Vice President
9
Years of Service
User Offline
Joined: 20th May 2010
Location: Northern Tablelands, NSW, Australia
Posted: 18th Aug 2010 08:00
Hey guys,

Could you please tell me how to make a DLL in Visual Studio 2008 Express? I can't get any of the tutorial things to work. I don't know how to create a string table in VC2008Express or anything.

Thanks,
Clonkex

Making games is easy.....finishing them is a different matter.

Intel Core 2 Duo 2.8Ghz, Nvidia GeForce 9400 GT 512mb, 1gb ram.
MikeRK
9
Years of Service
User Offline
Joined: 18th Aug 2010
Location: United Kingdom
Posted: 18th Aug 2010 12:11 Edited at: 18th Aug 2010 14:25
Not sure if the format will be the same, since I use visual studio 2010 professional, but..

Setting the project to build a DLL;

- Right Click on Project in Solution Explorer, Click Properties,
- Ensure 'Configuration Properties/General' is selected in list,
- Change 'Configuration Type' to 'Dynamic Library (.DLL)'.

Creating a DLL in source;

- Add a new CPP file to your project, call it whatever.
- Use the following template:



- Build Project as normal, and in the output directory (usually Debug, or Release) will be your DLL file.


NOTE

To use undecorated function names (i.e. Not ?Test@@blah blah), put the following code around the functions;.. The functions exported will match the function names in source.



Regards,
Mikey
MikeRK
9
Years of Service
User Offline
Joined: 18th Aug 2010
Location: United Kingdom
Posted: 18th Aug 2010 16:38
Further Note:

If you have any more difficulties, and if you're on MSN, send me an IM 'mking (at) hybridtwo (dot) com' and I'll see what I can do to help.

Mikey

::Hybrid Two::Binary Zoo::RGT Veteran::
Clonkex
Forum Vice President
9
Years of Service
User Offline
Joined: 20th May 2010
Location: Northern Tablelands, NSW, Australia
Posted: 19th Aug 2010 10:54
Thanks, I will look at the code in a minute.

Clonkex

Making games is easy.....finishing them is a different matter.

Intel Core 2 Duo 2.8Ghz, Nvidia GeForce 9400 GT 512mb, 1gb ram.

Login to post a reply

Server time is: 2019-10-17 03:40:10
Your offset time is: 2019-10-17 03:40:10