LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

kernel32

has anyone every used LabVIEW to set the system time zone or set the system time format?
0 Kudos
Message 1 of 7
(3,348 Views)
Chris H;

Check Geouge Zou's toolkit G Toolbox. I think it includes VIs to do that.

Regards;
Enrique
www.vartortech.com
0 Kudos
Message 2 of 7
(3,347 Views)

Hi:

I have used gtoobox from George Zou (http://gtoolbox.yeah.net), however it doesn't have any utility to read ini file using Kernel32.dll.  I have been trying to use this under LABVIEW.  I can easily use it in VB or CVI, but LABVIEW will crash on following function:

                GetProfileSectionNameA
            DWORD WINAPI GetPrivateProfileSectionNames(
                        LPTSTR lpszReturnBuffer,  DWORD nSize,  LPCTSTR lpFileName);
However, I can get/write Key's from any section. For further info, look at MSDN at following link:

http://msdn2.microsoft.com/en-us/library/ms724366.aspx

Nasir

0 Kudos
Message 3 of 7
(3,184 Views)
Why do you want to use the kernel32 functions instead of the built-in LabVIEW ones?
0 Kudos
Message 4 of 7
(3,183 Views)

Hi:

The built-in config file library works fine for smaller size files.  However, if you have a big ini file, more than 10 MB, it becomes very slow.  We have used windows ini file API based on Kernel32 in VB & CVI and even in HP VEE.  It works better with larger file.  We have even developed another way of dealing larger ini file, called index file.  That works for read only not writing.

Thanks.

 

Nasir

 

 

 

 

0 Kudos
Message 5 of 7
(3,176 Views)
Surely, that's a typo. You have a 10KB ini file? A 10Mb would seem to be too big by at least 9.5MB.
0 Kudos
Message 6 of 7
(3,163 Views)
If it crashes, you are doing something wrong. It's had to tell what it is without looking at the code. My guess is the calling convention


I've been able to run GetPrivateProfileSectionNamesA without problems, although I'm using a 30 bytes ini file. I'm not sure how the other should work. I do agree with Dennis that 10 MB seems a bit overdone for an application ini file.


Btw. GetProfileSectionNameA doesn't seem to excist. Do you mean GetProfileSectionA?


Regards,


Wiebe.
0 Kudos
Message 7 of 7
(3,148 Views)