Software and Applications (non-game)
Microsoft Windows
Computer Programming
Windows XP

How do you convert a c file to a dll file?

User Avatar
Wiki User
2006-09-28 11:28:46

Hi, Creating dll is pretty easy if you have Microsoft visula

studio.. The basic concept is as follows: 1)Create new project and

choose a win 32 - dll from the projects 2) Append the following

line before every class declaration class _declspec ( dllexport )

Eg. class _declspec ( dllexport ) cComplex { public: cComplex(float

a= 0.0, float b = 0.0); private: float real; float img; }; 3)

Similarly if u are using any function just append _declspec (

dllexport ) before function. 4) for consuming or using that dll

just mention dllimport in place of dllexport Thats all for now,

Copyright © 2020 Multiply Media, LLC. All Rights Reserved. The material on this site can not be reproduced, distributed, transmitted, cached or otherwise used, except with prior written permission of Multiply.