|
Hi All,
Will anyone help in opening a View which is having its own Interface and Presenter. I want to open this view from base presenter in ModalWindow style. the code which i am having throws error "Object reference not set to an instance" in this line of code "WorkItem.Workspaces[WorkspaceNames.ModalWindows].Show(ObjMailLeft);". I need a sample application so that i can understand better..
Thanks in advance
Umashanker.K
|
|
|
|
|
Hi coder,
I am facing an problem with my application, which is using As access database as an back end.
when i am running the application after istalling to system it throws an exception of OLEDB 4.0 not registered on your local system
Please suggest me what to do.
If i need to istall the driver than plz if possible give me link for the same
Thanks in advance.
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|
|
Googling this problem brought lots[^] of results. Why didn't you try it first?
With a couple of clicks I found this[^]. Seriously, if you want to become a professional problem you will have to learn how to solve problems like this yourself.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi thanks fo rthe reply.
I have alresdy googled lot but failed to resolve.
i also installed latest service pack for the OS but again facing prob.
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|
|
Hi,
Why din't Microsoft include Multile inheritance in C#? This was asked to me by an interviewer, I couldn't answer this properly.
The guy said there was some reason why they din't include multiple inheritance, which he din't tell me.
Regards,
Blumen
|
|
|
|
|
Because designers of C# decided that advantages don't outweight disadvantages (e.g complexity).
[ My Blog] "Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - Rüdiger Klaehn "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
Multiple inheritance is one of those really contentious issues with advocates on both sides arguing that they have the only right answer. Anyway - Anders Hejlberg decided against it (partly because .NET doesn't natively support MI - although Eifell.NET has included the ability to use MI), but his position does seem to be changing on this issue.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Pete O`Hanlon wrote: partly because .NET doesn't natively support MI
Im sure I read recently that the framework does support MI, but the implementation of it raises its own quirks... so they left it out until they decide exactly how it should be implemented. The same article talked about mixins as a possible alternative. Personally I hate both MI and mixins.
Sorry I don't have a link to the article, I'll trawl through my history and see if I can find it.
|
|
|
|
|
thanks to all you guys, but what should i tell the interviewer?
Possible answers I got by posting this question:
1. Its complex if its implemented
2. More disadvantages than advantages
3. .NET doesnt natively support MI
4. implementing MI creates problems
If you were asking me this question in an interview, what answer would you expect Jamie?
Regards,
Blumen
|
|
|
|
|
If I was asking you this question in an interview i'd be an idiot. Not only is it totally irrelevant to day-to-day programming but it sounds as if this guy is either
a) A C++ evangelist who is trying to have a bash at c#'s "lack of MI"
b) An idiot who has heard a buzzword and is trying to look intelligent.
Try asking him why he thinks that MI is relevant to the job and watch him either give a tirade about how wonderful MI is (a) or splutters and changes the subject (b).
|
|
|
|
|
Amen to that.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
This is a meta-question. At best the people responsible for the C# definition can answer
this; everyone else can only guess. Whoever asks this does not intend to be called an idiot,
he intends to observe the interviewee's reaction. Not every question is about knowledge...
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
May be he was not a idiot afterall, he just din't want me in his team coz they were looking for a person with more experience.
hmm, anyway I always feel like asking the interviewer answers to his questions but I back off thinking that most of them don't like to be questioned!
|
|
|
|
|
I think none of the answers is really convincing. Maybe you should answer that we cannot know the motivation of the guys not to include it. Simplicity and avoiding errors might be an argument. On the other hand C# is not a simple language. It includes many complex and new features.
If you have the feeling the interviewer is not a fan of multiple inheritance you might say MI is an interesting idea, but you do not really need it in practical situations.
Rudolf Heijink
|
|
|
|
|
Hi Rudolf,
I told him it would make the language complex, but then he started asking "how complex"? I am new to C# and programming as a whole, and I dint know how complex it would make the language.
This is my experience in an interview where people don't want to ask you obvious questions. I used to google for interview questions and appear for the interview, but I failed miserably two times. I feel bad when I think about these interviews.
I want to dig deep in to topics, but when I start asking why (mostly to Google) something is done this way in .NET framework, rarely do I get good answers (articles/posts). How do you find answers to your questions, how do you get knowledgable?
Regards,
Blumen
|
|
|
|
|
blumenhause wrote: How do you find answers to your questions, how do you get knowledgable?
There are a lot of different ways:
- Reading books
- On your own investigating - write some code, see what it does and how it behaves
- Using tools like Reflector to see what/how the base class libraries do things
- Ask questions of people that have more experience and/or are more knowlegeable than you on a particular topic.
Since you are new to programming and C# (and also, it appears, to technical interviews), the thing to remember is this:
There are two types of interviewers: The kind that wants to show off how much he/she knows and the kind that wants to know how much you know and how you react to difficult/challenging questions.
The first type of interviewer is difficult to deal with at best as they tend to ask the "impossible" questions and drill into topics that are intentionally hard. The goal is to show you how smart they are and doesn't really help anybody.
The second type of interviewer will also ask difficult questions, but the entire interview won't consist of them. This is the person that will ask a mixture of easy to hard questions to try and understand how much you know on a particular topic and what your problem solving skills are.
Even after 15 years of experience I have been on interviews where I was asked a question that stumped me. It's always OK to say you don't know rather than trying to guess and get it wrong.
|
|
|
|
|
Thank you Scott, that was really informative.
Regards,
Blumen
|
|
|
|
|
blumenhause wrote: Why din't Microsoft include Multile inheritance in C#?
Very likely to ensure that developers don't encounter the diamond problem[^].
/ravi
|
|
|
|
|
Hedging their bets; it's easier to add it in later than to remove it.
|
|
|
|
|
Because they were making a child language (VB.NET). They didn't want VB programmers to jump from cliffs during the transition into real world programming.
|
|
|
|
|
Hi,
I have a SQL database and I want to display some items in my application with datagridview. I created stored procedures and datatables in my dataset. In one of the columns of the datagridview I want to draw an blinking image, but this image is not stored in database. For this image I have custom DGWCell and DGWColumn classes. How can I manipulate data while dataTable is creating? Or How can I override inherited DGWCell functions to draw an blinking image in that cell?
|
|
|
|
|
Use the ItemDataBound event. There are a few article on CP about this one of them mine as it happens.
|
|
|
|
|
Thank you for your reply.
ItemDataBound is a event of DataGrid and DataList, Since I am using DataGridView and developing windows application, this event is not useful.
|
|
|
|
|
hi I am sandipan,currently working on a project where I have to implement video chatting.Please help me how can i do that using .NET.
|
|
|
|
|
Hello,
I am having a form based application. In constructor of main application form it initiates a thread for hardware.
Now the hardware raises a event which is listned back in to the main form itself. Here i want to create a form which should be child of main form.
I am doing
frmSerialKeyInsert mFrmSerialKeyInsert ;
mFrmSerialKeyInsert = new frmSerialKeyInsert();
frmMDIMain.mFrmSerialKeyInsert.MdiParent = this;
But i got exception "controls create on one thread cannot be parented to a control on different thread"
How to solve this problem??
|
|
|
|