Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

function pointeres from bundle



I was finally able to load a loadable bundle i created. The executable name was wrong in the plist, so it could not find it. Now, im trying to get a function pointer for a function in the bundle. I have this function in the bundle:

void
TMSPluginEnter( )
{
SysBeep(30);
}

So i load the bundle, and i know that its loaded. that part is fine. I use this to load the function pointer:

typdef void (* TMSPluginEnterPtr)(void)

TMSPluginEnterPtr enterFunc = ( TMSPluginEnterPtr ) CFBundleGetFunctionPointerForName ( this->bundle, CFSTR ( "TMSPluginEnter" ) );

but the function is null on output. Is there anything i need to define in the bundle to say that i can load this function? What might i be doing wrong?

--
Alexander Cohen
http://www.toomuchspace.com
(819) 348-9237
(819) 432-3443
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.