LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

DLL creation not working but exe is OK

I'm trying to program a DLL which relies on another DLL....

 

As a program (with main() and all) my functions work fne but I'm getting a  lot of errors....

 

Does anybody have another tutorial on creating a DLL in CVI which in turn calls other DLLs?

 

Shane.

0 Kudos
Message 1 of 11
(4,562 Views)

Can you explain further what you mean by "my functions work fine" and "getting lots of errors"

 

You can see this document for the additional help you requested. 

S. Eren BALCI
IMESTEK
0 Kudos
Message 2 of 11
(4,561 Views)

Your link doesn't seem to be working.

 

I'm getting undefined Symbol errors.

 

Shane.

0 Kudos
Message 3 of 11
(4,556 Views)

I'm a total CVI noob, so I didn't know where the problem is coming from...

 

I was including the wrong *.lib in my project.  I have some provided by the source which weren't working but after creating my own for the DLL it works.

 

Cheers

 

Shane.

0 Kudos
Message 4 of 11
(4,528 Views)

Typically undefined Symbols are a result of missing functions.

 

I'd be curious at how you could build an exe but not a dll.  😉

 

Did you try it with the correct library?

 

I've been dealing with a similar issue where I was given the wrong libraries.  Actually, the story is too long to fully describe.  I ended up writing my own functions to replace the missing ones..  LOL!!  So much for code re-use!!  😄

 

(are you also turning to the Dark-Side?)

Message Edited by Ray.R on 09-24-2009 11:07 AM
0 Kudos
Message 5 of 11
(4,522 Views)

Ray,

 

I did the usual "n00b panic" (TM) when it wasn't working and changed loads of things.  One of them was obviously the included lib.  After realising that my exe was no longer working either, I followed the crumbs back to sanity.

 

It's OK now, I'm on my way fnally.

 

-phew-

 

Dark side?  I'm working on a toolkit for LV.  Followng up on my USB Nuggets.

 

Shane.

0 Kudos
Message 6 of 11
(4,519 Views)

Cool..

 

I wanna start my USB project soon..  

 

It's a USB remote for my multimedia machine.

0 Kudos
Message 7 of 11
(4,511 Views)

(off topic...)

 

dark side ? where did you see a dark side ? you labview zealots are the dark side !

come on, let the force embrace your soul, join the C empire.

feel the power of a real programming language, free yourself from the tyranny of the wire...

0 Kudos
Message 8 of 11
(4,499 Views)

Dark side? NO.  I'm somewhere in between.

 

Just like Rincewind* where he wins a coin-toss by choosing not heads not tails but Edge.

 

I'm on the edge.  Perhaps in more ways than one.....   :smileytongue:

 

Shane.

 

I'm not going to explain, I'm sure plenty of others will get the reference.

0 Kudos
Message 9 of 11
(4,491 Views)

LOL!!

 

I'm with Shane on this one..  LOL!!

 

I very much like LabVIEW..  But I must admit (and I hope Ben does not find this post) that C/C++ (VxWorks, CVI, etc) are also fun.  Writing Makefiles is not necessarily my favorite part, but I'm getting better at it.  🙂

 

I remember the edge coin.  I don't recall much more of it, but it was fun to see that it fell and stayed on the edge.  Good metaphore.

 

Oh and the reference to the dark side is obviously from the LabVIEW forum.  LOL!

0 Kudos
Message 10 of 11
(4,471 Views)