Hello, I'm new to the use of DLLs and I have a doubt: how are function parameters coded in DLLs?
For example, say we have a function:
Code:
typedef struct
{
int length;
int *pBuffer;
}Type1;
typedef struct
{
char *string;
int strlen;
}Type2;
typedef Type2 *Type3;
int f( Type1 a , Type2 b , Type3 c );
Now, after compilation in DLL, I want to call the function, but I have different delcariations for types:
Code:
typedef struct
{
int length;
int *pBuffer;
}NewTypeName_t1;
typedef struct
{
char *string;
int strlen;
}NewTypeName_t2;
typedef NewTypeName_t2 *NewTypeName_t3;
so, types are corresponding in size but not in name. Can I use function with these new types? Or are type-names encoded into DLLs?
I'm almost shure that it should be a normal compilation=>functions are recognized only by name and parameters sizes, but I want to be shure...
Thank you very much for help and explanations.
BrownB