Board index » cppbuilder » Repost - E2015 Ambiguity between System::LONG64 and LONG64

Repost - E2015 Ambiguity between System::LONG64 and LONG64


2003-07-08 07:13:36 PM
cppbuilder74
Not badgering, honest. It took a while for this to show up on the list last time and when it did, it was a page or two back, so may not have had much airtime. . .
The code generating the E2015 ambiguity error is this.
You'll see that I'm calling it in the FormCreate - is
this OK?
void __fastcall TMainWindow::FormCreate(TObject *Sender)
{
LPSTR OutPath;
LPSTR Target="vtplus32.exe";
LPSTR RootPath;
//Loop through drives from c:\
//(ascii 67)to find vtplus32.exe
// testing just with c, d, e
BOOL Got;
for(int a=67; a<69; ++a)
{
RootPath = String(char(a)+":\\").c_str();
if(GetDriveType(RootPath)==DRIVE_FIXED)
Got=SearchTreeForFile( RootPath , Target , OutPath);
//if(Got==True)do stuff
}
}
The call to GetDriveType throws no errors.
You mentioned possible conflict between
windows headers and vcl headers. My #include
list so far is
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include
form tag removed
<!--- Forms.hpp>
#include <imagehlp.h>
#include <Buttons.hpp>
#include <ComCtrls.hpp>
#include <Dialogs.hpp>
#include <ExtCtrls.hpp>
#include <ImgList.hpp>
#include <Menus.hpp>
#include <ToolWin.hpp>
Apart from the imagehlp one, these are all IDE-generated base on components on my form.
Any suggestions welcome!
Thanks
Mark D
 
 

Re:Repost - E2015 Ambiguity between System::LONG64 and LONG64

Quote
The code generating the E2015 ambiguity error is this.
You'll see that I'm calling it in the FormCreate - is
this OK?
Which lines gives this error? I don't see LONG64 in the
code at all. What is SearchTreeForFile?
--
Jonathan Arnold C/C++/CBuilder Keen Advice:
www.keen.com/categories/categorylist_expand.asp
Comprehensive C++Builder link site:
www.buddydog.org/C++Builder/c++builder.html