468,765 Members | 1,745 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,765 developers. It's quick & easy.

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

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?

Nov 17 '05 #1
0 1909

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

22 posts views Thread by Alper AKCAYOZ | last post: by
reply views Thread by BobTheHacker | last post: by
7 posts views Thread by Achim Domma (Procoders) | last post: by
reply views Thread by Silly | last post: by
1 post views Thread by saxenavaibhav17 | last post: by
9 posts views Thread by =?Utf-8?B?RWR3YXJkUw==?= | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.