Please consider registering

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
While compiling recived the error: Cpp file has already a Functionbody
August 5, 2016 - 9:23 pm
Member Since: August 5, 2016
Forum Posts: 4
sp_UserOfflineSmall Offline

Hi there

I'm completly new in plug-in programming.
The first project in the book "Desining Audio Effect Plug-Ins in C++", calles "Volume" i get an issue I'don't realy get.
It compiles the code generates it and then boom Cpp files already has a Functionbody ( translatet from german so maybe not 100 % accurate)

So I followed the instructions of the book and the code seems not to be a problem.

I use VB 2015 Community on Win 8.1 64 bit system.
The VB Cpp file is empty though there is a textfile which has code written in it.
I can open the Cpp textfile with VB but I get the same error while compiling

Any suggestions what I'm supposed to do?



August 12, 2016 - 4:24 am
Member Since: April 3, 2014
Forum Posts: 74
sp_UserOfflineSmall Offline

Hi D-p,

I can't really follow your description. Did you create the project with RackAFX or did you download a project from the website?
What do you mean by "Cpp textfile" and "VB Cpp" file?

Usually, RackAFX should start Visual Studio with the generated C++ project. This should just build fine.

You mention "VB" several times - what are you referring to? Did you install the correct Visual Studio version?


August 12, 2016 - 4:49 am
Member Since: August 5, 2016
Forum Posts: 4
sp_UserOfflineSmall Offline

Hi Tom

I solved the problem. VB is Visual Basic. RackAFX creates an .h and a .cpp file for each project. Normaly you write your code
into the "name of the project".cpp file. By accident I modified the .h file instead.

This could never work.
I opened the .cpp file with the texteditor by accident and Windows saved it that way. Because of that
VB didn't opened the .cpp file and I started the .h file manualy.

Now everything is running fine^^

Best regards

Forum Timezone: America/New_York

Most Users Ever Online: 152

Currently Online:
4 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Chaes: 51

Skyler: 48

Derek: 46

Frodson: 45

Peter: 43

TheSmile: 43

clau_ste: 39

jim: 34

JimmyM: 33

Gwen: 32

Member Stats:

Guest Posters: 1

Members: 696

Moderators: 1

Admins: 5

Forum Stats:

Groups: 13

Forums: 41

Topics: 757

Posts: 2894

Newest Members:

Jas, Rowan, sojourn, fabhenr, rg1, Niklas, Wutru, Tim Campbell, Danny Jonel, Valentin

Moderators: W Pirkle: 573

Administrators: Tom: 74, JD Young: 80, Will Pirkle: 0, W Pirkle: 573, VariableCook: 3