Click here to Skip to main content
15,793,139 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Managed c++ float/double/integer to String and vice-versa? Pin
yehiga146726-May-21 1:12
yehiga146726-May-21 1:12 
GeneralRe: Managed c++ float/double/integer to String and vice-versa? Pin
Victor Nijegorodov26-May-21 1:41
Victor Nijegorodov26-May-21 1:41 
QuestionButton image is not updating to new image when Serial Port received new data Pin
yehiga146725-May-21 2:03
yehiga146725-May-21 2:03 
AnswerRe: Button image is not updating to new image when Serial Port received new data Pin
jsc4225-May-21 3:43
professionaljsc4225-May-21 3:43 
GeneralRe: Button image is not updating to new image when Serial Port received new data Pin
yehiga146725-May-21 20:10
yehiga146725-May-21 20:10 
GeneralRe: Button image is not updating to new image when Serial Port received new data Pin
jsc4225-May-21 23:22
professionaljsc4225-May-21 23:22 
GeneralRe: Button image is not updating to new image when Serial Port received new data Pin
yehiga146725-May-21 23:53
yehiga146725-May-21 23:53 
QuestionHow to pass a function pointer an argument in managed C++ Pin
yehiga146724-May-21 2:25
yehiga146724-May-21 2:25 
AnswerRe: How to pass a function pointer an argument in managed C++ Pin
Richard MacCutchan24-May-21 5:00
mveRichard MacCutchan24-May-21 5:00 
GeneralRe: How to pass a function pointer an argument in managed C++ Pin
yehiga146724-May-21 17:44
yehiga146724-May-21 17:44 
AnswerRe: How to pass a function pointer an argument in managed C++ Pin
Richard Andrew x6424-May-21 5:28
professionalRichard Andrew x6424-May-21 5:28 
QuestionConvert Native Pointer to IntPtr Pin
Richard Andrew x6422-May-21 5:44
professionalRichard Andrew x6422-May-21 5:44 
AnswerRe: Convert Native Pointer to IntPtr Pin
Richard MacCutchan22-May-21 5:47
mveRichard MacCutchan22-May-21 5:47 
GeneralRe: Convert Native Pointer to IntPtr Pin
Richard Andrew x6422-May-21 5:51
professionalRichard Andrew x6422-May-21 5:51 
QuestionBackgammon Game Pin
basel3322-May-21 3:25
basel3322-May-21 3:25 
AnswerRe: Backgammon Game Pin
Richard MacCutchan22-May-21 4:13
mveRichard MacCutchan22-May-21 4:13 
QuestionSerial Port BytesToRead always 0 Pin
yehiga146721-May-21 1:16
yehiga146721-May-21 1:16 
QuestionRe: Serial Port BytesToRead always 0 Pin
Richard MacCutchan21-May-21 1:59
mveRichard MacCutchan21-May-21 1:59 
AnswerRe: Serial Port BytesToRead always 0 Pin
cibec75455@frnla.com21-May-21 2:29
cibec75455@frnla.com21-May-21 2:29 
GeneralRe: Serial Port BytesToRead always 0 Pin
Richard MacCutchan21-May-21 2:38
mveRichard MacCutchan21-May-21 2:38 
GeneralRe: Serial Port BytesToRead always 0 Pin
cibec75455@frnla.com21-May-21 2:47
cibec75455@frnla.com21-May-21 2:47 
QuestionHow to call System::Windows::Forms::Controls "invoke" method? Pin
Member 1515077819-May-21 20:48
Member 1515077819-May-21 20:48 
AnswerRe: How to call System::Windows::Forms::Controls "invoke" method? Pin
Victor Nijegorodov19-May-21 21:28
Victor Nijegorodov19-May-21 21:28 
GeneralRe: How to call System::Windows::Forms::Controls "invoke" method? Pin
Member 1515077819-May-21 21:35
Member 1515077819-May-21 21:35 
Hello, I tried to copy my approach from the MyForm.cpp and it worked properly i.e. invoke wasn't define in MyForm.cpp but I could still call this invoke function since it's from System::Windows::Forms::Controls.

But in my own class myGroupBox, it couldn't do the same.



here's an snippet of MyForm.cpp that used the invoke and worked

using namespace System;
using namespace System::Windows::Forms;

[STAThreadAttribute]
void main(array<String^>^ args) {
	Application::EnableVisualStyles();
	Application::SetCompatibleTextRenderingDefault(false);
	myGUI ::MyForm form;
	Application::Run(% form);
}

namespace myGUI {


	System::Void MyForm::serialPort1_DataReceived(System::Object^ sender, System::IO::Ports::SerialDataReceivedEventArgs^ e) {
		if (serialPort1->IsOpen) {
			databufferA = serialPort1->ReadLine();
	this->Invoke(gcnew EventHandler(this, &MyForm::DisplayText));

		}
	}
}


modified 20-May-21 2:41am.

GeneralRe: How to call System::Windows::Forms::Controls "invoke" method? Pin
Richard MacCutchan19-May-21 22:09
mveRichard MacCutchan19-May-21 22:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.