05-06-2007 08:37 AM
05-06-2007 11:27 AM
It looks to me that 'Min' and/or 'Max' are being defined as macros before extcode.h is parsed.
So in the main file or in the header files above extcode.h, is there a line that starts
#define Max(...
and/or
#define Min(...
?
05-06-2007 11:48 AM
05-07-2007 11:11 AM
05-09-2007 02:08 AM
05-09-2007 06:01 PM
05-10-2007 12:00 PM
05-12-2007 01:37 AM
I am attaching a modified version of Andy CVI project that may help solving your problems. On one hand I have saved UIR file under CVI 7 so you should be able to open it with your ide. On the other hand I have reworked a little the source code to eliminate some errors similar to those you are finding while compiling your code. I had some compiling errors on Min and Max functions previously defined and found that those functions are defined twice, once in toolbox.h and the second in extcode.h, but in the last file they are defined as _FUNCC which on windows systems defaults to _cdecl while in toolbox.h they are defined as CVIFUNC which defaults to _stdcall. May toolbox.h be included in your project either directly or referenced by some of your code? If so, you may see if it is really necessary and if so you could move that part of your code that uses the LV dll into another source file in which you #undef those macro before #including extcode.h.
I hope this may help you to solve your problems.
05-14-2007 08:47 AM
05-14-2007 08:58 AM
Unfortunately I'm not so fond on interfacing LV DLLs into CVI so I'm not able to help you anymore.
Just as a side note, Andy's code does not plays anything: it's LV code simply extract part of the wav file and creates a new file on disk with a subset of the original wav file. And it does not fire any 'Managed Debugging Assistant' error message on my machine! It is possible that you have installe some additional software I don't have on my pc.