🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #1508

Re: Problem with the "Packet32.h" file.........

#1508
From: Darko Miletic
Date: Mon, 23 Jul 2007 12:59
32 lines
2296 bytes
Darko Miletic wrote:
> Dan wrote:
>> Hi all,
>>
>> I'm not sure if this is the right group for this question.
>>
>> I'm working with Builder 4.0, I had to take a project that was
>> compiled on Builder 6.0 and make it compile on Builder 4.0, after 
>> debuging work I got to conclusion that the problems start
>> with the include of the file "Packet32.h".
> 
> put #include <windows.h> before that header.

Now I have to rectify my response. I just saw that you said builder 4.0.
The thing is that builder 4 has older platform sdk that does not contain 
the latest version of base windows headers (in this case windef.h and 
basetsd.h). These new headers define UINT_PTR HALF_PTR etc.

All that is explained on this page:

Windows Data Types
http://msdn2.microsoft.com/En-US/library/aa383751.aspx

Take a look and manually add all definitions before including Packet32.h.

Something like this:

#ifndef UINT_PTR
  typedef unsigned int UINT_PTR;
#endif /*UINT_PTR*/

#include "Packet32.h"
Technical Details
Message-ID: <46a4a61c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!newsfeed0.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!85.12.40.130.MISMATCH!xlned.com!feeder1.xlned.com!npeer.de.kpn-eurorings.net!npeer0.kpn.DE!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <46a48849$1@newsgroups.borland.com> <46A49DF2.6000903@fibertel.com.ar>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e4addbdf6a8043ce
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Mon, 23 Jul 2007 09:59:09 -0300
From: Darko Miletic <kiklop@fibertel.com.ar>
Reply-To: Darko Miletic <kiklop@fibertel.com.ar>
User-Agent: Thunderbird 2.0.0.5 (Windows/20070716)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Problem with the "Packet32.h" file......... 
References: <46a48849$1@newsgroups.borland.com> <46A49DF2.6000903@fibertel.com.ar>
In-Reply-To: <46A49DF2.6000903@fibertel.com.ar>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Antivirus: avast! (VPS 000758-3, 22/07/2007), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 200.49.157.162
Message-ID: <46a4a61c@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1185195548 200.49.157.162 (23 Jul 2007 05:59:08 -0700)
Lines: 32
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!newsfeed0.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!85.12.40.130.MISMATCH!xlned.com!feeder1.xlned.com!npeer.de.kpn-eurorings.net!npeer0.kpn.DE!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail