Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

pallavi0703

macrumors newbie
Original poster
Dec 12, 2007
27
0
Hello All ,
I have created one input method using 'basicinput method' sample code which is build in carbon C.
My Input method works for MS Office , Adobe FreeHand MX 11 on Mac OS X 10.4 with power pc processor ,
but it does not works for MS Office , Adobe FreeHand MX 11 on Mac OS X 10.4 with intel processor.
This input method supports Text Edit , Adobe Indesign CS3 , Adobe Illustrator CS 3 on Mac OS X 10.4 with
both intel processor as well as power pc processor.
How should I write resource file so that it will work for MS Office and FreeHand MX for intel processor.

following is the resource file code for input method component
resource 'thng' (128)
{
'tsvc', /* The component type. Must be 'tsvc' text service). */
'inpm', /* The component subtype. Must be 'inpm' (input method). */
'appl', /* This must be a unique vendor code. */
0x8000 + kSLScript * 0x100 +
kSLLanguage, /* 0x8000 + script code * 256 + language code.
For example, if the text service is Japanese --
smJapanese (1) and langJapanese (14) the value is
0x8000 + 0x0100 + 0x000B = 0x0000810B */
kAnyComponentFlagsMask, /* Must be kAnyComponentFlagsMask. */
'dlle', kBaseResourceID, /* A reference to our dispatch code. */
'STR ', kBaseResourceID,
'STR ', kBaseResourceID,
'ICON', kBaseResourceID,
0x00010000,
componentHasMultiplePlatforms,
15872 + kSLScript * 0x200,
{
0x8000 + kSLScript * 0x100 +
kSLLanguage, /* 0x8000 + script code * 256 + language code.
For example, if the text service is Japanese --
smJapanese (1) and langJapanese (14) the value is
0x8000 + 0x0100 + 0x000B = 0x0000810B */
'dlle', kBaseResourceID, platformIA32NativeEntryPoint
}
};

resource 'dlle' (kBaseResourceID) {
"BIMComponentDispatch"
};

Thanks & Regards,
Pallavi.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.