Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old January 12th, 2006, 02:35 AM
kaizen
Guest
 
Posts: n/a
Default Compiler question

Hi,

we have the C/C++ code compiled in 16-bit compiler under DOS. assume it
as library.

This library should be used to write code in VC++ and should be
compiled in 32-bit compiler under windows.

Now the problem is when i try to compile the newly wrote VC++ code
linking with library (written in C/C++ code and compiled in 16-bit DOS
compiler) it is throwing error message.

Is it possible to use this library? Any workaround? Your help is
appreciated.

Thanks,
Kaizen

  #2  
Old January 12th, 2006, 03:45 AM
red floyd
Guest
 
Posts: n/a
Default Re: Compiler question

kaizen wrote:[color=blue]
> Hi,
>
> we have the C/C++ code compiled in 16-bit compiler under DOS. assume it
> as library.
>
> This library should be used to write code in VC++ and should be
> compiled in 32-bit compiler under windows.
>
> Now the problem is when i try to compile the newly wrote VC++ code
> linking with library (written in C/C++ code and compiled in 16-bit DOS
> compiler) it is throwing error message.
>
> Is it possible to use this library? Any workaround? Your help is
> appreciated.
>
> Thanks,
> Kaizen
>[/color]

Wrong group. Try microsoft.public.vc.language.
  #3  
Old January 12th, 2006, 04:45 AM
ketan
Guest
 
Posts: n/a
Default Re: Compiler question

On new VC++ no straight way to do.
And as suggested post on correct grp.

ketan

  #4  
Old January 12th, 2006, 08:55 AM
Walter Bright
Guest
 
Posts: n/a
Default Re: Compiler question


"kaizen" <ksnalni@gmail.com> wrote in message
news:1137032351.095804.112700@g43g2000cwa.googlegr oups.com...[color=blue]
> we have the C/C++ code compiled in 16-bit compiler under DOS. assume it
> as library.
>
> This library should be used to write code in VC++ and should be
> compiled in 32-bit compiler under windows.
>
> Now the problem is when i try to compile the newly wrote VC++ code
> linking with library (written in C/C++ code and compiled in 16-bit DOS
> compiler) it is throwing error message.
>
> Is it possible to use this library?[/color]

No. You cannot use 16 bit binaries with 32 bit code.
[color=blue]
> Any workaround? Your help is appreciated.[/color]

You need to obtain the source to the 16 bit binary code and recompile it for
32 bits. Even then, it probably will need considerable porting work, as
Win32 is very different from DOS programming.

Walter Bright
www.digitalmars.com C, C++, D programming language compilers


 

Bookmarks

Thread Tools

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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles