🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: dll entry point

#5078
From: Pawel Tatera
Date: Tue, 08 Nov 2005 22:31
28 lines
1477 bytes
Hi

Try this inside your cpp file that will be compiled as dll

BOOL WINAPI DllEntryPoint(HINSTANCE, DWORD, LPVOID){
  return TRUE;
}
put any new functions here that will be inside your dll


Wou will also need something like this in another header file:

#define DLL_IMP __declspec(dllimport);
#define DLL_EXP __declspec(dllexport);

int DLL_EXP WINAPI YourFinction(int, char*, and_so_on);


PawelT


U�ytkownik "Boba" <Boba@somewhere.world> napisa� w wiadomo�ci
news:43712644$1@newsgroups.borland.com...
> Hey folks, how do i specify the entry point for my dll?
> Thanks.  Boba
>
>
>
Technical Details
Message-ID: <4371283c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <43712644$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ca4d130f24202b65,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII
From: "Pawel Tatera" <paweltatera@pa80.chodziez.sdi.tpnet.pl>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <43712644$1@newsgroups.borland.com>
Subject: Re: dll entry point
Date: Tue, 8 Nov 2005 23:31:44 +0100
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 217.97.16.80
Message-ID: <4371283c@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1131489340 217.97.16.80 (8 Nov 2005 14:35:40 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail