Thanks Serge, I didn't know about that particular method. In any case, it turns out I wasn't casting my parameter to the correct type and that was the problem. Thanks for your help Serge, I appreciate it :-) Woke up this morning...and got myself a blog
Senkwe Chanda
Posts
-
InvokeMember "Member Not Found" when attempting to set a property -
InvokeMember "Member Not Found" when attempting to set a propertyHi Serge, thanks for replying. The property is not readonly or private, it looks like this...
public string MyProperty { get { return _myPropertyValue; } set { _myPropertyValue = value; } }
However, the quickwatch window gives me what I expect to see. All the fields and properties are initialized to null or 0 (strings and ints) Woke up this morning...and got myself a blog -
Phew , Italy scraped out a draw"Indian Soccer" :confused::confused: ;P Woke up this morning...and got myself a blog
-
InvokeMember "Member Not Found" when attempting to set a propertyI’m dabbling with some of .Nets reflection features and am running into the following problem… I have the following code,
Assembly myAssembly = AppDomain.CurrentDomain.Load("MyAssembly"); Type myType = localDataAssm.GetType("MyNameSpace.MyType”, true, true); Object myObjectInstance = Activator.CreateInstance(myType); myType.InvokeMember("MyProperty", System.Reflection.BindingFlags.SetProperty , null, myObjectInstance, new object[] {"blah"});
The InvokeMember step fails with “Member Not Found”, even though the said property does indeed exist. This seems to be straight forward to me so what am I missing?? Woke up this morning...and got myself a blog -
Most hated Interview question....I think I'll go to an interview drunk one day and when they ask me what my weakness is I'll say "My weakness is resisting the urge to club you over the head with this keyboard for asking me that question". :suss: Woke up this morning...and got myself a blog
-
RedHat consultingI'd argue that a good plumber important enough to warrant rates of $75/hr Woke up this morning...and got myself a blog
-
Just back after...I watched on the news this morning that voter turnout has been very poor this time around. Perhaps people are getting tired of politicians promises? Woke up this morning...and got myself a blog
-
C# questionsAnd I'm rating you a 5 for using the phrase "mad cross-over skillz". I'd give you an extra point for that "z" in "skillz". Word :cool: Woke up this morning...and got myself a blog
-
A Viral Conspiracy?Disclaimer: I've been thrown into the cells once here in SA for NO REASON whatsoever :-) BUT, when you think about it, these guys make something like 2 or 3000 Rands a month and for that, we expect them to risk their lives for us. So in a way, I can understand their corruption, I don't condone it, but I can understand it :-) Woke up this morning...and got myself a blog
-
How to use a WTL splitter window -
Microsoft Search EngineI also try my best to answer the surveys honestly, harsh or not. I was a sceptic but it seems someone over at MS is actually listening. For example, the MSDN newsgroups have improved quite a bit and they took care of those issues that I remember having complained about. Same with the new hotmail interface, when it first came out there were things about it I didn't like. Guess other people felt the same coz the issues were resolved for the most part. Woke up this morning...and got myself a blog
-
MSXML implementing ISAXContentHandler, what on earth am I missing??Hi Edward. Thanks for the reply again. I took a peek at the projects *.tlh file and my eyes glazed over so I deleted it and rebuilt all. Same thing happened. Looks like I'm going to have to dig into the file and look for anything odd. Thanks for your help :-) I'll post this problem to another newsgroup as I'm sure someone must have experienced this before. :-) Woke up this morning...and got myself a blog
-
MSXML implementing ISAXContentHandler, what on earth am I missing??Hi, thanksk alot for the response :-) Unfortunately, your suggestion doesn't seem to work. I've already tried including "raw_interfaces_only", didn't work I'm afraid. I've just now tried your "raw_XXX" suggestion and I still got the same compile error. Thanks again for the suggestions though :-) Woke up this morning...and got myself a blog
-
MSXML implementing ISAXContentHandler, what on earth am I missing??I've read the docs and a few online examples of how to implement the ISAXContentHandler interface. Simple enough. In my "stdafx.h" file, I make sure to add the following two lines. import using namespace MSXML2; Cool, I then created a class derived from ISAXContentHandler, call it ContentHandlerBase. I implemnted each of the ISAXContentHandler methods such that they all return S_OK. Then, I created a class that derived from ContentHandlerBase, call it ContentHandlerImpl. In this class I only implemented one method, say ISAXContentHandler::startElement for example. As soon as I tried to instantiate this class via ContentHandlerImpl* chi = new ContentHandlerImpl(), I got "Cannot Instantiate Abstract Class" along with a whole bunch of ... HRESULT MSXML2::ISAXContentHandler::raw_ignorableWhitespace(unsigned short *,int)' : pure virtual function was not defined for example, for each of the ISAXContentHandler methods even though they HAVE been implemented in the base class. I don't get, it. I downloaded an online sample and it compiled fine. Laboriously poring over the differences between my code and the sample code has proved fruitless as I can't see anything I did wrong :-( Anybody have any clues as to what might be the problem? Thanks. Senkwe Woke up this morning...and got myself a blog
-
Where and What did you study?hehe, Paul you know that's bad advice. Just to prove it to you, I'm quitting my job and becoming a blues guitar player :-D If I fail, I'm hunting you down! Woke up this morning...and got myself a blog
-
Isn't it amazingIan Darling wrote: And Ctrl+Shift+U/Ctrl+U for change selection case as well Thanks!! Now all those friggin ATL macros will feel my wrath :-D Woke up this morning...and got myself a blog
-
w00t*green with envy* My monitor would be at home in the first ever episode of the Flintstones. What does the new job entail Jeremy? Please tell me you're practicing working in COBOL so I at least have something to smirk about ;P Woke up this morning...and got myself a blog
-
american soccer fans...hehe, fair enough :-D Woke up this morning...and got myself a blog
-
american soccer fans...I've seen him play and wasn't that impressed. He's the equivalent of that Wayne Rooney kid in England. They're both very fast, very strong, and very powerful finishers. But they lack grace and finesse so they're not my kind of players. Why does it matter? Well the world game has progressed to the point where it's ridiculously easy to nullify these types of players. (Michael Owen isn't having a bad patch, his number is simply "up"). Put it this way, these guys would NEVER be able to make the French, Brazilian ,Portuguese or even Cameroon national teams. They're young though, so lets hope they mature :-) PS, the American team does have some players that I consider gifted and I do cheer them on when they play. It would be great for football as a whole if US soccer caught on more Woke up this morning...and got myself a blog
-
New Counter!Mr.Prakash wrote: I dont know whos is going to have the honor of being the 1,000,000th person. We can drag him/her into the lounge and bombard him/her with VB questions :-) Woke up this morning...and got myself a blog