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

Managed C++/CLI

 
QuestionLinking error for program that creates a windows window Pin
Peter Charlesworth13-Feb-06 9:41
Peter Charlesworth13-Feb-06 9:41 
AnswerRe: Linking error for program that creates a windows window Pin
Red Stateler13-Feb-06 9:56
Red Stateler13-Feb-06 9:56 
QuestionC++ Builder Transparent Graphics! Pin
Debs*13-Feb-06 9:12
Debs*13-Feb-06 9:12 
AnswerRe: C++ Builder Transparent Graphics! Pin
olle13-Feb-06 9:56
olle13-Feb-06 9:56 
GeneralRe: C++ Builder Transparent Graphics! Pin
Debs*27-Feb-06 6:25
Debs*27-Feb-06 6:25 
GeneralRe: C++ Builder Transparent Graphics! Pin
Gordon Brandly2-Mar-06 10:45
Gordon Brandly2-Mar-06 10:45 
GeneralRe: C++ Builder Transparent Graphics! Pin
Debs*3-Mar-06 3:37
Debs*3-Mar-06 3:37 
GeneralRe: C++ Builder Transparent Graphics! Pin
Gordon Brandly3-Mar-06 15:11
Gordon Brandly3-Mar-06 15:11 
Questionshare dll data with application Pin
sap.cool13-Feb-06 0:36
sap.cool13-Feb-06 0:36 
Questionvisal studio 2003 MFC/SDI and help whit Cbrush Pin
ALTF412-Feb-06 0:54
ALTF412-Feb-06 0:54 
QuestionConsole Output Formatting Pin
Brett Peirce10-Feb-06 15:22
Brett Peirce10-Feb-06 15:22 
AnswerRe: Console Output Formatting Pin
George L. Jackson10-Feb-06 17:28
George L. Jackson10-Feb-06 17:28 
QuestionHow to scroll text in dev c++ in c++ code? Pin
zeyan10-Feb-06 14:21
zeyan10-Feb-06 14:21 
AnswerRe: How to scroll text in dev c++ in c++ code? Pin
Cedric Moonen12-Feb-06 20:55
Cedric Moonen12-Feb-06 20:55 
GeneralRe: How to scroll text in dev c++ in c++ code? Pin
zeyan13-Feb-06 13:19
zeyan13-Feb-06 13:19 
AnswerRe: How to scroll text in dev c++ in c++ code? Pin
Ed K14-Feb-06 12:05
Ed K14-Feb-06 12:05 
QuestionWindows threads Pin
hyyppa10-Feb-06 1:51
hyyppa10-Feb-06 1:51 
AnswerRe: Windows threads Pin
toxcct10-Feb-06 2:06
toxcct10-Feb-06 2:06 
AnswerRe: Windows threads Pin
Eytukan16-Feb-06 4:54
Eytukan16-Feb-06 4:54 
QuestionLamp Control Pin
felixix9-Feb-06 10:48
felixix9-Feb-06 10:48 
I'm trying to make a lamp control with a 'LampOn' property. If the LampOn property is true, the control shows an image of a green lamp. If it's false, the control shows a red lamp. The two lamps are resources and the image is displayed as the background image of the control. Nothing else is displayed in the control.

I use this code for the LampOn property:
property bool LampOn {<br />
			bool get() {<br />
				return (BackgroundImage == (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"on"))));<br />
			}<br />
			void set(bool val) {<br />
				if (val) <br />
					BackgroundImage = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"on")));<br />
				else <br />
					BackgroundImage = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"off")));<br />
			}<br />
		}


However, if I want to use the control in a windows form, the lamp won't be usable. The property appers but I can't switch it to true. I'm pretty sure this has to do with the get code in the property. Any ideas what I did wrong?

Here the whole project (VC 2005): Click
AnswerRe: Lamp Control Pin
George L. Jackson9-Feb-06 12:14
George L. Jackson9-Feb-06 12:14 
QuestionWebBrowser Control Event problem on CE.Net Device Pin
daniel_godshall9-Feb-06 10:44
daniel_godshall9-Feb-06 10:44 
Questionoutputting text on-screen Pin
Peter Charlesworth9-Feb-06 7:32
Peter Charlesworth9-Feb-06 7:32 
AnswerRe: outputting text on-screen Pin
George L. Jackson9-Feb-06 12:29
George L. Jackson9-Feb-06 12:29 
QuestionMulti threaded programming Pin
RanjanShrestha9-Feb-06 7:23
RanjanShrestha9-Feb-06 7:23 

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.