LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

OPC UA architecture

maybe because i'm using the evaluation version.

i have to install the Full Developement System

 

calling_windows_sdk_functions

Davide Vittorio G. - TLGB S.R.L.
Italian SW Developer
0 Kudos
Message 31 of 54
(3,204 Views)

I think you're right.

 

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 32 of 54
(3,173 Views)

Tryed with a full version but still have the same problem... Smiley Sad

Davide Vittorio G. - TLGB S.R.L.
Italian SW Developer
0 Kudos
Message 33 of 54
(3,168 Views)

I didn't understand if Windows Kit has been installed during CVI installation by CVI installer itself or if it hasn't.

As I wrote, you can't manually download and install the Windows Kit from MS website and use it in CVI.

 

Does this help you?

 

 

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 34 of 54
(3,166 Views)

i'm reinstalling CVI, which of this i have to chose?

 

Cattura.PNG

Davide Vittorio G. - TLGB S.R.L.
Italian SW Developer
0 Kudos
Message 35 of 54
(3,160 Views)

The first one is enough.

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 36 of 54
(3,157 Views)

nothing to do, still have the same problem.

are there any .fp or .lib to include?

Davide Vittorio G. - TLGB S.R.L.
Italian SW Developer
0 Kudos
Message 37 of 54
(3,155 Views)

Now we're sure the Windows Kit is installed properly.

 

I don't know how you are familiar with the usage of Windows Kit, but (as a general rule) every time you include a given .h file from the SDK you must add the relevant .lib to the project.

The .h contains the declarations only (i.e. data types, function prototypes, ...) but the lib contains the definitions (i.e. implementation).

 

To use OPC UA you need WS2_32.lib

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
Message 38 of 54
(3,147 Views)

build succeded! Smiley Very Happy

if you have time can you explain how to know which .lib i have to include when using a certain library?

i have used this 

C:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3\um\x86\WS2_32.lib
Davide Vittorio G. - TLGB S.R.L.
Italian SW Developer
0 Kudos
Message 39 of 54
(3,144 Views)

Great!

I don't know if there is a quicker way but I do this:

  • When the linker gives me an error that function XXXXXXX() is not defined I search for the function name on https://docs.microsoft.com
  • in your case you had WSACleanup() not defined and you can find this page
  • At the bottom of the page you find Requirement section where you can see the Library item (which is ws2_32.lib)
  • Browse on your hard drive inside
    C:\Program Files (x86)\Windows Kits
    until you find the library. If you have more than one file, it depends on the architecure you're building for.

 

Please, open a different topic if you have other issues and/or questions

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
Message 40 of 54
(3,139 Views)