Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing another application's resource ?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Can LoadMenu and another resource loading functions work in the case of another instance handle was provided ?
Is that the technique to access other programs' resource, like some programs that have the possibility to display icons... of others DLL ?

LoadMenu( a instance handle different with current instance, a menu handle of this instance )

If possible, can you tell me the technique to export resource, so that this function can be used
(I guess that because I can not use LoadMenu successfully)

TIA.
 
to get in space of other processes in Win32 you can only through dll's or COM if the applications supports them. John Fill
1c.bmp


ivfmd@mail.md
 
Accessing main resource from embedded applications ?

For example, I have the main program that embeds some COM objects. In some cases, I want these objects have the ability of modifying main application's resource, or vice versa. I know both main application and its components share the same module handle, so we can use LoadResource functions in each side. In my own tests, it works OK with menus, but faulty with bitmaps, strings...

Here is my question: How to access the resource of a side from another side of this application ?

From previous topics, I know there is a way to do this, that is calling LoadLibraryEx to make another instance of which module you want to access its resource. But I think it seems to be a roundabout way. Maybe is there a better solution, within the given module only ?

Thanks for your helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top