🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #1809

Re: WSADATA and BCB4 Windows app

#1809
From: Remy Lebeau (TeamB)
Date: Mon, 30 Oct 2006 18:10
37 lines
2239 bytes
<DeKayA@bellsouth.net> wrote in message
news:4546ff52.90268529@forums.borland.com...

> Why was it not required in the console app?

You probably included something else that then implicitally included
winsock.h for you.

> Did this somehow load it?

No.

> Where is the default destructor?

There is no such thing as a 'default' destructor, because a destructor
cannot be overloaded.  Now, if you are asking why TForm classes do not have
a destructor defined in the header file by default, it is becuse they don't
need one by default.  There is nothing in the default code of the class that
needs explicit destroying in your code, so the compiler-generated destructor
will suffice.  If you need to destroy something yourself, then you have to
add a destructor to your code as needed.

> When I add this is says it has already been defined.

You probably did not define the destructor in your header file:

    public:
        __fastcall TForm1(TComponent *Owner);
        __fastcall ~TForm1(); // <-- add this manually

> Is it onclose()?

No.  That is an event that has nothing to do with the destructor.


Gambit
Technical Details
Message-ID: <45464085$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!198.186.190.250.MISMATCH!transit3.readnews.com!news-out.readnews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <45467532.54908193@forums.borland.com> <45457d21$1@newsgroups.borland.com> <4546ff52.90268529@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,de49e8cdd75df900
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <45467532.54908193@forums.borland.com> <45457d21$1@newsgroups.borland.com> <4546ff52.90268529@forums.borland.com>
Subject: Re: WSADATA and BCB4 Windows app
Date: Mon, 30 Oct 2006 10:10:37 -0800
Lines: 39
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 69.169.4.232
Message-ID: <45464085$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1162231941 69.169.4.232 (30 Oct 2006 10:12:21 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!198.186.190.250.MISMATCH!transit3.readnews.com!news-out.readnews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail