Connie McBride
Members-
Content Count
12 -
Joined
-
Last visited
Community Reputation
0 Neutral-
that's probably it, but weird that it didn't yack at that point. (so, a typo) thanks
-
weird issue. I added a watch to my watch list: and instead of a string value, I am getting the component properties or something: my settings: my visualizers: this is pretty useless to me currently. how do I fix it?
-
Error : constant expression violates subrange bounds
Connie McBride replied to Connie McBride's topic in RTL and Delphi Object Pascal
because the library was built to run in delphi11, where cw_usedefault was defined as a dword. that constant changed in delphi12, where it is now an integer -
Error : constant expression violates subrange bounds
Connie McBride replied to Connie McBride's topic in RTL and Delphi Object Pascal
I changed the variable in the code to be an integer vs a dword, and now it works. but heads up to anyone who runs into this. -
Error : constant expression violates subrange bounds
Connie McBride replied to Connie McBride's topic in RTL and Delphi Object Pascal
I am building the crystal 13 vcl components for delphi 12. I don't have rtl in my search path Ucrpe.pas is failing on this line : function TCrpe.SendOutput : Boolean; var nLeft, nTop, nWidth, nHeight : DWord; xHandle : hWnd; begin .... if FWindowSize.FLeft = -1 then nLeft := CW_USEDEFAULT <<<<<<HERE nLeft is defined as DWord. so the .pas isn't in my search path, it's the same code that has worked in delphi 10 up to delphi 11.3. -
Error : constant expression violates subrange bounds
Connie McBride replied to Connie McBride's topic in RTL and Delphi Object Pascal
I'm actually not. one of my .pas files is using CW_USEDEFAULT, which is leading to the compile error. -
Error : constant expression violates subrange bounds
Connie McBride posted a topic in RTL and Delphi Object Pascal
Using Delphi 12, upgrading from Delphi11, using windows 32 as target. when building, I am getting this error: [dcc32 Errorr E1012 Constant expression violates subrange bounds the errror is in Winapi.Windows const {$EXTERNALSYM CW_USEDEFAULT} CW_USEDEFAULT = Integer($80000000); any ideas how to fix this? -
I managed to get the odbc to work for the dbexpress connection by setting the connection string in the ini file to: #ConnectionString=Driver={ODBC Driver 17 for SQL Server};server=pv06;database=qcLocal;uid=ccm;pwd=ccm ConnectionString=dsn=qclocal;database=qcLocal; of course, now the firedac connection doesn't work.... (still working on that)
-
I don't seem to have a connection issue with firedac. I am having the connection issue with dbexpress (I am in process of converting to firedac, so currently have both connections) when I use the data explorer (using dbexpress), this is how I set it up: I have also tried: when I click 'test connection', I get:
-
I setup the connection string: Driver={ODBC Driver 17 for SQL Server};Server=pv06;DAtabase = qclocal;schema=dbo;Trusted_Connection=yes; double clicked on it, and opened an sql window. setup a query (view exists in the dbo schema), and got this:
-
not sure how to answer that, but when I double click on the odbcConnection, it tells me note: I don't want to set up an actual connection, just want to get the ini method to work
-
Using Delphi 10 Seattle with dbExpress and Delphi 11 Alexandria with both dbExpress and firedac connecting to : sqlserver 2008 - 2022 I am using an ini to initialize the connections, and now I need to change it from using the native client libraries to the ODBC library. I keep getting 'unknown driver message, with the unknown driver set to whatever I set drivername to (I have tried odbc and ODBC Driver 17 for SQL Server) at one point, I didn't get a connection error anymore, but doing the first query returned an error running the first query on a view, saying the view wasn't found. Can someone please help fix? [QC2022] DriverUnit=Data.DBXOdbc DriverPackageLoader=TDBXOdbcDriverLoader,DBXOdbcDriver230.bpl DriverAssemblyLoader=Borland.Data.TDBXOdbcDriverLoader,Borland.Data.DbxOdbcDriver,Version=23.0.0.0,Culture=neutral,PublicKeyToken=91d62ebb5b0d1b1b MetaDataPackageLoader=TDBXOdbcMetaDataCommandFactory,DbxOdbcDriver230.bpl MetaDataAssemblyLoader=Borland.Data.TDBXOdbcMetaDataCommandFactory,Borland.Data.DbxOdbcDriver,Version=23.0.0.0,Culture=neutral,PublicKeyToken=91d62ebb5b0d1b1b GetDriverFunc=getSQLDriverMSSQL LibraryName=dbxmss.dll VendorLib=msodbcsql17.dll DriverName = ODBC Driver 17 for SQL Server MaxBlobSize=50000000 OSAuthentication=False PrepareSQL=True ErrorResourceFile= SchemaOverride=%.dbo Schema=dbo HostName=pv06 Database=qcLocal blobsize=-1 localecode=0000 isolationlevel=ReadCommitted os authentication=False prepare sql=False connecttimeout=60 mars_connection=False ConnectionString=Driver={ODBC Driver 17 for SQL Server};Server=pv06;DAtabase = qclocal;schema=dbo;Trusted_Connection=yes;