01-12-2011 06:04 PM
I wanna to call dll in labwindows /cvi 9.0 by just using the Loadlibrary because the dll file is provided by the hardware instrument company and there is no headfile and no the defnition of the functions .
the company provided a example about how to call the dll in vc++ and vb,
after I read the examples and I made a head file .h by myself and included the file in the project but it always says the fucntion has not been defined and I jus wonder all the examples on the website about calling dll in labwindows there is a .c file whicn defines the function ?
I don't know if I need to have the fucntions?very urgent and pls help me.
the program is like the following in the attachment:
one is the example provided by the company and one is the program I developed by myself.
01-13-2011 01:06 PM
Hi zxintian,
I think it would be quite difficult for you to create your own header file if you were only given the .dll from the other company. If you want to call into it you should probably make use of the LoadLibrary function call, as you mentioned in your post. You can read more about how to dynamically call your .dll here:
http://zone.ni.com/devzone/cda/tut/p/id/8503
Another thing to keep in mind for the future is that you need to have an #include statement at the top of your source code to reference the header file -- otherwise you will not be able to call any of the parameters or functions you defined in your header.
One last thing -- the referenced attachments didn't show up in your post. You might want to try posting them again!
Stephanie R
National Instruments