My question will probably show that I am very ignorant of DLL's but here goes. I have been playing with the simple.cws program supplied with CVI 8.0 (.../samples/dll/simple.cvi/simple.cws). The two provide functions (MyDLLStdcallFunction and MyDLLCdeclFunction) seem to have the same functionality (print the argument string received from the aplication in the DLL and return a integer vaiue to the apllciation). Both seem obtain an argument from the application allthough they are defined as "DLLEXPORT" in the function declaration (are there equivalent "DLLIMPORT" functions ?). I obviously looked at the help function in CVI but this did not really help me.
Now my questions, how do I pass differnt arguments (doubles, pointers, even structures perhaps) to and from a DLL. I attempted to change (LPSTR buffer) to (double doublevariable) but this does not work. The supplied functions seem to only allow a string to be passed from the application to the DLL and not the other way around. Any suggestions to modify this project so that I can send different data types to and from the application to DLL will be appreciated.
Regards
Erik Wegman
(South Africa)