Avatar

Please consider registering
guest

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
Subclassing objects in Visual Studio
Avatar
W Pirkle
Admin
February 24, 2017 - 1:00 pm
Member Since: January 28, 2017
Forum Posts: 361
sp_UserOfflineSmall Offline

The pluginconstants.h and pluginobjects.cpp files contain many helper functions and some useful C++ objects too: CBiQuad, CWaveData, CEnvelopeDetector, etc... Because these files are periodically updated with new versions of RackAFX, you should never alter the objects contained in them. If you need to modify these objects, subclass them instead. This is really easy in Visual Studio. To subclass CBiQuad, for example:

1) in the Solution Explorer, right click on the project and choose Add -> Class

2) from the dialog, select Visual C++ -> C++ Class

3) name your derived class, and type in the Base Class name (CBiQuad here); if you plan on subclassing this object, you probably want to make your destructor virtual:

Image Enlarger

4) this will create the .h and .cpp files for you, and will #include the proper base class; you only need to add your modifications/variables/functions to complete the subclass.

- Will

Forum Timezone: America/New_York

Most Users Ever Online: 85

Currently Online:
7 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Skyler: 48

Derek: 46

Frodson: 45

TheSmile: 43

Peter: 41

clau_ste: 39

JimmyM: 33

Gwen: 32

EZB: 24

lppier: 23

Member Stats:

Guest Posters: 1

Members: 579

Moderators: 1

Admins: 4

Forum Stats:

Groups: 12

Forums: 36

Topics: 595

Posts: 2375

Newest Members:

haslo, tomr, Noah, Dave, acv, Vasil992, Vasil92, dowsed, Simple, Chris_1

Moderators: W Pirkle: 361

Administrators: Tom: 73, JD Young: 80, Will Pirkle: 0, W Pirkle: 361