Ambiguity between 'TBlobStream' and 'Memds::TBlobStream' ?

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Posts: 1
Joined: Fri 15 Dec 2006 09:47

Ambiguity between 'TBlobStream' and 'Memds::TBlobStream' ?

Post by piyik » Fri 15 Dec 2006 09:58


I'm using SDAC version 3.80 for C++ Builder 6 in my program.
But I found a compilation problem, because in my program, I use also

So, somewhere in my program, I declare a pointer named BlobStream like this:

TBlobStream *BlobStream;

And when I compile my program, it gives me an error

[C++ Error] MainForm.cpp(57): E2015 Ambiguity between 'TBlobStream' and 'Memds::TBlobStream'

Is this a bug in the SDAC component? It seems that SDAC defines its own TBlobStream, so there is an ambiguity.

Are there any workaround? :cry:
In fact I'm trying to upload a wav file to a table, so I need to use TBlobStream.

Any help?


Posts: 512
Joined: Thu 26 Jan 2006 10:06

Post by Jackson » Fri 15 Dec 2006 13:37

Yes, there is the TBlobStream class declared in MemDS unit.
Use the following syntax if you want to use the TBlobStream class from the DBTables unit:

Code: Select all

Dbtables::TBlobStream* BlobStream;

Code: Select all

Memds::TBlobStream* BlobStream;
for the TBlobStream class declared in MemDS unit.

Post Reply