D
Dave L
I have a Managed C++ DLL used by a C# application. I'm building with VS .NET
2002.
I have a resx file loaded with string data. The C# application can access
the string data fine, like so:
ResourceManager rm = new ResourceManager("DS.Names",
Assembly.GetExecutingAssembly());
String text = rm.GetString("1");
Now in my Managed C++ DLL I want to do the same thing:
ResourceManager* rm = new ResourceManager("DS.Names",
Assembly::GetExecutingAssembly());
System::String* text = rm->GetString("1");
However, while it compiles fine if fails with this error on the GetString
line:
'System.Resources.MissingManifestResourceException' occurred in
mscorlib.dll.
Clearly the C++ DLL cannot locate the resource.
Is it possible to share this resx file between C# and C++? If so, how?
Thanks.
2002.
I have a resx file loaded with string data. The C# application can access
the string data fine, like so:
ResourceManager rm = new ResourceManager("DS.Names",
Assembly.GetExecutingAssembly());
String text = rm.GetString("1");
Now in my Managed C++ DLL I want to do the same thing:
ResourceManager* rm = new ResourceManager("DS.Names",
Assembly::GetExecutingAssembly());
System::String* text = rm->GetString("1");
However, while it compiles fine if fails with this error on the GetString
line:
'System.Resources.MissingManifestResourceException' occurred in
mscorlib.dll.
Clearly the C++ DLL cannot locate the resource.
Is it possible to share this resx file between C# and C++? If so, how?
Thanks.