The problem I have is that the linkage of the UIR to the callbacks seems
schizophrenic. Sometimes I compile, and can LoadPanel(...) just great.
Othertimes, the LoadPanel(...) causes the run-time error -86 complaining
that a callback function is unknown. I have checked and double-checked that:
The right callback name is in both the UIR file, and the table generated
in UIRCallbackTable.c. The UIRCallbackTable.c file should be compiled with
C external linkage.
The header file holding the constants also is generated with the Callback
prototypes, but it has the standard #ifdef __cplusplus
extern "C" {
#endif ...
encapsulation of the prototypes.
Any clues on what gives?
Thanks,
Mark
Stephan
Mark Greenman <ma...@sdl.usu.edu> schrieb in im Newsbeitrag:
396c...@newsgroups.ni.com...
Yes, I have it installed, and have been trying to use it. However, (and
this may be related to the problems I am having), I have moved/put my callback
function definitions in several .cpp files. I want to be able to instantiate
and use C++ objects from within the callbacks. The LW generated header file
that contains the Panel and Control constant ID's also generates declarations
for the callback functions. The declarations in this file are enclosed in
a extern "C" { ... } body when C++ compilation is detected. I include this
header in the .cpp files where I actually define the callback functions.
Am I correct in understanding that the Wizard will:
1) generate callback function declarations
2) update the array __UICallbackSymbols and associated array length constant
__UICallbackSymbolCount
upon a UIR file update.
Does it do anything else?
Thanks for all the help,
Mark
thanks again for the help,
Mark