• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
1

SDK User defined class

Engaged ,
Feb 22, 2024 Feb 22, 2024

Copy link to clipboard

Copied

Hi

 

I'm building a C++ plugin and I'm trying to setup a user defined class that I can then use in my main cpp file. I'm using Visual Studio.

I'm testing this with a small project based on Skeleton sample project.

I have made a completly basic class with a header and a cpp file like this: https://learn.microsoft.com/en-us/cpp/cpp/header-files-cpp?view=msvc-170 

The header file is located in the folder called "Header Files", just like the other header files. The cpp file is in the root along side the main cpp file.

 

I get this intelligense error:

"Severity Code Description Project File Line Suppression State
Error (active) E1696 cannot open source file "my_class.h" TestPlugin"

 

If I try to build I get this error:

"Severity Code Description Project File Line Suppression State
Error C1083 Cannot open include file: 'my_class.h': No such file or directory TestPlugin"

 

Is there anything I need to do to create my own custom headers and classes?

 

Thanks,

Jakob

TOPICS
SDK

Views

94

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , Feb 22, 2024 Feb 22, 2024

Oh no. After posting I found out that when I add a new item in VS it creates the item in the "win" folder, not the root folder along with the main cpp. I guess this is purely a VS topic then, sorry for disturbing the forum.

Votes

Translate

Translate
Engaged ,
Feb 22, 2024 Feb 22, 2024

Copy link to clipboard

Copied

LATEST

Oh no. After posting I found out that when I add a new item in VS it creates the item in the "win" folder, not the root folder along with the main cpp. I guess this is purely a VS topic then, sorry for disturbing the forum.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines