Article View: borland.public.cppbuilder.nativeapi
Article #10540Re: Multithread calls one DLL function
From: Oliver Young
Date: Fri, 02 Apr 2004 10:58
Date: Fri, 02 Apr 2004 10:58
13 lines
1477 bytes
1477 bytes
> It depends on the function. The fact that the function is in a DLL doesn't
> make any difference.
Thank you. Does that means I can call peace of code shown below from any
thread without problems (if DLL is multithread safe)?
HINSTANCE MyAppDLL = LoadLibrary("MyApp");
int (*fnMyFunc)(void);
fnMyFunc=(int (*)(void)) GetProcAddress(MyAppDLL,"SomeFunc");
int result = fnMyFunc();
There will be no colision between DLLs/Functions in different threads? I'm
talking about fnMyFunc & MyAppDLL variables.
Technical Details
Message-ID:
<406d474e$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<406d3f8d@newsgroups.borland.com> <ygl4whupfvci$.164yempotbso8$.dlg@40tude.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,9fd9d633795f816c X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-04-02 03:09:34 PST From: "Oliver Young" <none> Newsgroups: borland.public.cppbuilder.nativeapi References: <406d3f8d@newsgroups.borland.com> <ygl4whupfvci$.164yempotbso8$.dlg@40tude.net> Subject: Re: Multithread calls one DLL function Date: Fri, 2 Apr 2004 12:58:24 +0200 Lines: 15 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: 193.138.1.206 Message-ID: <406d474e$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1080903502 193.138.1.206 (2 Apr 2004 02:58:22 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail