Original Post
🔒 Locked
devc++ & dlls
Advertisement
Instead of using a def file why dont you just do it manually and use __declspec(dllexport) ?
for example:
//Use this below assuming you are using C++
extern "C" {
__declspec(dllexport) int Add(int a, int b);
};
__declspec(dllexport) int Add(int a, int b)
{
return a + b;
}
I always found that doing it manually gives you more control + you can easily create macros to do all of this for you.
-Nate S.
for example:
//Use this below assuming you are using C++
extern "C" {
__declspec(dllexport) int Add(int a, int b);
};
__declspec(dllexport) int Add(int a, int b)
{
return a + b;
}
I always found that doing it manually gives you more control + you can easily create macros to do all of this for you.
-Nate S.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement