LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Compile MySQL C API with LabWindows/cvi 2009

Hello,

 

Due to must program a 64-bit application with cvi, which need the database support, so the database toolkit of labwindows/cvi cannot be reused, because it is just for 32-bit application. My application using MySQL 5.1 as the data access module, thus look for  using its C APIs to design the database access interface. When compiling the code that includes the MySQL's head file, cvi throws an error: The  include file "sys/types.h" was not found. I know this include style  is in UNIX or Linux system, so I can not find the related include file. If this means that cvi's compiler does not support the MySQL C API's compiling?

 

 

David   

0 Kudos
Message 1 of 9
(5,140 Views)

David,

 

The latest version of the CVI SQL toolkit does have 64-bit support.

 

Luis

0 Kudos
Message 2 of 9
(5,121 Views)

Thank you, Luis. By the way, does the labwindows/cvi internet toolkit have a 64-bit edition?

 

 

David 

0 Kudos
Message 3 of 9
(5,087 Views)

David,

 

The intenet toolkit was discontinued a long time ago (around 2004 or so). At that time, most of the functionality of the toolkit was incorporated into CVI itself (FDS edition), becoming the Internet Library. The toolkit then ceased to exist as a separate product.

 

As of CVI 2009, you should be able to use Internet Library functions in 64-bit applications.

 

Luis

0 Kudos
Message 4 of 9
(5,077 Views)

Hi Luis,

 

Maybe the continues topic is not relateted the subject, but I still want to enquire that for the internet tools. To the old internet toolkit, I can export panel to a web browser using INET_PanelToJPEG(), however in the cvi 2009 internet functions, I can never find such a function, is there a substitution like the  INET_PanelToJPEG() function in cvi 2009?

 

 

David

0 Kudos
Message 5 of 9
(5,063 Views)

Hi David,

 

  Maybe you can implement this application with .NET library since there is no related function to implement this directly in LabWindows/CVI 2009.

 

Ben

0 Kudos
Message 6 of 9
(5,054 Views)

.NET? um, I think that is far off to me. Thanks.

 

 

David

0 Kudos
Message 7 of 9
(5,035 Views)

David,

 

I don't remember exactly what INET_PanelToJPEG did, but from the name, it simply sounds as if it created a snapshot of a panel as a JPEG image. If that's the case, you can still do that in CVI, using the following UI library functions:

 

1. GetPanelDisplayBitmap (or GetScaledPanelDisplayBitmap)

2. SaveBitmapToJPEGFile

3. DiscardBitmap

 

Luis

0 Kudos
Message 8 of 9
(5,018 Views)

Hi Luis,

 

Thank you for your reply. I'll try to it. It maybe need to design a CGI by myself.

 

 

David

0 Kudos
Message 9 of 9
(4,999 Views)