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

Managed C++/CLI

 
GeneralRe: How to format DATETIME Pin
Richard MacCutchan21-Jan-19 2:44
mveRichard MacCutchan21-Jan-19 2:44 
GeneralRe: How to format DATETIME Pin
Member 1412466121-Jan-19 3:30
Member 1412466121-Jan-19 3:30 
GeneralRe: How to format DATETIME Pin
Richard MacCutchan21-Jan-19 3:48
mveRichard MacCutchan21-Jan-19 3:48 
GeneralRe: How to format DATETIME Pin
Member 1412466121-Jan-19 3:57
Member 1412466121-Jan-19 3:57 
GeneralRe: How to format DATETIME Pin
Richard MacCutchan21-Jan-19 4:52
mveRichard MacCutchan21-Jan-19 4:52 
GeneralRe: How to format DATETIME Pin
Member 1412466121-Jan-19 6:08
Member 1412466121-Jan-19 6:08 
GeneralRe: How to format DATETIME Pin
Richard MacCutchan21-Jan-19 6:24
mveRichard MacCutchan21-Jan-19 6:24 
Questionserial port, threads, events Pin
jeff rhodes 1240020410-Jan-19 20:30
jeff rhodes 1240020410-Jan-19 20:30 
hi guys love this site so helpful. i have a c++/cli program im writing. im not going to post no code at this time cause i hope my problem can be solved with just a explanation. in my main form i run some code that controls a pic chip that runs some servo motors, communicating through the serial port. all runs fine. the problem im having is that well you know serial port is on another thread. so i use invoke and run a data received method on the ui. now that has a switch statement that may call some other functions in my ui thread that all works fine until one of the functions actually needs some input from the serialport. but i dont get any data in until the invoke completes. i tryed to run it with begininvoke which seems to work fine for the serialport but the ui doesnt update the form at all during the invoktion. so i thought i would just try to have the datareceived funtion fire an event on the ui. but then i get a crossthread error. maybe im not doing the event correctlly im still trying to get my head around delegates and events. question? does this seem reasonable? what i need to do is get that serialport freed up so that it can receive data again while the ui runs its code. Please bear with me im learning. and i have been reading post after post about threads, delegates, and events. ive problebly seen the answer and didnt know it. ill be happy to read im just not sure of the correct implementation. and im writing this in c++/cli cause i copied some code from an old borland c++ program. thanks in advance. yes i could post some code but ill have to clean it up first and pick out important parts right now its quite sizable.
AnswerRe: serial port, threads, events Pin
Victor Nijegorodov11-Jan-19 3:28
Victor Nijegorodov11-Jan-19 3:28 
GeneralRe: serial port, threads, events Pin
jeff rhodes 1240020411-Jan-19 16:51
jeff rhodes 1240020411-Jan-19 16:51 
GeneralPlease Upvote: C++/CLI: std::move causes std::unique_ptr parameter to be destructed before function call Pin
John Schroedl3-Jan-19 2:13
professionalJohn Schroedl3-Jan-19 2:13 
GeneralRe: Please Upvote: C++/CLI: std::move causes std::unique_ptr parameter to be destructed before function call Pin
Richard MacCutchan3-Jan-19 2:23
mveRichard MacCutchan3-Jan-19 2:23 
GeneralRe: Please Upvote: C++/CLI: std::move causes std::unique_ptr parameter to be destructed before function call Pin
John Schroedl3-Jan-19 2:28
professionalJohn Schroedl3-Jan-19 2:28 
QuestionHow to catch exception caused by third party dll in c++? Pin
Sampath5797-Dec-18 0:22
Sampath5797-Dec-18 0:22 
AnswerRe: How to catch exception caused by third party dll in c++? Pin
Richard MacCutchan7-Dec-18 2:39
mveRichard MacCutchan7-Dec-18 2:39 
GeneralRe: How to catch exception caused by third party dll in c++? Pin
Sampath5797-Dec-18 2:58
Sampath5797-Dec-18 2:58 
GeneralRe: How to catch exception caused by third party dll in c++? Pin
Richard MacCutchan7-Dec-18 3:25
mveRichard MacCutchan7-Dec-18 3:25 
GeneralRe: How to catch exception caused by third party dll in c++? Pin
sameer.p.deshmukh9-Jan-19 1:02
sameer.p.deshmukh9-Jan-19 1:02 
QuestionHow to trace an unhandled exception in C++ using Visual Studio 2017 Pin
Dominick Marciano31-Oct-18 23:03
professionalDominick Marciano31-Oct-18 23:03 
AnswerRe: How to trace an unhandled exception in C++ using Visual Studio 2017 Pin
Richard MacCutchan31-Oct-18 23:55
mveRichard MacCutchan31-Oct-18 23:55 
GeneralRe: How to trace an unhandled exception in C++ using Visual Studio 2017 Pin
AndreyAksenov7-Dec-18 2:38
AndreyAksenov7-Dec-18 2:38 
GeneralRe: How to trace an unhandled exception in C++ using Visual Studio 2017 Pin
Richard MacCutchan7-Dec-18 3:22
mveRichard MacCutchan7-Dec-18 3:22 
AnswerRe: How to trace an unhandled exception in C++ using Visual Studio 2017 Pin
John Schroedl5-Nov-18 5:13
professionalJohn Schroedl5-Nov-18 5:13 
Questionmeaing of below code Pin
Member 139765087-Sep-18 22:01
Member 139765087-Sep-18 22:01 
AnswerRe: meaing of below code Pin
Richard MacCutchan7-Sep-18 22:32
mveRichard MacCutchan7-Sep-18 22:32 

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.