🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.multimedia
5 messages
5 total messages Started by Jaap Mon, 20 Jan 2003 16:02
VST in Borland
#776
Author: Jaap
Date: Mon, 20 Jan 2003 16:02
6 lines
1235 bytes
Does anyone know how i create a VST plugin whit borland c++ builder 5 ?

I've got the steinberg sdk, but the example programs are for microsoft 
visual c++.
I can't get the VST-plugin to work, when i create a empty dll-project, 
and include the files.
Re: VST in Borland
#777
Author: Doug Byfield
Date: Tue, 21 Jan 2003 17:00
12 lines
1383 bytes
Where did you get the steinberg sdk? Any url's?

I'm using Cubase SX and was thinking of trying some VST programming. Thanks.

"Jaap" <zSkunkz@phreaker.net> wrote in message
news:3E2C1D92.3080000@phreaker.net...
> Does anyone know how i create a VST plugin whit borland c++ builder 5 ?
>
> I've got the steinberg sdk, but the example programs are for microsoft
> visual c++.
> I can't get the VST-plugin to work, when i create a empty dll-project,
> and include the files.
Re: VST in Borland
#778
Author: Jaap
Date: Tue, 21 Jan 2003 17:37
18 lines
1583 bytes
Doug Byfield wrote:
> Where did you get the steinberg sdk? Any url's?
> 
> I'm using Cubase SX and was thinking of trying some VST programming. Thanks.
> 
> "Jaap" <zSkunkz@phreaker.net> wrote in message
> news:3E2C1D92.3080000@phreaker.net...
> 
>>Does anyone know how i create a VST plugin whit borland c++ builder 5 ?
>>
>>I've got the steinberg sdk, but the example programs are for microsoft
>>visual c++.
>>I can't get the VST-plugin to work, when i create a empty dll-project,
>>and include the files.
> 
> 
> 
> 
Re: VST in Borland
#779
Author: Doug Byfield
Date: Tue, 21 Jan 2003 18:38
9 lines
1337 bytes
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?
Re: VST in Borland
#842
Author: Jamie
Date: Fri, 07 Feb 2003 16:07
57 lines
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?
>
>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads