🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Using Delphi Dll in BCB application

#13575
From: Remy Lebeau (TeamB)
Date: Sun, 05 Oct 2003 03:07
23 lines
1883 bytes
"Seabass" <sbsoftea@ww-ei.nl> wrote in message
news:3f7f4929$1@newsgroups.borland.com...

> Tempuser = new TUser();
> Tempuser->pChat = &TUser::SendChat;
> Tempuser->pData =  &TUser::SendData;
> Tempuser->pdisconnect = &TUser::Disconnect;
> Tempuser->pkick = &TUser::Kick;
> Tempuser->pPass  = &TUser::ChangePass;
> Tempuser->pPM  = &TUser::SendPM;

That code makes no sense whatsoever.  You're having a structure instance
assign its own pointers back to itself.  Why are you doing it that way to
begin with?  That is a very awkward design, not to mention introduces a big
problem - when you call the functions of the structure, they use their own
pointers to call back into themselves, which is going to cause endless
recursion until your stack blows up.

What EXACTLY are you trying to accomplish with this code in general?


Gambit
Technical Details
Message-ID: <3f7f8a88$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f7f2049@newsgroups.borland.com> <3f7f3ed0$1@newsgroups.borland.com> <3f7f4929$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,c7642e4ad15381e3
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-04 20:09:06 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f7f2049@newsgroups.borland.com> <3f7f3ed0$1@newsgroups.borland.com> <3f7f4929$1@newsgroups.borland.com>
Subject: Re: Using Delphi Dll in BCB application
Date: Sat, 4 Oct 2003 20:07:21 -0700
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 67.22.137.75
Message-ID: <3f7f8a88$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1065323144 67.22.137.75 (4 Oct 2003 20:05:44 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail