🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
3 messages
3 total messages Started by Terry Tue, 22 Apr 2003 19:14
LARGE_INTEGER
#16862
Author: Terry
Date: Tue, 22 Apr 2003 19:14
20 lines
1441 bytes
Can someone tell me exactly how i can use this code.

TBlobField(Table.FieldByName('Content')).SaveToStream(TOleStream.Creat
e(DataStream));

TBlobField(Table1->FieldByName("Content")).SaveToStream(TOleStream->Cr
eate(DataStream));
[C++ Error] Unit2.cpp(116): E2108 Improper use of typedef 'TOleStream'

And this other one

__int64 Dummy = 0;
_di_IStream DataStream;

DataStream->Seek(0, STREAM_SEEK_SET, (ULARGE_INTEGER*)&Dummy);
[C++ Error] Unit2.cpp(117): E2034 Cannot convert 'int' to
'_LARGE_INTEGER'


Thanks a lot.
Re: LARGE_INTEGER
#16863
Author: Remy Lebeau (TeamB)
Date: Tue, 22 Apr 2003 20:01
25 lines
1581 bytes
"Terry" <terry@helloworld.com> wrote in message
news:3ea59478@newsgroups.borland.com...

> TBlobField(Table.FieldByName('Content')).SaveToStream(TOleStream.Creat
> e(DataStream));

Here you go:

    ((TBlobField*)Table->FieldByName("Content"))->SaveToStream(new
TOleStream(DataStream));

> [C++ Error] Unit2.cpp(117): E2034 Cannot convert 'int' to
> '_LARGE_INTEGER'

LARGE_INTEGER is a structure, but you're trying to pass a single numeric
value instead.  The first parameter of Seek() needs to be like this instead:

    LARGE_INTEGER li
    li.QuadPart = 0;

    DataStream->Seek(li, ...);


Gambit
Re: LARGE_INTEGER
#16865
Author: Terry
Date: Tue, 22 Apr 2003 20:20
7 lines
1178 bytes
Appreciate the help, one of these dacades i may begin to
understand this stuff.

"Remy Lebeau (TeamB)" <gambit47@yahoo.com> wrote in message
news:3ea59f5b$1@newsgroups.borland.com...
> Here you go:
>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads