I am pretty new to DLL Programming. Out of sheer curiousity i wanted to use my own Standard DLL as a custom action. I do not have VC++ with me so I am using BloodShed Dev-Cpp 5. I have a simple MyFunction which displays a messagebox and returns a string. The function definition is something like this.
CODE |
__declspec(dllexport) char* MyFunction(); |
I'm sure that it works coz i have a simple console application which uses this dll. It goes something like this
CODE |
.... __declspec(dllimport) char* MyFunction(); .... //in the main function cout<<MyFunction()<<endl; ... |
This works absolutely fine. But when i call it in the installer it says that the function is not exported.
Please Help.
Thanks in advance.
Regards
Neo.