> OK. First, you really need to do your patch using a .c file -- when you > use a .cpp file, all of your function names get modified to include type > information. That is why the linker isn't able to find > 'GrfProcessStrokePatch' -- it doesn't exist -- instead, you have > something like 'GrfProcessStrokePatch__6VJDE'. You can also just change > the entry point for your code resource -- this needs to be a real > function name.
I just changed the name of my entry point to the real name of the function I'm patching and it works now ! Thanks ! I still need to use a .cpp file, I'm doing C++ and it doesn't compile if I deactivate the C++ compiler of course. Well now I get another link error saying that "new operator referenced from myPatch is undefined" > As for your patch not working -- I don't know. You didn't show your > code for the GrfProcessStrokePatch function. WinDrawChars isn't the > best function to use -- it relies on a lot of system state -- what > happens if you don't have a valid drawing window when this is called? I finally figured this out, it was just a question of some weird settings in the 68K processor settings (that I really didn't think it would change anything). So my patch was working as long as I was using a .c file. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
