Article View: borland.public.cppbuilder.nativeapi
Article #773CreateThread problem
From: Christophe MINETTI
Date: Wed, 09 Jan 2008 08:58
Date: Wed, 09 Jan 2008 08:58
26 lines
1549 bytes
1549 bytes
Hi all, I have few problems with the CreateThread function. I am using a frame grabber; to acquire an image I have to create a thread with the function CreateThread. Here is my code : threads_hdls[0] = CreateThread(NULL,0,GrabWithoutCallback, &user_card[0], 0,NULL) ; with the function : DWORD WINAPI TFrameGrabber::GrabWithoutCallback(LPVOID _param) When compiling, I have the following error messages : Cannot convert unsigned long(stdcall*(_closure)(void*))(void *) to unsigned long (__stdcall*)(void*) Type mismatch in lpStartAdress in call to __stdcall CreateThread(_Security_Attributes....) I don't see where is the problem as the function GrabWithoutCallBack is defined as requested by CreateThread .... Many thanks in advance. Christophe
Technical Details
Message-ID:
<47848CA9.AC261F91@ulb.ac.be>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,dc5cc6b1277263b6,start X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Message-ID: <47848CA9.AC261F91@ulb.ac.be> Date: Wed, 09 Jan 2008 09:58:17 +0100 From: Christophe MINETTI <cminetti@ulb.ac.be> X-Mailer: Mozilla 4.74 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: CreateThread problem Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 164.15.88.32 X-Trace: newsgroups.borland.com 1199868944 164.15.88.32 (9 Jan 2008 00:55:44 -0700) Lines: 27 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail