🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internationalization
Article #294

E2235 when CreateThread

#294
From: Elena
Date: Mon, 13 Dec 2004 04:47
31 lines
1691 bytes
Hi All,

I get E2235 error when I CreateThread.

void __fastcall TftmFFT::btnAnaStartClick(TObject *Sender)
{
        DWORD dwThreadId = 1;
        hThread = CreateThread(NULL,
                0,
                (LPTHREAD_START_ROUTINE)CalcFFT,
                0,
                0,
                &dwThreadId);
}

DWORD TftmFFT::CalcFFT()
{

    this->Repaint();

    return 0;
}

I need to calculate and repaint my form in a independent thread. However, I 
get an E2235 error when I tried to create the thread. What shall I do?

Any help will be highly appreciated.

Sincerely,

Elena 
Technical Details
Message-ID: <41bd1ef4@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10297d,3f02d8f8a0d70031,start
X-Google-Attributes: gid10297d,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Elena" <yiyun@base.com>
From: "Elena" <yiyun@base.com>
Newsgroups: borland.public.cppbuilder.internationalization
Subject: E2235 when CreateThread
Date: Mon, 13 Dec 2004 13:47:06 +0900
Lines: 32
Organization: Base
MIME-Version: 1.0
Content-Type: text/plain;
 format=flowed;
 charset="iso-2022-jp";
 reply-type=original
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
NNTP-Posting-Host: 221.188.33.106
Message-ID: <41bd1ef4@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1102913268 221.188.33.106 (12 Dec 2004 20:47:48 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail