c# - Accessing strings in an rc file -
i have rc file conating string table in dll x.
i wish utilize strings in string table in c# project y nowadays in same solution. if project y c++, know can utilize loadstring function, c#, not sure.
can list out steps needed?
you can still utilize loadstring
p-invoke
[dllimport("user32.dll", charset = charset.auto)] static extern int loadstring(intptr hinstance, uint uid,stringbuilder lpbuffer, int nbuffermax);
here defintions of loadlibrary
, freelibrary
[dllimport("kernel32", setlasterror=true, charset = charset.unicode)] static extern intptr loadlibrarya(string lpfilename); [dllimport("kernel32.dll", setlasterror=true)] static extern bool freelibrary(intptr hmodule);
c# string embedded-resource
No comments:
Post a Comment