My example imported an objC function called "RL_GetRedLaserSDKVersion", the "RL_" at the beginning has no significance, it's just what the guys at RedLaser prefixed the function with in their objC code. You're also missing the parameters from the original function.
I'd suggest you do some google searching on DllImport and MonoTouch - this will lead you to various fragments which will guide you on what to do and how to include libs in your MonoDevelop project. It's sadly beyond the time I have available right now to walk you through exactly how to import the specific functions you're looking at. If you're struggling to get barcode reading working using the libs you have, have you considered using either RedLaser (I have bindings for this SDK at https://github.com/chrisbranson/RedLaserSample) or Goran's work at https://github.com/GoranHalvarsson/BarcodeReader-MonoTouch ? Chris On 12/10/2011 10:30, catullum wrote: > is that right if you see may code? > > > objc > > void *STCreateBarCodeSession(); > > > [DllImport ("__Internal")] > static extern IntPtr RL_STCreateBarCodeSession(); > > > > public void CreateBarcodeSession() > { > RL_STCreateBarCodeSession(); > } > > > if that is right. > i do nothing with de define instruction I creadt only an DLLInport for every > class defined in the header file of the library? > > so now the thriky question how can i say at the monodevelop that i would > import a library? > where i put the library in the project? > and after that are they some commandos to put some where for the > compilation? > > > -- > View this message in context: > http://monotouch.2284126.n4.nabble.com/Help-by-binding-objective-c-tp3892195p3897320.html > Sent from the MonoTouch mailing list archive at Nabble.com. > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
