Tom's Hardware > Forum > Digital Camera > Digital Camera General > Canon SDK - VB6 & RCMakeImageItem function

Canon SDK - VB6 & RCMakeImageItem function

Forum Digital Camera : Digital Camera General - Canon SDK - VB6 & RCMakeImageItem function

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: rec.photo.digital (More info?)

 

Canon's RC-SDK (v8.1 / 8.2) allows developers control over their EOS range
of cameras and the images they take. The functions contained in the SDK
are not COM, but c++ api-like.

I've had few problems using the SDK, execpt for one function which is
defined as:

RCMakeImageItem( cdStgMedium StgMedium,
cdImageFormat format,
cdHImaeItem* phImageItem )

stgMedium is a user-defined type passed ByVal
format is a long passed ByVal
phImageItem is a long passed ByRef (to return a handle)

There's obviously no problems passing a long ByVal or ByRef, but my
problem is that VB6 won't compile complaining that UDT's (StgMedium) can't
be passed ByVal & the SDK won't accept it being passed ByRef.

From a programming point of view does anyone know a fancy-assed workaround
to allow udt's to be passed ByVal, or whether this is permitted in vb.net
(or c#) ??

More generally, does anyone have experience of developing with this SDK ??

Many thanks,
Andy.

Sponsored Links
Register or log in to remove.
Tom's Hardware > Forum > Digital Camera > Digital Camera General > Canon SDK - VB6 & RCMakeImageItem function
Go to:

There are 512 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them