Search found 6 matches

by totte_karlsson
Wed 16 Sep 2020 19:29
Forum: MySQL Data Access Components
Topic: Failure to link, C++ Builder 10.3
Replies: 1
Views: 2807

Failure to link, C++ Builder 10.3

I'm using Devarts DBExpress MySQL components. When using it in an application everytihng works fine.

When I try to package my forms and datamodules in a package, the package fails to link to devarts library.

By just adding the forms and datamodules to a package project, I get;

Code: Select all

[ilink32 Error] Fatal: Unable to open file 'DBXDEVARTMYSQLREADONLYMETADATA.OBJ'
After adding

Code: Select all

#pragma comment(lib, "DbxDevartMySqlDriver260.bpi")
in the package main source file I get:

Code: Select all

[ilink32 Error] Fatal: Unable to open file 'DATA.DBXMYSQLREADONLYMETADATA.OBJ'
preventing me to move on further.

Best Regards
by totte_karlsson
Sat 13 Jun 2020 01:57
Forum: dbExpress driver for MySQL
Topic: C++ Builder 64 bit ?
Replies: 1
Views: 23881

C++ Builder 64 bit ?

Hello,

What do I need to add in order for using your DBExpress driver in a C++Builder 10.4 64 bit application?

When testing in a test application, I get an error:

"DBX Error: Driver could not be properly initialized. Client library may be missing , not installed properly, of the wrong version, or the driver may be missing from the system path"

I downloaded a 64 bit libmysql.dll and put it on the path, but that did not fix the issue.

Cheers,
-tk
by totte_karlsson
Fri 29 May 2020 04:19
Forum: dbExpress driver for MySQL
Topic: Migrating from Embarcaderos driver to devarts
Replies: 1
Views: 19972

Migrating from Embarcaderos driver to devarts

Hello,
I just bought Devarts driver for MySQL, as I have had good experience with the same fro SQLITE, versus embarcaderso native one.

However, when switching a current application from using Embarcaderos native driver for MySQl to Devarts driver, I get a lot of errors saying that a strings actual field is 'WideString' instead of String?

How to fix this?

UPDATE: I found that unchecking the "UseUnicode" checkbox in the driver section seem to fix this problem. This is odd, since having it checked with the native driver don't seem to be a problem?

Thanks,
-tk
by totte_karlsson
Tue 02 May 2017 19:12
Forum: SecureBridge
Topic: Missing #include
Replies: 10
Views: 7461

Re: Missing #include

Hello,

Having the same problem as everyone else in this post.

Upgraded to SecureBridge 8.0.1.

Added

#include <Winapi.WinSock.hpp>
before the line
#include <winsock2.h>

in Scsshsocket.HPP

Thanks for an otherwise excellent component!
-tk
by totte_karlsson
Mon 13 Jun 2016 22:44
Forum: dbExpress driver for SQLite
Topic: WideString and DBGrid
Replies: 2
Views: 29833

Re: WideString and DBGrid

Found that the problem was related to a bad name of a field. The field was named 'order' and that caused the problems.. :(
by totte_karlsson
Mon 13 Jun 2016 18:23
Forum: dbExpress driver for SQLite
Topic: WideString and DBGrid
Replies: 2
Views: 29833

WideString and DBGrid

Hello,
I have a sqlite table that has a field named 'notes' and declared as WideString.

When I try to show the field in a DBGrid using XE3 C++ Builder, I get into problem.

I have written a GetText handler for the field in the ClientDataSet component, that looks like this (just for testing):

Code: Select all

void __fastcall TDataModule1::ribbonsCDSnotesGetText(TField *Sender, UnicodeString &Text,
          bool DisplayText)
{
	TField* field = dynamic_cast<TField*>(Sender);

	if(field == ribbonsCDSnotes)
	{
	    field->AsWideString;
		Text = "Test2";
	}
}
When hitting the line field->AsWideString; en error is thrown, ESQLiteError with message 'near ...: syntax error"

Any tips on how to get past this?
If I define the field as VARCHAR I don't have these problems.

Thanks,
tk