1. Pierce DuBrock
  2. Valentina Database ADK
  3. Wednesday, June 29 2022, 11:03 PM
  4.  Subscribe via email
Just thought I would ask before I do some research into this.

Has anyone been able to connect a Valentina DB through Windev?.
References
  1. http://www.windev.com
Comment
There are no comments made yet.
Sergey Pashkov Accepted Answer
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?
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 1
Pierce DuBrock Accepted Answer
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.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 2
Pierce DuBrock Accepted Answer
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)
References
  1. https://doc.windev.com/en-US/?1000019149&name=API_description
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 3
Sergey Pashkov Accepted Answer
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.
Attachments (2)
References
  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
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 4
Pierce DuBrock Accepted Answer
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.
References
  1. https://doc.windev.com/en-US/?3014006&name=LoadDLL
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 5
Sergey Pashkov Accepted Answer
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.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 6
Pierce DuBrock Accepted Answer
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?.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 7
Sergey Pashkov Accepted Answer
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?
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 8
Pierce DuBrock Accepted Answer
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.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 9
  • Page :
  • 1


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

Categories

Announcements & News
  1. 0 subcategories
Valentina Studio
  1. 2 subcategories
Valentina Server
  1. 4 subcategories
Valentina Database ADK
  1. 0 subcategories
Valentina Reports ADK
  1. 0 subcategories
Other Discussions
  1. 2 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories