I’m trying to execute a Powershell script from CMD which receives a SecureString object as an argument as follows: pwsh.exe -Command ".my_script.ps1" -Password (ConvertTo-SecureString XXXXXX -AsPlainText) This works fine on my machine with Windows 10 and Powershell 7.1, but shows the following error in Windows Server 2012 with the same version of Powershell. Cannot process ..

Read more

Im new in this field. Thank you in advance to all the gurus. What is wrong with my quick sorting algorythm sometimes it gives the right answer sometimes it doesnt here’s my code #include <iomanip> #include <iostream> using namespace std; void foo(int*, int, int); int main() { int* a, n; cin >> n; a = ..

Read more

i have my unreal project that must read out some BSON document data into a map. right now i’m able to load that file and print it out with the following code : void AMyActor::BeginPlay() { Super::BeginPlay(); std::ifstream input( filePath , std::ios::binary ); std::vector<unsigned char> buffer(std::istreambuf_iterator<char>(input), {}); bson_t* doc{ bson_new_from_data(buffer.data(),buffer.size()) }; char *str; if( doc ..

Read more