Hi, Newby needs help with Error with Class / object

Hi Guys, I’m Ron Music, Greetings! Completely new to JUCE and its forum!

Using Visual Basic 2019 as my code editor and compiler and cannot even create my first object successfully without recieving an error.

I think this has something to do with the include statement &I am stuck!

Any experieinced coders here kind enough to help me?

Musical regards

Ron Music

Prepend with namespace: juce::ScopedPointer?

Note that ScopedPointer is deprecated (in favor of std::unique_ptr).

Hi Ron,

I think we were in contact via E-Mail before… glad to see you here :slight_smile:

As @nicolasdanet already pointed out, ScopedPointer has been deprecated for quite a while now, so it seems like you read some example code from a quite outdated learning resource. Did you check the official JUCE tutorials here?

By the way, in such simple cases you don’t necessarily need to wrap your widgets into a smart pointer like std::unique_ptr or the deprecated juce::ScopedPointer at all, keeping them as plain members will work too, as seen in this tutorial.