09-26-2010 07:56 PM
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
09-27-2010 11:33 AM
09-28-2010 08:34 AM
Thank you, Luis. By the way, does the labwindows/cvi internet toolkit have a 64-bit edition?
David
09-28-2010 11:09 AM
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
09-28-2010 07:49 PM
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
09-29-2010 01:12 AM
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
09-29-2010 07:19 AM
.NET? um, I think that is far off to me. Thanks.
David
09-29-2010 11:27 AM
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
09-29-2010 10:38 PM
Hi Luis,
Thank you for your reply. I'll try to it. It maybe need to design a CGI by myself.
David