🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.migration
Article #54

Re: what is a PACKAGE macro in msvc++ ?

#54
From: Robert Ehteshamzadeh (Borland QA...
Date: Fri, 01 Oct 2004 22:02
48 lines
2488 bytes
CBuilder 6 has a utility to import old Visual Studio 6 projects
( there is no support for more recent versions like VS.net ).

The purpose of this is to read .dsp & .dsw projects and translate the 
Microsoft compiler and linker command line switches to equivalent 
Borland compiler and linker switches.  Aside from that, it assumes that 
any source files in the project conform to borland C++.

I put your code into a small C++ project in BCB6 and it compiled without 
error.

As far as borland C++ is concerned, PACKAGE is just another macro, so 
you'd need to check on microsoft groups to see if it has special meaning 
in Visual Studio.

JohnHammon wrote:
> In converting a small .lib / .h set written in msvc++, Borland keeps 
> erroring on these sets of PACKAGE () . Can someone please tell me wht these 
> are, and what their equivilent is in borland? Thank you very much.
> 
> Example code:
> 
> #ifndef PACKAGE
> #define PACKAGE(x)
> #define ENDPACKAGE(x)
> #endif
> 
> PACKAGE(ImmutableTypes);
> 
> #ifndef _TXTYPES_
> // Our types follow
> typedef unsigned char byte;
> #if defined(_MSC_VER)
> typedef __int64 llong;
> typedef unsigned __int64 ullong;
> #else
> typedef long long llong;
> typedef unsigned long long ullong;
> #endif
> typedef unsigned int uint;
> typedef unsigned long ulong;
> typedef unsigned char uchar;
> typedef unsigned short ushort;
> #endif
> 
> ENDPACKAGE(ImmutableTypes); 
> 
> 
Technical Details
Message-ID: <415dd3f7$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!peernews-us.colt.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41587d9b$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 110f51,91e2df4a5ee254fd
X-Google-Attributes: gid110f51,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 01 Oct 2004 15:02:39 -0700
From: "Robert Ehteshamzadeh (Borland QA)" <rehteshamzadeh.removeme@borland.com>
User-Agent: Mozilla Thunderbird 0.5a (20040105)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.migration
Subject: Re: what is a PACKAGE macro in msvc++ ?
References: <41587d9b$1@newsgroups.borland.com>
In-Reply-To: <41587d9b$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 10.143.14.60
Message-ID: <415dd3f7$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1096668151 10.143.14.60 (1 Oct 2004 15:02:31 -0700)
Lines: 48
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!peernews-us.colt.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail