May 062009
 

Finally I use Interfaces.C.Pointers solved my problem mentioned here, actually it is not that hard to convert an C pointer to Ada array :P.

Now, I need to get user friendly name of the device in case there are more than one video capture device in the system, after digging around, MSDN (yes, always MSDN) told me I should use IPropertyBag, but the problem is … win32ada does not come with this interface, which means I have to add some more stuffs to the lengthy directshow.ads.

Won’t be too difficult, I can handle it. Actually I had a (crazy?) idea that I ever thought about before I started this project – I should write a C application and then conver it to Ada, could be easier as I can focus on one thing first (DirecShow and COM), and the other later (Ada grammer and coding convention). However, thinking of I believe I’m a multi-tasks man, I should do two at the same time :D.

 Posted by at 20:10

Sorry, the comment form is closed at this time.