On 02/12/2008, at 4:34 PM, M Pulis wrote:

Folks,

In the code below, from

http://developer.apple.com/documentation/Carbon/Conceptual/ImageCaptureServicesProgrammingGuide/03HowtoWriteanImageCaptureApplication/chapter_3_section_1.html#/ /apple_ref/doc/uid/TP40005196-CH4-SW1


In the calls CFArrayCreate and ICARegisterForEventNotification, the code uses a variable called "amp". What is "amp"? As it sits, the snippet does not compile, stumbling as I have, on "amp".

Thanks,

Gary

snip

/* Sample code snippet to illustrate the use of ICARegisterForEventNotification() */
                         };

CFMutableArrayRef array = CFArrayCreate( kCFAllocatorDefault, (const void**)&notificationsOfInterest, 12, &kCFTypeArrayCallBacks );

snip

err = ICARegisterForEventNotification( &pb, registerForEventNotificationCallback );

   CFRelease( array );

   return err;

}

They are almost certainly un-rendered plain '&' tokens which Safari has failed to render properly or perhaps the html was incorrectly written. The clue is that each of them have a semi-colon after them. Have a look at the page's source code to check, but I think you could just remove the the word 'amp' and the semi-colon and it should compile.

Ron
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to