>>
>>Oh, OK. It was part of the download (from MSDN) version. If you go to the Task(er) (that's a joke, BTW) Pane, it's in the "New in Visual FoxPro 8.0" under the "Solution Samples". It's the next to the last sample.
>>
>>It'll launch a browser window with instructions. I've followed the instructions exactly, but no joy on the VB side (no need to convert to C#, BTW). If you do get a chance to try it, please let me know the results.
>
>You made me curious :) While got you online another dummy/silly question from me :)
>I have a struct like this :
>
>struct mystruc
>{
> short s1;
> char s2;
> int s3;
> unsigned char u1;
> unsigned short u2;
>} myrecord;
>
>* A data file as seen in hexeditor
>00 80 80 FF FF FF FF 80 00 80
>
>Want to read this at once into struc if possible at all. Something like :
>
>
> mystruc arecord;
> //...
> fread( &arecord, sizeof( mystruc ), 1, fin );
>
>Not even sure I could make it understandable :)
Cetin,
No I don't completely understand. The question, however, that I'd ask is why is the char being declared as unsigned? AFAIK, char is neither signed or unsigned.
George
Ubi caritas et amor, deus ibi est