1. Pierce DuBrock
  2. Valentina Database ADK
  3. Среда, Июнь 29 2022, 11:03 PM
  4.  Подписаться через email
Just thought I would ask before I do some research into this.

Has anyone been able to connect a Valentina DB through Windev?.
Ссылки
  1. http://www.windev.com
Комментарий
There are no comments made yet.
Pierce DuBrock Ответ принят
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.
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
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?
Комментарий
There are no comments made yet.
Pierce DuBrock Ответ принят
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?.
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
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.
Комментарий
There are no comments made yet.
Pierce DuBrock Ответ принят
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.
Ссылки
  1. https://doc.windev.com/en-US/?3014006&name=LoadDLL
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
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.
Вложения
Ссылки
  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
Комментарий
There are no comments made yet.
Pierce DuBrock Ответ принят
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)
Ссылки
  1. https://doc.windev.com/en-US/?1000019149&name=API_description
Комментарий
There are no comments made yet.
Pierce DuBrock Ответ принят
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.
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
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?
Комментарий
There are no comments made yet.
  • Страница :
  • 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