LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

This operation is only valid in the context of an app container?

Solved!
Go to solution

Hey guys,

 

So I am trying to practice loading dlls from LabVIEW, and wanted to start from scratch.

I created a simple dll for addition with Visual Studio 2013 C++ but when I try to load it from LabVIEW, I get this error

 

Error.png

 

I did some searching and it sounds like the dll is built with a target that is meant for Windows App Store and not regular dll.

There wasn't much info available on google. Does anybody know anything about this?

0 Kudos
Message 1 of 3
(5,924 Views)
Solution
Accepted by topic author doradorachan

Hi Doradorachan,

 

From what I found on the web, that erorr is a pretty broad error on Windows. Have you found these resources for working with DLLs and LabVIEW?

 

Building a DLL with Visual C++:

http://www.ni.com/white-paper/3056/en/

 

How Do I Call a Dynamic Link Library (DLL) from LabVIEW?: 

http://digital.ni.com/public.nsf/allkb/DCB90714981A1F148625731E00797C33

 

Regards,

Jake H
Applications Engineer
0 Kudos
Message 2 of 3
(5,870 Views)

I forgot to mention that error went away when I realized I was selecting the wrong project type.

As most tutorials on dll creation suggest, you are supposed to select "win32 Project" and then select "dll" for application type.

 

Create Project.png

 

Since I am a noob at Visual Studio, I was selecting the project type that targets mobile phone as well.(Universal app) 

I hope this helps anybody who has the same problem

0 Kudos
Message 3 of 3
(5,804 Views)