Category : clr

I have this code: ref class SimSpeak { public: int id = 0; System::String^ speech; static SpeechSynthesizer^ speechSynthesizer = gcnew SpeechSynthesizer(); static cli::array<InstalledVoice^>^ voiceCollection = gcnew cli::array<InstalledVoice^>(10); static int idcounter = 0; SimSpeak(System::String^ ispeech) : speech(ispeech) { id = idcounter; idcounter++; }; void get_voices() { voiceCollection = speechSynthesizer->GetInstalledVoices(); } void speak() { speechSynthesizer->Speak(speech); } }; ..

Read more

I was wondering if there is a possibility to use C++17 parallel algorithms (#include <execution>) in an c++/cli project. In the following images you can see the general and advanced configuration properties as well as the errors I get when I try to compile a simple project with an empty WinForm and #include <execution>. General ..

Read more

I’m trying to make DirectX11 work which it does… except when i leave the constructor of my DX11 class. I have some pointers to DX11 objects which are all gone when i get to the Clear or Present function. DX11.h #pragma once #include <dxgi.h> #include <d3dcommon.h> #include <d3d11.h> #include <d3d10.h> #include <DirectXMath.h> #include "../GraphicsSettings.h" class ..

Read more

So whenever I’m loading my project this error appears and I have no clue what it means and couldn’t find the solution for it anywhere online. C++ CodeDOM parser error: Line: 118, Column: 25 — Unknown type ”. Please make sure that the assembly that contains this type is referenced. If this type is a ..

Read more

I’m using the project folder CppCLR_WinformsProjekt as my main starting file, and when I tried to input an image into a picture box in my forms, this error message came up: System.Resources.MissingManifestResourceException HResult=0x80131532 Message=Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "CppCLRWinformsProjekt.Form1.resources" was correctly embedded or linked ..

Read more