visual c++ Create DLL question

  • Wuhoo
  • Newbie
  • Newbie
  • Wuhoo
  • Posts: 5

Post 3+ Months Ago

I have a visualc++ project containing 20 classes or so... I need to create a DLL out of it....Im not sure exactly how to go about doing this... everything Ive read on the net says to create a new 'dll' project using the wizard, and simply import all of my .cpp/.hpp/resoarces into the new DLL project....is that really All i need to do....any suggestions or links to places that I could use as a resoarce would be GREATLY appreciated....Thank you in advance...

mike
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • _Leo_
  • Proficient
  • Proficient
  • User avatar
  • Posts: 279
  • Loc: Buenos Aires, Argentina

Post 3+ Months Ago

Well, after importing you will have to add an interface definition to use the classes in other projects.

Check forums about VC++ in http://www.codeguru.com
  • Wuhoo
  • Newbie
  • Newbie
  • Wuhoo
  • Posts: 5

Post 3+ Months Ago

so here is where im at... I went to http://www.codeguru.com and found a tutorial...Thanks for that link.....ok...I created a DLL project with the wizard...then I added all of my .cpp/.hpp files....in the .hpp file I add the keyword...
ex, class __declspec(dllexport) MyClass

I then build and get this error

fatal error C1010: unexpected end of file while looking for precompiled header directive


I missing something here...hmmm....and experienced DLL creators out there? thanks
  • _Leo_
  • Proficient
  • Proficient
  • User avatar
  • Posts: 279
  • Loc: Buenos Aires, Argentina

Post 3+ Months Ago

Disable precompiled headers in the project settings.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 70 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.