Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 7.0 Feature
Message
 
 
To
28/11/2000 15:22:12
Robert Lee
Swiderski Electronics, Inc.
Carol Stream, Illinois, United States
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00446207
Message ID:
00446439
Views:
11
Enums are simply integers so try using this when defining the StreamInfo structure with Struct. The first enumeration is 0 with each successive element incremented by 1.

It looks like you should be able to handle this with VFP. There are no complex structures (e.g. pointers to structures within structures). For that, I would recommend Ed Rauh's ClsHeap class.

HTH.

>I am in a situation where I am calling a COM object written in C++ that requires two parameters to be passed. The first parameter is a string (e.g. "e:\boso.mpg") and the second parameter is a reference to a streaminfo structure.
>
>...
>ocv = createobject("cineviewserver.cvproserver")
>ocv.initialize(0)
>ocv.GetStreamInfo("e:\boso.mpg",@streaminfo)
>...
>
>Unfortunately streaminfo is a user defined type which is not supported in VFP
>
>enum tVelaStreamType
>{
> AUDIO_ELEM,
> VIDEO_ELEM,
> AUDIO_PES,
> VIDEO_PES,
> MUXED,
> STINVALID
>}
>
>typedef struct
>{
> tVelaStreamType StreamType;
> double MuxedRate;
> int numProgramEntries;
> int numVideoStreams;
>}tVelaStreamInfo
>
>
>I came across STRUCT.ZIP by CHRISTOF LANGE in the WINAPI section but it came short because it did not cover the enum structure.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform