Jump to content
  • Advertisement
Sign in to follow this  
manmanman

[.net] Need urs help...My first POST here

This topic is 4252 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

HERE IS MY CODE IN VC++ NET 2005... class library trying to use it in C#.net NO problem....BUT problem when i tried to overload on + operator please tell what is wrong SEE THE CODE OF dll(vc++) + testing code(c#) + errors I`m NEW in VC++ .net //////////////////////////////// ////// Vc++ code DLL file//// //////////////////////////////// namespace AByte { public ref class AESByte { // TODO: Add your methods for this class here. public : /// Variable int real; int imaginary; /// contructors AESByte(int real, int imaginary) //constructor { this->real = real; this->imaginary = imaginary; } //// Operation + - * / AESByte^ operator +(AESByte^ c1); }; AESByte^ operator +(AESByte^ c1) { return gcnew AESByte(c1->real, c1->imaginary ); } } //////////////////////////////////////// //////////C# where i`m using my DLL///// /////////////////////////////////////// using AByte; : : : AESByte s1 = new AESByte(4,4); AESByte s2 = new AESByte(5,3); // AESByte s3=s1+s2 ; /////////////////////////////////////// //////////ERROR during compiling//////// /////////////////////////////////////// Error 1 error LNK2020: unresolved token (06000004) AByte.AESByte::op_Addition AByte.obj Error 2 fatal error LNK1120: 1 unresolved externals F:\4thYear\AES\AES_windows\Debug\AByte.dll

Share this post


Link to post
Share on other sites
Advertisement
Looks like you need to add the AByte.dll reference to your project or it is not finding the reference you added earlier.

thetroll..

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
really the reference is add :(

and VC# is completing me when u write AESBYTE. a list appear and so on...

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!