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

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top