Sign in to follow this  

how to have same class signature between 2 CLR dll's ?

This topic is 2846 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I am getting error c3767 which is being caused as my vector class in one clr dll is getting declared/defined as something else or private. How can I ensure that my vector class signature remains uniform and I can pass it as an argument between the 2 dlls? Is declaring it as __declspec () my only option ? ------------ [declared in a common header file] class vector3 { ... } [/clr dll 1] public ref class X { void Init(vector3 *v) { } } [/clr dll 2] public ref class Y { X ^x; vector3 *v; void somefunc() { x->Init(v); //causes c3767 because vector3 signature is probably different } } ------------ thanks in advance, madan

Share this post


Link to post
Share on other sites
huh..
easy one.
this takes care of it if I declare the class in either dll.
#pragma make_public(type)

anyone knows how this impacts performance/code generation etc?

Share this post


Link to post
Share on other sites

This topic is 2846 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this