Using proprietary object libraries with C++ in a windows environment

R

Rocky

I'm am attempting to make use of some functions in a 16-bit
proprietary object library, with a 32-bit C++ program. When I link the
proprietary object with my object code I get an error message along
the line 'unsupported 16 bit segment(s) in module, with the module
name'. I what I am trying to do impossible or have I got something
missing from my code. I should point out that this is my first attempt
at a full-blown C++ program.
Thanks.
 
T

Tim Slattery

I'm am attempting to make use of some functions in a 16-bit
proprietary object library, with a 32-bit C++ program. When I link the
proprietary object with my object code I get an error message along
the line 'unsupported 16 bit segment(s) in module, with the module
name'. I what I am trying to do impossible or have I got something
missing from my code. I should point out that this is my first attempt
at a full-blown C++ program.

It's not really a C++ issue, but you cannot simply jump from 32-bit to
16-bit code. You must switch the processor into 16-bit mode (called
"thunking"), then switch back to 32-bit mode to return to the caller.
This is not a simple thing to do. It's also well outside the scope of
this group.
 
T

Thomas Matthews

Rocky said:
I'm am attempting to make use of some functions in a 16-bit
proprietary object library, with a 32-bit C++ program. When I link the
proprietary object with my object code I get an error message along
the line 'unsupported 16 bit segment(s) in module, with the module
name'. I what I am trying to do impossible or have I got something
missing from my code. I should point out that this is my first attempt
at a full-blown C++ program.
Thanks.

Libraries are a platform or compiler specific issue and best
discussed in a newsgroup about your compiler or platform.

Reading the FAQ and welcome.txt (see signature) first before
posting is always a good idea.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,191
Latest member
BuyKetoBeez

Latest Threads

Top