Kayaker
December 29th, 2004, 19:52
Oh My Gosh, do I detect a readable sentence and semi-comprehensible question?
Having understood the words, I'm not sure exactly what you're trying to do. From your other posts it sounds like you extracted a .res dialog from some program and you're trying to get it to "show" through an injected dll? Since you're writing the dll itself you should be able to import the dialog .res file as a new resource, same as a bitmap or icon. Recompile the dll and you should see the new resource in Reshacker say. Now you need to make use of the res binary.
I'm not sure why you'd want use an external dialog box when you can recreate it any way you wish, including duplicating resource Ids. All it is is a shell with buttons you press. If you're trying to duplicate a dialog so you can enter data from your injected dll, you still need dialog box procedure code to tie it to, which was presumably in your target program.
I'm lost as to the purpose of this, but look into using either a CreateDialog* routine, or the sequence FindResource, LoadResource, LockResource to make programmatic use of resources. There are examples in the Asm forums, I'd search there for examples. Search, and please don't ask them.
Kayaker