Article View: borland.public.cppbuilder.multimedia
Article #842Re: VST in Borland
From: Jamie
Date: Fri, 07 Feb 2003 16:07
Date: Fri, 07 Feb 2003 16:07
57 lines
2852 bytes
2852 bytes
The reason that your VST plugin does not work is because the 'main' function
is not exported correctly from your dll. From memory I remember you need
this line:
// prototype of the export function main
extern "C" __declspec(dllexport) AEffect* main(audioMasterCallback
audioMaster);
and you need to disable the generation of underscores. Therefore for the
unit in which your main resides you need to right-click on the unit in the
project manager and select, "Edit Local Options...", then you need to go to
the Advanced Compiler/Output/Generate Underscores and uncheck it.
Rebuild and then copy your dll to the VST plugin dir for your VST app and it
can now be used.
To check you are exporting correctly use tdump. For example exporting but
with an underscore looks like this:
Exports from VSTGainPluginProject.dll
2 exported name(s), 2 export addresse(s). Ordinal base is 1.
Sorted by Name:
RVA Ord. Hint Name
-------- ---- ---- ----
0000D0F8 2 0000 ___CPPdebugHook
000012F4 1 0001 _main
but without (as we need...)
Exports from VSTGainPluginProject.dll
2 exported name(s), 2 export addresse(s). Ordinal base is 1.
Sorted by Name:
RVA Ord. Hint Name
-------- ---- ---- ----
0000D0F8 2 0000 ___CPPdebugHook
000012F4 1 0001 main
HTHs.
Jamie
"Doug Byfield" <dougbyf_nospam@shaw.ca> wrote in message
news:3e2d93b6$1@newsgroups.borland.com...
> Thanks for the quick response. I looked before, but obviously not far
> enough! :-)
>
> "Jaap" <zSkunkz@phreaker.net> wrote in message
> news:3E2D8573.4040108@phreaker.net...
> >
http://www.steinberg.net/en/ps/support/3rdparty/vst_sdk/download/index.php
> >
> > Doug Byfield wrote:
> > > Where did you get the steinberg sdk? Any url's?
>
>
Technical Details
Message-ID:
<3e43d860@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3E2C1D92.3080000@phreaker.net> <3e2d7cce$1@newsgroups.borland.com> <3E2D8573.4040108@phreaker.net> <3e2d93b6$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d0fc,54db4ddf5f6b796f X-Google-Attributes: gid10d0fc,public X-Google-ArrivalTime: 2003-02-07 08:10:39 PST From: "Jamie" <Jamie@NO_JUNK_MAIL@glencorp.f9.co.uk> Newsgroups: borland.public.cppbuilder.multimedia References: <3E2C1D92.3080000@phreaker.net> <3e2d7cce$1@newsgroups.borland.com> <3E2D8573.4040108@phreaker.net> <3e2d93b6$1@newsgroups.borland.com> Subject: Re: VST in Borland Date: Fri, 7 Feb 2003 16:07:17 -0000 Lines: 59 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.35.91.170 Message-ID: <3e43d860@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1044633696 217.35.91.170 (7 Feb 2003 08:01:36 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail