• Advertisement

Archived

This topic is now archived and is closed to further replies.

using C functions in a Managed C++.net DLL

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

okok i was fiddling around with C functions in a managed c++.net class library (.net dll), and found that there are link errors if i use those C functions: error LNK2001: unresolved external symbol "int __cdecl sprintf(char *,char const *,...)" I found that using them in .net class libraries will give such errors, while winform applications do not. anyone got great ideas on resolving such issues?? thx! Edwinz

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
I think you need to add an explicit link to the CRT runtime
this is not done by default for all managed C++ projects.

Share this post


Link to post
Share on other sites

  • Advertisement