🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.upgrade
Article #23

Re: mswsock.h & iosfwd prevent BCB6 project compiling using BCB 2007

#23
From: Johannes Weinert
Date: Sat, 29 Dec 2007 10:51
46 lines
2622 bytes
Hello,

I'm not sure if it helps. If I create a new VCL project and #include 
<winsock2.h> and <mswsock.h> and preprocess unit1.cpp the typedef 
expands to:

typedef
INT
(__stdcall  * LPFN_WSARECVMSG) (
  SOCKET s,
   LPWSAMSG lpMsg,
        LPDWORD lpdwNumberOfBytesRecvd,
  LPWSAOVERLAPPED lpOverlapped,
  LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine
);

But I don't see where PASCAL='__stdcall' and FAR='' is defined.

HTH

Hans

Tom Byars wrote:
> Remy, I searched all my own files for "#define pascal" and "#define far" 
> and found nothing. I then did the same for all files in the codegear 
> directory. The only matches I found set pascal as _pascal and far as 
> _far. So much for bcb 2007. Isn't OOP great. No need to reinvent the 
> wheel when you can spend 90% of your time trying to fix other peoples.
> 
> Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message 
> news:477551c2$1@newsgroups.borland.com...
>>
>> "Tom Byars" <tam118118@hotmail.com> wrote in message 
>> news:477546fd@newsgroups.borland.com...
>>
>>> Where would I find these redefinitions Remy?
>>
>> You will just have to search all of the header files that your project 
>> uses. That is why I suggest you output their actual values first to 
>> see if they have, in fact, been changed by the time mswsock.h is 
>> compiled.
>>
>>
>> Gambit
>>
>>
Technical Details
Message-ID: <477626c9@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4773c52b@newsgroups.borland.com> <4773ebc6@newsgroups.borland.com> <4774d59f$1@newsgroups.borland.com> <47753961@newsgroups.borland.com> <477546fd@newsgroups.borland.com> <477551c2$1@newsgroups.borland.com> <477577ea$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10529a,deb4629ff779f0b0
X-Google-Attributes: gid10529a,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sat, 29 Dec 2007 11:51:50 +0100
From: Johannes Weinert <jw_news@ddbst.de>
User-Agent: Thunderbird 2.0.0.9 (Windows/20071031)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.upgrade
Subject: Re: mswsock.h & iosfwd prevent BCB6 project compiling using BCB 2007
References: <4773c52b@newsgroups.borland.com> <4773ebc6@newsgroups.borland.com> <4774d59f$1@newsgroups.borland.com> <47753961@newsgroups.borland.com> <477546fd@newsgroups.borland.com> <477551c2$1@newsgroups.borland.com> <477577ea$1@newsgroups.borland.com>
In-Reply-To: <477577ea$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 87.182.140.106
Message-ID: <477626c9@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1198925513 87.182.140.106 (29 Dec 2007 02:51:53 -0700)
Lines: 46
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail