LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CharToOemA

I need a example with CharToOemA of user32.dll function.
Thanks
0 Kudos
Message 1 of 5
(4,073 Views)
IP,
For the information on the user32.dll functions, you should write to MSDN.

Zvezdana S.
National Instruments.
0 Kudos
Message 2 of 5
(4,073 Views)
Thanks but my problem is how to apply in the LV. The syntax is:

Private Declare Function CharToOem Lib "user32" Alias "CharToOemA" (ByVal _
lpszSrc As String, ByVal lpszDst As String) As Long

deststring = Space$(Len(sourcestring))
retcode = CharToOem(sourcestring, deststring)


"Zvezdana S." wrote in message
news:506500000005000000279E0000-1027480788000@exchange.ni.com...
> IP,
> For the information on the user32.dll functions, you should write to
> MSDN.
>
> Zvezdana S.
> National Instruments.
0 Kudos
Message 3 of 5
(4,073 Views)
IP,
It looks like you already know how to use this function. In LabVIEW, to call dlls, you would use the Call Library Function Node. You would just need to specify the dll name in the configuration window, and the function and parameters used.
You will then need to wire all the appropriate inputs.
There are some example VIs that ship with LabVIEW that explain how to use the Call Library Function Node.

Zvezdana S.
0 Kudos
Message 4 of 5
(4,073 Views)
If this is a private function on this dll, you will NO be able to access it with a DLL call in LabVIEW.

An alternative method may work, such as calling the DLL with the system exec. If this is how you access this call, then try it with this method.

Hope that helps.
Message 5 of 5
(4,073 Views)