Click here to Skip to main content
15,898,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: code to analyze bitmap then create predefined palette of colors in bitmap? Pin
Randor 24-Jan-09 6:59
professional Randor 24-Jan-09 6:59 
Questionexplorer in Windows CE Pin
Miss_F24-Jan-09 2:18
Miss_F24-Jan-09 2:18 
AnswerRe: explorer in Windows CE Pin
Stuart Dootson24-Jan-09 3:09
professionalStuart Dootson24-Jan-09 3:09 
GeneralRe: explorer in Windows CE Pin
Miss_F24-Jan-09 3:15
Miss_F24-Jan-09 3:15 
GeneralRe: explorer in Windows CE Pin
Stuart Dootson24-Jan-09 4:43
professionalStuart Dootson24-Jan-09 4:43 
GeneralRe: explorer in Windows CE Pin
Miss_F24-Jan-09 18:53
Miss_F24-Jan-09 18:53 
QuestionGet TrackBar Value in Form from a Thread Pin
Member 391913824-Jan-09 1:16
Member 391913824-Jan-09 1:16 
AnswerRe: Get TrackBar Value in Form from a Thread Pin
Stuart Dootson24-Jan-09 1:37
professionalStuart Dootson24-Jan-09 1:37 
Member 3919138 wrote:
Any ideas what to do?


Post to the C++/CLI[^] forum, as that's what you're using?

From what I can understand of your message, you're expecting trackBar_Value to keep its value in two different invocations of Get_TrackBar1_Value? Nope - local variables don't do that unless they're static. However - doesn't Invoke return the return value of the delegate? So you could do something like this?

trackBar_Value = form->Invoke(d, gcnew array<system::object^>{form});


You might need some casting to convert Invoke's return value from System::Object to int - wouldn't know - I've never really used .NET, never mind C++/CLI.
GeneralRe: Get TrackBar Value in Form from a Thread Pin
Member 391913824-Jan-09 1:56
Member 391913824-Jan-09 1:56 
GeneralRe: Get TrackBar Value in Form from a Thread Pin
Stuart Dootson24-Jan-09 2:19
professionalStuart Dootson24-Jan-09 2:19 
GeneralRe: Get TrackBar Value in Form from a Thread Pin
Chris.G.Weber24-Jan-09 6:40
Chris.G.Weber24-Jan-09 6:40 
GeneralRe: Get TrackBar Value in Form from a Thread Pin
Member 391913824-Jan-09 8:12
Member 391913824-Jan-09 8:12 
QuestionHelp for Wizard look ! Pin
Le@rner24-Jan-09 0:50
Le@rner24-Jan-09 0:50 
AnswerRe: Help for Wizard look ! Pin
Naveen24-Jan-09 1:04
Naveen24-Jan-09 1:04 
GeneralRe: Help for Wizard look ! Pin
Le@rner24-Jan-09 1:51
Le@rner24-Jan-09 1:51 
Question[Message Deleted] Pin
AnithaSubramani24-Jan-09 0:41
AnithaSubramani24-Jan-09 0:41 
AnswerRe: Listener in MFC Pin
Naveen24-Jan-09 1:01
Naveen24-Jan-09 1:01 
QuestionRe: Listener in MFC Pin
Rajesh R Subramanian25-Jan-09 4:47
professionalRajesh R Subramanian25-Jan-09 4:47 
AnswerRe: Listener in MFC Pin
Hans Dietrich25-Jan-09 9:04
mentorHans Dietrich25-Jan-09 9:04 
QuestionDebuggerEvents under C++ in Visual Studio [modified] Pin
primexx23-Jan-09 22:31
primexx23-Jan-09 22:31 
QuestionSetLayeredWindowAttributes() - Undeclared identifier Pin
ganesh.dp23-Jan-09 22:06
ganesh.dp23-Jan-09 22:06 
AnswerRe: SetLayeredWindowAttributes() - Undeclared identifier Pin
Naveen23-Jan-09 22:39
Naveen23-Jan-09 22:39 
GeneralRe: SetLayeredWindowAttributes() - Undeclared identifier Pin
ganesh.dp23-Jan-09 22:56
ganesh.dp23-Jan-09 22:56 
GeneralRe: SetLayeredWindowAttributes() - Undeclared identifier Pin
ganesh.dp23-Jan-09 23:00
ganesh.dp23-Jan-09 23:00 
GeneralRe: SetLayeredWindowAttributes() - Undeclared identifier Pin
Naveen23-Jan-09 23:07
Naveen23-Jan-09 23:07 

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.