Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: annebPosted on 2009-09-20 at 14:47:55ID: 25379127
skey is of type DBT. DBT apparently has a member 'data'. The example does not include a declaration of DBT, so the data type of member "data" is not clear. edata is of undeclared type "Comparex" and has a member "val1". According to the question val1 is of type long.
Looking at the error message it is seems that:
- data is a pointer to some data type (char* (?), long* (?))
- val1 is of type integer
You should normally not assign a pointer to some data to an integer value.
if data is of type long* you should rewrite the line to:
*(skey->data) = edata1->val1;