using compiled vifred screens in a C++ program - 03-30-2006 , 11:20 AM
I have a C++ program that uses embedded SQL and displays compiled
After upgrades to my compiler (both CC and g++), the program no longer
works. It can't display the vifred screen. I get a segmentation fault
when the exec frs addform / IIaddform() line attempts to execute. I'm
certain that the problem is with my form variable.
I used to have the form variable declared globally as "extern int
myForm". That worked. Now to satisfy newer versions of Solaris and
g++ I have the variable declared globally as "extern int *myForm".
Then, before calling addform, I assign the variable to a temp variable
that is of type void*. This is because the prototype of IIaddform has
the parameter as void*, and I get mismatch compiler errors if I don't
pass it a void*.
Any idea what I'm doing wrong? Should the variable to declared
differently? Thank in advance.