473,398 Members | 2,212 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

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

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.
Jul 22 '05 #1
2 2027
"Rocky" <ro*******@aol.com> wrote
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.


This is a generic problem of library L1 built with compiler C1 and you need
to use it with program P2 built with compiler C2. Without additional
information as to what C1 and C2 are (and I don't want to know because it
would be even more off-topic than this is), one solution would be to write a
server of some kind built with C1 and a wrapper library, L2, that calls the
services of the new server and build that with C2. You can then link P2
against L2 and have access to the services of L1. How to do this efficiently
depends on your platform and your level of expertise.

Claudio Puviani
Jul 22 '05 #2
"Rocky" <ro*******@aol.com> wrote
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.


This is a generic problem of library L1 built with compiler C1 and you need
to use it with program P2 built with compiler C2. Without additional
information as to what C1 and C2 are (and I don't want to know because it
would be even more off-topic than this is), one solution would be to write a
server of some kind built with C1 and a wrapper library, L2, that calls the
services of the new server and build that with C2. You can then link P2
against L2 and have access to the services of L1. How to do this efficiently
depends on your platform and your level of expertise.

Claudio Puviani
Jul 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Santa | last post by:
I am using Fritz Onion's "Asynchronous Pages" approach as mentioned in the article http://msdn.microsoft.com/msdnmag/issues/03/06/Threading/default.aspx to increase the performance of my ASPX...
4
by: Rocky | last post by:
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...
13
by: Stumped and Confused | last post by:
Hello, I really, really, need some help here - I've spent hours trying to find a solution. In a nutshell, I'm trying to have a user input a value in form's textfield. The value should then be...
121
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
22
by: Matt | last post by:
Some people identify Microsoft C# is Proprietary programming language. What is Proprietary programming language then? How does it differ from other languages such as C++, or Java?? Please...
2
by: Yang Pang | last post by:
I have a project where the GUI is in VB.NET, the libraries in unmanaged C++ which is wrapped in managed C++ and compiled as DLL. The application runs fine on Windows 2000 with VC++ development...
6
by: vaishnavnitin | last post by:
Hello Al I am re-designing 16-bit application of other party. but currently i don't have VC++ 1.52 I want to compile or debug the original 16-bit application Thank you.
8
by: Christopher Kurtis Koeber | last post by:
Dear All, Recently I created a thread about trying to load a particular ICON image that GDI plus could not load. I realized that GDI plus definitely does not support it because it had a certain...
3
by: gmax2006 | last post by:
Hi, I am using RedHat Linux 4. and I developed an oracle 10g based application by using cx_Oracle (cx_Oracle-4.1-10g-py23-1.i386.rpm) and Python 2.3.4. When I run the application through...
83
by: liketofindoutwhy | last post by:
I am learning more and more Prototype and Script.aculo.us and got the Bungee book... and wonder if I should get some books on jQuery (jQuery in Action, and Learning jQuery) and start learning about...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.