Click here to Skip to main content
15,867,833 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,
i received a project. the code of this project is written in C and i want to transform it in dll so i could use the functions later. i am using Microsoft Visual studio 2010. How could i proceed?
Please help me
Thanks
Posted

1 solution

Please see:
http://msdn.microsoft.com/en-us/library/16ya5xae.aspx[^],
http://msdn.microsoft.com/en-us/library/w8c3skw3.aspx[^],
http://msdn.microsoft.com/en-us/library/da6zd0a4.aspx[^].

I would advise to create a C++ DLL project in Visual Studio and add C files and corresponding header files to it. A C++ project can host C code without any problem. And then you may choose to wrap some C code in C++ or just export C functions directly.

—SA
 
Share this answer
 
v2
Comments
CPallini 9-Sep-13 3:03am    
5.
Sergey Alexandrovich Kryukov 9-Sep-13 3:07am    
Thank you, Carlo.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900