1. Pierce DuBrock
  2. Valentina Database ADK
  3. Mittwoch, Juni 29 2022, 11:03 PM
  4.  Abonnieren via E-Mail
Just thought I would ask before I do some research into this.

Has anyone been able to connect a Valentina DB through Windev?.
Referenzen
  1. http://www.windev.com
Kommentar
There are no comments made yet.
Pierce DuBrock Akzeptierte Antwort
I un-installed the C ADK then re-installed and and success!. I can load the DLL.

I shall continue on.

Thanks for helping me out Sergey.
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
Did you try to restart the system? Maybe the PATH variable is not reloaded
vcsdk_release_x64.dll - did you copy it somewhere where the PATH variable points? Or somewhere near the executable?
Kommentar
There are no comments made yet.
Pierce DuBrock Akzeptierte Antwort
I made that dll accessible and tried loading it. Got the same error message.

"Error loading 'vcsdk_release_x64.dll' DLL
System Error Details: The specified module could not be found.

Didn't like the manual way of regsvr32 either.
Anything else that I could try?.
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
In WinDev code, you should load only Valentina C SDK library
vcsdk_release_x64.dll.

Just put in accessible place.

Kernel and other libraries are loaded automatically.
Kommentar
There are no comments made yet.
Pierce DuBrock Akzeptierte Antwort
Thanks. I think I am getting closer.
In windev I use the function LoadDLL(). Works ok for vshared_release_x64.dll but not vkernel.

Get an error message:

"Error loading 'vkernel_release_x64.dll' DLL
System Error Details: The specified module could not be found.

I'm just trying to figure out why it gives me this as both DLLs are in the correct path.
Anything else you may be able to see?. I'll keep plugging away here as well.
Referenzen
  1. https://doc.windev.com/en-US/?3014006&name=LoadDLL
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
The declarations are installed to:

C:\Program Files (x86)\Paradigma Software\VCDK_x64_12\Include


Yes, that's right, here's the Valentina_Init declaration

VCSDK_EXPORT void Valentina_Init(
uint32_t inCacheSize,
char* inMacSN,
char* inWinSN,
char* inUnixSN );


UTF-8 strings are expected for char* parameters, so StringToUTF8can be used.

I attached the PureBasic tutorial, I think it can be used as a reference.
Anhänge
Referenzen
  1. http://valentina-db.com/download/release/win_64/vcsdk_x64_12_win.exe
  2. https://valentina-db.com/docs/dokuwiki/v12/doku.php?id=valentina:products:adk:purebasic
Kommentar
There are no comments made yet.
Pierce DuBrock Akzeptierte Antwort
Do you have any documentation on the C declarations. I could not find anything in the wiki.
I think I have found the necessary functions in windev to call the "C" functions but I need to know what yours are.

For example: How to call the Init or Valentina_Init method/function in your C dll (or whatever you have named it).

I think I should be heading in this direction (url below)
Referenzen
  1. https://doc.windev.com/en-US/?1000019149&name=API_description
Kommentar
There are no comments made yet.
Pierce DuBrock Akzeptierte Antwort
Hello Sergey,

Platform of interest is Windows desktop.
I may avoid ODBC if it requires the installation of libraries on the user side.
Windev can create just the 1 exe and that is all I want to pass onto the user.
I had previously used Xojo with the ADK for Xojo.

I have now moved to Windev and would like to keep Valentina as my database so I'll give the C libraries a shot.

Thankyou for your response.
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
Hello Pierce,

WinDev is able to use C libraries.
So it should be possible to connect our C ADK (previously we tested this functionality with PureBasic).
Of course, it is for desktop platforms only.

Another option is ODBC (it is available only for Windows now).

What platforms are you interested in?
Kommentar
There are no comments made yet.
  • Seite :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.