LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

crc.dll

Hi,
I had tried to develop a dll with crc code there at Visual C++ 6.0, I got a dll and tried to load at Labview 7.0, but this dosen't work out.
What I do wrong?
If someone know how to do it, please, send me a e-mail to nadja.bressan@fc.up.pt.
Thank you.
The source is attached.
Nadja.
0 Kudos
Message 1 of 7
(3,915 Views)

Hi,

When you try to load it in LabVIEW, you have an error message or you dll will not work ?

When you load this dll by a C++ application, have you the same problem ?

Regards,

 

Christophe S.
Account Manager East of France І Certified LabVIEW Associate Developer І National Instruments France

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


@clear wrote:
Hi,
I had tried to develop a dll with crc code there at Visual C++ 6.0, I got a dll and tried to load at Labview 7.0, but this dosen't work out.
What I do wrong?
If someone know how to do it, please, send me a e-mail to nadja.bressan@fc.up.pt.
Thank you.
The source is attached.
Nadja.


Lots of unknowns here.

1) What is the default calling convention you use in your project settings? Visual C uses cdecl here by default and you should make sure you set the Calling Convention in the Call Library Node to whatever you chose there.

2) How does the VI look you are trying to call this DLL function with? Basically your funtion seems to return an uInt16 and takes a pointer to a byte array or string and the length of the buffer this pointer is pointing at as an uInt32.

3) what sort of errors do you get? Crash, error message, nothing at all?

Rolf Kalbermatter

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 3 of 7
(3,890 Views)

Hi,

I just finish the dll and this works out!
Thank you , for your attention and time.

BG

Clear.

0 Kudos
Message 4 of 7
(3,876 Views)

Hi,

I just finish the dll and this works out!
Thank you , for your attention and time.

BG

Clear.

0 Kudos
Message 5 of 7
(3,876 Views)


@clear wrote:

Hi,

I just finish the dll and this works out!
Thank you , for your attention and time.


In that case and since you have started the thread it would be nice if you could do some sort of explanation what was the problem and how you solved it, for the reference of others trying to do similar things. Personally I feel it would be at least a nice gesture in giving back some of the effort other peoples have spent to give you possible solutions and insights.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 6 of 7
(3,869 Views)

Hi,

After somemany weeks working at the same project we crashed....so if you pay attention at the code you can see that miss a RETURN....a simple one! It's a simple thing that makes the code dosen't work.

I attached the code again.....and if there is any further help that you need, please feel free to contact me.

BG

Clear.

0 Kudos
Message 7 of 7
(3,850 Views)