Message 1 of 6
command function replacement
Not applicable
02-13-2002
11:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I was going through arx reference and found, that if I use the
lookupGlobalCmd function of the AcEdCommandStack class, I can obtain the
pointer to the AcEdCommand object that corresponds to the string i passed to
the function. From there I can go on extracting the target function address
and such. There does not seem to be a way of temporarily swapping the
address field for a different address (custom function that will on arx
unload restore the original address).
So, how should I go about patching into a currently existing command?
lookupGlobalCmd function of the AcEdCommandStack class, I can obtain the
pointer to the AcEdCommand object that corresponds to the string i passed to
the function. From there I can go on extracting the target function address
and such. There does not seem to be a way of temporarily swapping the
address field for a different address (custom function that will on arx
unload restore the original address).
So, how should I go about patching into a currently existing command?