LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

getting .vis from .dll ????

Hallo,
 
 Is it possible to get the .vis or .llb from a .DLL.. My main aim lies to determine the Prototype settings that are used during dll creation.
 
 Any reference/link/ is greatly appreciated..
 
Thanks,
Abhi
 
0 Kudos
Message 1 of 11
(4,461 Views)

Hey Leo,

No, it's not possible. Try to get a documentation from the provider of the dll.

BR, Christian

0 Kudos
Message 2 of 11
(4,445 Views)
Hi,

If I understood you correctly, you want to see the function prototypes of your LV DLL.

When you create a DLL with LV, the application builder also makes a header file in
the same directory with your DLL. From this header, you can see the prototypes.

Hopefully this helps.
0 Kudos
Message 3 of 11
(4,444 Views)
Yes Kaeam, you are right, It served my purpose.
 
Thanks ,Smiley Happy
 
Cheers,
Abhi
 
0 Kudos
Message 4 of 11
(4,426 Views)
If it is a LV-built Dll, maybe you can try out changiing the file extension as .llb & then open it to see all the VIs required to build that Dll. This is a similar procedure as that of viewing the internal contents of an LV-built EXE. But I think, you wont get to see the code, as the diagram would have been removed.
 
Try it out n post Ur feedback here.
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 5 of 11
(4,423 Views)

Happy to see that Ur problem got solved. But the header file will get created only when the Dll is built for C Calling conventions, I think...

Anybody please correct me if I m wrong.

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 6 of 11
(4,422 Views)

So it seems that yourself is the provider Smiley Wink

The possibility to get the llb or vis out of an exe or dll changed since LV8.x. Befor it wos possible if you simply change the extension to .llb. Since 8.x you have to enable VIServer for the project to access them. And yes, you only have an .h file for C dlls.

BR, Christian

0 Kudos
Message 7 of 11
(4,414 Views)
Works for standard calling convention also.

The function prototypes in headers looks something like this

uint8_t __stdcall function(...);

long __cdecl LVDLLStatus(...);


So, you can see the calling convention from here also. The LVDLLStatus function is automatically
generated and is good for debugging. See the LV help for info on this.



Message Edited by kaêm on 11-23-2007 01:00 PM

Message Edited by kaêm on 11-23-2007 01:00 PM
0 Kudos
Message 8 of 11
(4,413 Views)

Hi Christian & Kaem,

Thank you guys for your info.

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 9 of 11
(4,405 Views)
Hi all,
 
  I believe Kaeam is absolutely right, the .h files are created for both C calling and standard calling functions..
 
Partha, as you said, to change the extensions, sorry Smiley Sad but dóes nt work as Christian said,
 
Thanks,
Abhi
 
0 Kudos
Message 10 of 11
(4,401 Views)