LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dynamic dll

Hi all,

I'm sorry if my post isn't in the good topic but I'm new on this forum and i think i'm in the best section for my request.
I need some help on my application because there is one thing that I'm sure it's possible to do with Labview but I didn't find it.

The problem is that, my program use a DLL (activeX) which is generated "dynamically". So, each time I impove my DLL and I put it in my application, Labview failed in finding the "method" of my DLL (error 3008).
Currently, to solve the problem, the only solution that I found was to delete the property node and replace it (without changing anything). The problem with this solution is that I have to do this with all my property node and it's too contraignant because the DLL improve too often.

Is there a way to correct my problem more simply? I'm not sure to be clear in my explaination (my english isn't as good as I would like) so If you have any question to understand my problem ask me.

Regards,

Thomas

0 Kudos
Message 1 of 6
(2,925 Views)

I'm not sure, but I believe the reason this is happening is that the class ID of the ActiveX DLL is changing whenever you update the DLL. You should check to see if the compiler you are using has an option to keep "binary compatibility" with previous versions of the DLL. Of course, I may be way out in left field on this one.

0 Kudos
Message 2 of 6
(2,909 Views)

Hello and thank you for your answer.

 

Sadly, After checking it appears that the metod used for generating our dll is not compatible with the solution you gave.

Do you have another way to look for?

 

Regards

 

Thomas

0 Kudos
Message 3 of 6
(2,876 Views)

Hi Thomasvd,

 

Can you give me more details to work on it, like:

Which Labview version do you have?

- What kind of ActiveX do you use? which nodes...?

- Do you have the same behavior without using DLL? If you use just the ActiveX the issue still the same?


Could you send me a print screen of the exact error message that you are observing.

 

For now I found a similar error for Excel ActiveX in our website:

Error 3008 when using Excel and the LabVIEW Report Generation Toolkit

http://digital.ni.com/public.nsf/allkb/B84DD34D7354FD0786256DC80043BA38?OpenDocument

 

Regards,

0 Kudos
Message 4 of 6
(2,868 Views)

Hi remi,

 

I work with Labview 8.6 but I try with evaluation version 10 and the problem is the same.

 

The activeX I'm using is a control with the server validated (I don't really know if it's correst. Enclosure a jpeg with the type of insertion I used.

 

I don't know how I can do to run my project without dll, Could you suggest me?

 

I join also a print screen of the error and one of the vi concerned by the default.

 

Many thanks

Download All
0 Kudos
Message 5 of 6
(2,861 Views)

Hi thomasvd,

 

In your screenshot, i am not able to identify the dll call.

Is your activeX integrated into a dll? If yes, which language do you use (C, VB...)?

 

It's seems that you use the ActiveX server without calling dll. In fact i can't understand the fact of improving your DLL dynamically.

Improving your DLL means: Changing the Dll in C or VB or other language, then save to the specified DLL path?

 

You can find more details to use a dll from Labview in our website:

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

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

 

Calling a LabVIEW DLL from within LabVIEW.

http://digital.ni.com/public.nsf/allkb/C986BE380663EB578625693C0051B771?OpenDocument

 

Can you send me a simple example that can reproduce the problem (dll + VIs)? 

 

Regards,

0 Kudos
Message 6 of 6
(2,826 Views)