> I wrote class library that contain a struct stX and a new class library
> that get the first class library as referance and implement a function foo
[quoted text clipped - 7 lines]
> the compiler thinks it a diffrent type of the type the function foo needs
> why???
Hi,
First of all, you should show us the code and the exact error message.
Without those we are down to guessing.
If you exe has the DLL in its references, it can use all the types that are
public in the DLL.
I am not sure I understand your question correctly.
Do you mean that you have another declaration of stX in your exe?
Because in that case, you have a definition of stX in your DLL, and one in
your exe.
And they are indeed not that same.

Signature
Kind regards,
Bruno van Dooren
bruno_nos_pam_van_dooren@hotmail.com
Remove only "_nos_pam"