Hi guys I really need your help. Im developing a C# app thats going to be home to a few plugins. So Im writing the first dll and already in trouble (don't do much c# mainly c++).
anyways so far i have a class within my dll that takes a param of type object this is sent from my main exe. i send a user defined struct as type object and when i try to cast it back on the other side i get a 'Specified cast is not valid' exception. any ideas on how i can send a user defined struct from one side to the other????????
Duece_68
0
Newbie Poster
Recommended Answers
Jump to PostIs there a reason why you have to set up the methods to take a type of "Object"? Will your "main" program accept DLLs that pass structs/classes of many types? Even if that's the case, your main project will still have to know about them in order to cast the …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.