Problem with CString::LoadString in a managed c++ wrapper.

  • Thread starter Thread starter Ola Sprauten
  • Start date Start date
O

Ola Sprauten

I got a .NET class library project where I have written a managed wrapper
for some unmanaged code. The managed wrapper is then used by a c# .net
application. The problem I am having is that the unmanaged code relies
heavily on LoadString to load strings from a resource string table. I added
a string table to the .NET class library project, and added all the
necessary entries, but it all fails when it when it calls
AfxGetResourceHandle(). It throws an unhandled exception.

Anyone know how to get LoadString to work when wrapping unmanaged code?

--Ola
 
Back
Top