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

Managed C++/CLI

 
GeneralRe: Interop problem Pin
led mike30-Jan-08 5:43
led mike30-Jan-08 5:43 
GeneralRe: Interop problem Pin
teejayem30-Jan-08 6:58
teejayem30-Jan-08 6:58 
GeneralRe: Interop problem Pin
led mike30-Jan-08 7:44
led mike30-Jan-08 7:44 
GeneralRe: Interop problem Pin
teejayem30-Jan-08 8:03
teejayem30-Jan-08 8:03 
QuestionProperties: How Do You Declare/Observe in VS2008? Pin
W Balboos, GHB29-Jan-08 4:49
W Balboos, GHB29-Jan-08 4:49 
AnswerRe: Properties: How Do You Declare/Observe in VS2008? Pin
W Balboos, GHB29-Jan-08 5:30
W Balboos, GHB29-Jan-08 5:30 
GeneralRe: Properties: How Do You Declare/Observe in VS2008? Pin
Scott Dorman29-Jan-08 8:27
professionalScott Dorman29-Jan-08 8:27 
GeneralRe: Properties: How Do You Declare/Observe in VS2008? Pin
W Balboos, GHB31-Jan-08 3:06
W Balboos, GHB31-Jan-08 3:06 
Fair Enough - The following will work, creating the properties and putting them in the specified category within the Properties Window for the control:

public:
  [Description("Type A Description That Appears at Bottom of Prop Window"), Category("Some_Category")]
  property type popertyName {
    public: type get()           { return dataMember;}
    public: void set(type value) { dataMember = value; }
  } //   property type popertyName


Now the above seems to be quite a simple change - the mess was that the early reference I found to this steered me in the direction of declaring the property static. All seemed well, although, being static, it require all of its members/called methods to be static objects, as well. This was not, for the general case, practical (and for inherited members, sanely do-able).

I figured out the error when I tried to use the property via 'hand coding': it would not let me use it as an instance, but only as a class member (because it was static - Duh!). This made me consider the static declaration not only a nusiance, but just plain wrong. Throwing caution to the wind, I deleted the (recommned via examples) static declaration and let the magic happen.

So trivial in hindsight. But why didn't the MSDN help just #*&)&&^)^ spell it out with a clear example?

"The difference between genius and stupidity is that genius has its limits." - Albert Einstein

"How do you find out if you're unwanted if everyone you try to ask tells you to go away?" - Balboos HaGadol



GeneralRe: Properties: How Do You Declare/Observe in VS2008? Pin
Scott Dorman31-Jan-08 3:32
professionalScott Dorman31-Jan-08 3:32 
GeneralRe: Properties: How Do You Declare/Observe in VS2008? Pin
W Balboos, GHB1-Feb-08 1:16
W Balboos, GHB1-Feb-08 1:16 
QuestionXMLWriter over internet Pin
dSolariuM28-Jan-08 21:15
dSolariuM28-Jan-08 21:15 
GeneralRe: XMLWriter over internet Pin
led mike29-Jan-08 4:59
led mike29-Jan-08 4:59 
QuestionHow to use mutual access to public data in parent and mdi child Pin
Chesnokov Yuriy28-Jan-08 21:10
professionalChesnokov Yuriy28-Jan-08 21:10 
GeneralRe: How to use mutual access to public data in parent and mdi child Pin
led mike29-Jan-08 4:51
led mike29-Jan-08 4:51 
Question0xc0150002 error Pin
Arsalan Malik28-Jan-08 4:57
Arsalan Malik28-Jan-08 4:57 
GeneralRe: 0xc0150002 error Pin
Mark Salsbery28-Jan-08 7:09
Mark Salsbery28-Jan-08 7:09 
GeneralRe: 0xc0150002 error Pin
led mike28-Jan-08 7:22
led mike28-Jan-08 7:22 
GeneralRe: 0xc0150002 error Pin
Mark Salsbery28-Jan-08 7:29
Mark Salsbery28-Jan-08 7:29 
GeneralRe: 0xc0150002 error Pin
Arsalan Malik29-Jan-08 1:31
Arsalan Malik29-Jan-08 1:31 
GeneralRe: 0xc0150002 error Pin
Arsalan Malik29-Jan-08 1:34
Arsalan Malik29-Jan-08 1:34 
GeneralRe: 0xc0150002 error Pin
Mark Salsbery29-Jan-08 5:14
Mark Salsbery29-Jan-08 5:14 
Generaluse an Object (like datagridview) in a thread Pin
javad_200527-Jan-08 23:00
javad_200527-Jan-08 23:00 
GeneralCatching exceptions for child processes Pin
manustone27-Jan-08 22:20
manustone27-Jan-08 22:20 
GeneralRe: Catching exceptions for child processes Pin
led mike28-Jan-08 7:24
led mike28-Jan-08 7:24 
GeneralThe string binding is invalid Pin
hansipet27-Jan-08 21:50
hansipet27-Jan-08 21:50 

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.