Article View: borland.public.cppbuilder.internet.web
Article #622Re: Problems with simple Apache module dll
From: Matt Lowe
Date: Tue, 23 May 2006 17:35
Date: Tue, 23 May 2006 17:35
26 lines
1622 bytes
1622 bytes
>> But is there a way to get builder to stop decorating the symbol name with
>> the underscore?
>
> Yes, use the __stdcall calling convention for your exported function. By
> default the __cdecl convention is used.
hello_module isn't a function, it's a struct. Anyhow, I tried setting
__stdcall, but it doesn't seem to work:
module __stdcall __declspec(dllexport) hello_module =
{
STANDARD20_MODULE_STUFF,
NULL,
NULL,
NULL,
NULL,
NULL,
hello_hooks
};
Setting stdcall in project options doesn't work either. Might there be a
conflict with __declspec?
Thanks,
Matt
Technical Details
Message-ID:
<447347e0$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<446de17a$1@newsgroups.borland.com> <446dedc8$1@newsgroups.borland.com> <446e1702$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,bbf30dcf8482d832 X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Matt Lowe" <dontspammatt@milsoft.com> Newsgroups: borland.public.cppbuilder.internet.web References: <446de17a$1@newsgroups.borland.com> <446dedc8$1@newsgroups.borland.com> <446e1702$1@newsgroups.borland.com> Subject: Re: Problems with simple Apache module dll Date: Tue, 23 May 2006 12:35:26 -0500 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 69.39.34.98 Message-ID: <447347e0$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1148405728 69.39.34.98 (23 May 2006 10:35:28 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail