I want to get the AppData folder path by using the ShGetKnownFolderPath
function in C++, which returns the not declared in this scope
errpr. I tried alot of other functions like this one SHGetFolderPath
, my headers are:
#include <shlobj.h>
#include <iostream>
#include <windows.h>
and the only thing which worked so far is char *appData = getenv("AppData");
.
I am using Windows 10.
P.S
My question might look like a duplicate, but the answers to those questions didn't help me.