Article View: borland.public.cppbuilder.nativeapi
Article #8922Re: SetClassLong problems
From: Lynn Morrison
Date: Fri, 03 Sep 2004 20:29
Date: Fri, 03 Sep 2004 20:29
24 lines
1714 bytes
1714 bytes
Ooops, I just realized that the class is not in the static functions scope... so I adjusted it and am now getting casting problems... > SetClassLong(FWindowHandle,0,(long)*this); // this still gives me an error I changed this.... if((long) TempMSocketClassPointer != (long)&FWindowHandle) // E2031 Cannot cast from void * MSocket::* to long return DefWindowProc(Wnd,Msg,WParam,LParam); to this... MSocket &I = reinterpret_cast<MSocket>( GetWindowLong(Wnd,0)); if(I.MSocketWindowClass.lpszClassName != "MSocketWindowClass") return DefWindowProc(Wnd,Msg,WParam,LParam); but am getting the same errors.... even though I believe this would not work as there can be many MSockets, but I tried it. My head is spinning over this.... it should be so simple but its not.... ;) Thanks, Lynn
Technical Details
Message-ID:
<4138d42d@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!zen.net.uk!dedekind.zen.co.uk!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4138cc6a@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ce81aceba334526c X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Lynn Morrison" <Cranky@__whisp.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4138cc6a@newsgroups.borland.com> Subject: Re: SetClassLong problems Date: Fri, 3 Sep 2004 16:29:34 -0400 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300 NNTP-Posting-Host: 209.202.121.7 Message-ID: <4138d42d@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1094243373 209.202.121.7 (3 Sep 2004 13:29:33 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!zen.net.uk!dedekind.zen.co.uk!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail