Ambiguity between 'PLongint' and 'System::PLongint'

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
DaveV
Posts: 4
Joined: Thu 20 Sep 2012 15:30

Ambiguity between 'PLongint' and 'System::PLongint'

Post by DaveV » Mon 24 Sep 2012 17:22

I downloaded SDAC 6.5.9 for C++ Borland Builder 6 (Build 10.166), and set up a very small test program. Everything worked fine, so I dropped a TMSConnection object on the form for my target program, wrote a little code, and built the project. It came back with errors on lines 190 and 191 of OLEDBAcess.hpp (the middle two lines below):

public:
HRESULT __stdcall Read(void * pv, int cb, PLongint pcbRead);
HRESULT __stdcall Write(void * pv, int cb, PLongint pcbWritten);
__fastcall TOLEDBStream(Memdata::TBlob* Blob, Classes::TList* StreamList)/* overload */;

I think the easiest answer would be to replace PLongint with the actual declaration, but I haven't been able to find the PLongint typedef.

DaveV
Posts: 4
Joined: Thu 20 Sep 2012 15:30

Re: Ambiguity between 'PLongint' and 'System::PLongint'

Post by DaveV » Mon 24 Sep 2012 20:23

I changed the PLongint declarations to int *, and made it through compile. Now the link fails, with the message:

[Linker Error] Unable to open file 'DBACCESS.RES'

AndreyZ

Re: Ambiguity between 'PLongint' and 'System::PLongint'

Post by AndreyZ » Tue 25 Sep 2012 08:19

Hello,

Please make sure that Library Path of C++Builder 6 contains the following folders:
SDAC_Install_Directory\Lib
SDAC_Install_Directory\Bin
SDAC_Install_Directory\Include
, where SDAC_Install_Directory is a directory where you installed SDAC.

DaveV
Posts: 4
Joined: Thu 20 Sep 2012 15:30

Re: Ambiguity between 'PLongint' and 'System::PLongint'

Post by DaveV » Tue 25 Sep 2012 12:17

Thanks, that worked.

AndreyZ

Re: Ambiguity between 'PLongint' and 'System::PLongint'

Post by AndreyZ » Tue 25 Sep 2012 12:20

If any other questions come up, please contact us.

Post Reply