I need a skeleton for a DLL, written in C for compiling with the lcc32 compiler not in C++.
Possible is also the source code of a DLL as an example.
I have a skeleton in 16 Bit but it does not work.
Thanks in advance
Bernhard Peter
Printable View
I need a skeleton for a DLL, written in C for compiling with the lcc32 compiler not in C++.
Possible is also the source code of a DLL as an example.
I have a skeleton in 16 Bit but it does not work.
Thanks in advance
Bernhard Peter
All you need is the prototype and the calling conventions, then compile it as a code resource. I will see if I can find some DLL source for 32-bit C. Usually all code resource (whether they are DLLs or any other form of code fragment) have the following form:
Prototype:
rtrn_val exampleDLLentry(arg_1, arg_2, ...);
for example, it might look like this:
long MDEF(int,int,int,char*);
then when it gets called, it's on this order:
long MDEF(int msg,int where_click,int last_click,char *stringP)
{
switch(msg)
{
case POSTFLIGHT:
break;
case UPDATE:
break;
case DRAW:
break;
case CLICK:
break;
case POSTFLIGHT:
break;
};
}
enjoy
Welcome back Sayeh.