.net - How can i call function from c++ console project in CLR c++ window form? -


I have two projects which are the first C ++ console applications and the second C ++ CLR is a blank project. Console and use it in the CLR project. I tried to create header files, CLR included in the project and #include "headername.h" and use the function render3d (phone) but it gives me those errors adding

Error 29 error LNK2028: unresolved token (0A000934) "void __cdecl render3d (zero)" function referred to "private (render3d @@ $$ FYAXXZ?): Void __clrcall Demo :: MainForm: : AddAnimebutton_Click (class system: object ^, class system :: EventArgs ^) "(AddAnimebutton_Click @ MainForm @ demo @@ $$ Fa $ AAMXP $ AAVObject @ system @@ P $ AAVEventArgs @ 4 @@ Z) e: \ graduate project \ CPP Arena demo new design \ demos \ demos \ MainForm.obj demo

error 30 error LNK2019: unresolved external symbol "void __cdecl render3d (zero)" function "personal Referred to (render3d @@ $$ FYAXXZ?): Void __clrcall Demo :: notify Ma :: AddAnimebutton_Click (Class System :: Object ^, Class System :: EventArgs ^) "(? AddAnimebutton_Click @ MainForm @ demo @@ $$ FA $ AAMXP $ AAVObject @ system @@ P $ AAVEventArgs @ 4 @@ Z) e: \ graduation project \ CPP Arena demo new design \ demos \ demos \ MainForm.obj demo

error 31 error LNK1120: 2 unresolved external e: \ graduation project \ CPP Arena demo new design \ demos \ release \ DEMO.exe demo

you If there is a library function you want to make, call and add a dependency between projects. Your visual studio solution consists of 3 projects:

  • Library with render3d function
  • < Li> Console Application Refers to Library
  • CLR Blank Project which reference the above library

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -