471,049 Members | 1,924 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,049 software developers and data experts.

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 1968

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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.