Link to home
Start Free TrialLog in
Avatar of header
header

asked on

Dll in C++

Does anyone know how to make a .dll in C++?  Could someone send me the source code for a rather simple dll.  Maybe just three or four functions.

A function to input a filename and return the filename making sure there is a trailing slash.

A function to input a filename and check to see if it exists.

And a couple other various tasks.
Avatar of MTroutwine
MTroutwine
Flag of United States of America image

If you have the MSDN CDs, there are some pretty good sample C++ DLLs included with it using the Active Template Library (ATL).  

Inside of MSDN do a Search on 'ATL Samples Index', this will bring up a list of sample projects! :>)
Avatar of header
header

ASKER

The samples you mentioned are still a little too advanced for me.  I can't make heads or tails of what is going on.  That is why I want just a simple dll shown to me so I can see how things flow and then build on that.
ASKER CERTIFIED SOLUTION
Avatar of gambistics
gambistics

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of header

ASKER

mcrider, thanks but the project that is created is blank.  What I need is an already existing project (not too complicated) that I can look at.
Avatar of header

ASKER

gambistics, that looks like it might be what I want, however I am having trouble compiling it.  Could you package it all up into a workspace and e-mail it to me?

header@rocketmail.com
header,

There are several DLL examples in the "Source Code Repository" at the link I gave you... Just click on the link above and then click "Source Code Repository"



Cheers!
Avatar of header

ASKER

gambistics, thanks for the sample project.  Everything makes much more sense now.

mcrider, thanks for your help as well.