LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the name of machine where my application is running ?

I know that there is a API (Kernell.dll) where the function GetComputerName() returns this information but I have not been getting with the Call Library Function Node. Please I need this information as soon as possible.
0 Kudos
Message 1 of 7
(3,486 Views)
hi

see attachment

best regards
chris
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
Message 2 of 7
(3,486 Views)

Why does the kernel32. DLL you used work but the one I downloaded from the Internet doesn't?

0 Kudos
Message 3 of 7
(2,517 Views)

Did you download the DLL from some of those “Fix your system” sites??????

 

Don’t ever do that!!!! kernel32.dlll and several other DLLs like user32.dll, shel32.dll and many others are part of a standard Windows install. Replacing them with random other DLLs downloaded from the internet is in the best case destabilizing your system buf many of these sites do provide bogus DLLs that have been altered to contain malicious code!

 

All these DLLs interact with each other and need to match in version as tested by Microsoft and can catastrophically fail if they try to interact with a DLL version they were not designed for!

Rolf Kalbermatter
My Blog
0 Kudos
Message 4 of 7
(2,503 Views)

So why does it work without your DLL?

0 Kudos
Message 5 of 7
(2,493 Views)

Which DLL? I never wrote any DLL like kernel32.dll. What is your real problem?

 

The Call Library Node configuration as shown in your other thread is wrong. It does not match the parameter list as shown in the Microsoft documentation. The Call Library Node configuration in the VI attached in this thread is correct!

 

Incorrect Call Library. Node configuration will usually crash your program, that’s normal!

Rolf Kalbermatter
My Blog
0 Kudos
Message 6 of 7
(2,490 Views)

See attachment

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 7 of 7
(2,442 Views)