Article View: borland.public.cppbuilder.upgrade
Article #24Re: mswsock.h & iosfwd prevent BCB6 project compiling using BCB 2007
From: Tom Byars
Date: Sat, 29 Dec 2007 11:52
Date: Sat, 29 Dec 2007 11:52
68 lines
3550 bytes
3550 bytes
Hans, thanks for that. I've only just realised what 'Preprocess' means. The relevant part of the preprocessed file is as follows typedef (int((__stdcall * LPFN_WSARECVMSG)+((__stdcall * LPFN_WSARECVMSG)<0 ? -1 : 1)*0.5))) ( SOCKET s, LPWSAMSG lpMsg, LPDWORD lpdwNumberOfBytesRecvd, LPWSAOVERLAPPED lpOverlapped, LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine ); which looks a bit of a mess. All this is a bit over my head but, at a guess, would I be right in saying there are maybe files missing from a header. When I try to build the package I'm initially told "Unable to find package import: dss.bpi" and "Unable to find package import: ibsmp.bpi" (I clicked 'Cancel' in respone to both). Is it something to do with that? "Johannes Weinert" <jw_news@ddbst.de> wrote in message news:477626c9@newsgroups.borland.com... > 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:
<47763514@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<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> <477626c9@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 From: "Tom Byars" <tam118118@hotmail.com> Newsgroups: borland.public.cppbuilder.upgrade 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> <477626c9@newsgroups.borland.com> Subject: Re: mswsock.h & iosfwd prevent BCB6 project compiling using BCB 2007 Date: Sat, 29 Dec 2007 11:52:53 -0000 Lines: 3 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 12.0.1606 X-MimeOLE: Produced By Microsoft MimeOLE V12.0.1606 NNTP-Posting-Host: 90.195.48.202 Message-ID: <47763514@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1198929172 90.195.48.202 (29 Dec 2007 03:52:52 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail