dbTalk Databases Forums  

using compiled vifred screens in a C++ program

comp.databases.ingres comp.databases.ingres


Discuss using compiled vifred screens in a C++ program in the comp.databases.ingres forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
weaselboy1976@gmail.com
 
Posts: n/a

Default using compiled vifred screens in a C++ program - 03-30-2006 , 11:20 AM






Hello

I have a C++ program that uses embedded SQL and displays compiled
vifred screens.

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.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.