Click here to Skip to main content
15,906,463 members
Articles / Programming Languages / Visual Basic

Export C++ to VB.NET

Rate me:
Please Sign up or sign in to vote.
4.25/5 (6 votes)
28 Mar 2010CPOL 17K   4  
If you want to export strings in C++ to VB.NET, build your function like this:BSTR __stdcall expfun(void){ char* cp_test = "Hi World!"; CString cs_test; cs_test.AppendFormat(L"%s", cp_test); return cs_test.AllocSysString();}and in VB.NET:Imports...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Junior)
Turkey Turkey
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions