Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading binary VB file in C++.Net question 2!!

Status
Not open for further replies.

shetlandbob

Programmer
Mar 9, 2004
528
GB
Hi again, thanks for the help last time.

I've come across another problem, in my VB file I have a date and time which has been specified as a "Variant", however I cannot read this in to my C++ program. If I use the following:

fread ( &DateTime, sizeof(VARIANT), 1, inputResultsFile )

then the variable DateTime is recognised as a date time format but not as the correct date/time.

Thanks again for any help if you can provide it.

Cheers

 
Try read MSDN about VB Variant implementation (search VARIANT).
As far as I know, OLE 2 VARIANT structure defines VB Variant too. It's a structure with fixed tag fields plus a union for variable contents...
Sorry, VB background (and foreground too;) is out of my scope...
Good luck!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top