Is there any tutorial aimed at creating dlls using dev c++? I also want to know the general steps or concepts involved while creating dlls?
--deostroll
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2007-09-21
Building a DLL in Dev-C++ is no different from building a DLL in any other C/C++ development tool. So a general Web search should get you plenty of material. To help you along Dev-C++ provides a DLL project templete (File->New->New project). This will set up a basic framework and provide the correct build settings and process - this being the only Dev-C++ specific part. You then just fill in the blanks.
If you want interoperability with other compilers, all your exported interfaces must have C linkage - either by being compiled as C code or by by being declared with extern "C". This precludes using C++ specific features classes, overloading, namespaces etc. You can use these features within teh code, but not expose tehm with C linkage. If you use C++ interfaces, you can only guarantee linkage with other MinGW/GCC code, and even then possibly not all versions.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is there any tutorial aimed at creating dlls using dev c++? I also want to know the general steps or concepts involved while creating dlls?
--deostroll
Building a DLL in Dev-C++ is no different from building a DLL in any other C/C++ development tool. So a general Web search should get you plenty of material. To help you along Dev-C++ provides a DLL project templete (File->New->New project). This will set up a basic framework and provide the correct build settings and process - this being the only Dev-C++ specific part. You then just fill in the blanks.
If you want interoperability with other compilers, all your exported interfaces must have C linkage - either by being compiled as C code or by by being declared with extern "C". This precludes using C++ specific features classes, overloading, namespaces etc. You can use these features within teh code, but not expose tehm with C linkage. If you use C++ interfaces, you can only guarantee linkage with other MinGW/GCC code, and even then possibly not all versions.
Clifford
Use the search feature and you will find an answer to your question (the search feature is that little box in the upper right that says "Search")