|
I looked at MEF and I just couldn't understand the mecahnism. Another chap at my work looked at it and couldn't figure it out either...
I'm confused at a high and a low technical level, but all the examples I get shows you how easy it is, and over the years I have grown petrified of things that looks way easy in an example...
Apart from the link above (which I'll have another look at), do you have some advanced samples that shows the workings?
____________________________________________________________
Be brave little warrior, be VERY brave
|
|
|
|
|
Sacha Barber has an excellent sample here[^].
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
I have a problem.I have made a digital dairy compromising of three forms.The first form gives an intro to dairy, the second form contains text boxes of "name","phone number", "email id",etc and the third form re-displays this info in labels and asks user if they want to save data as it is or want to edit it.In case the user clicks edit form two is opened if one chooses save form 1 opens.The problem with me is that my frm displays the last saved information instead of displaying empty text boxes when chosen "new" button from form one.Help me!!!!!!!!!!!!!!
|
|
|
|
|
emma watson wrote: The problem with me is that my frm displays the last saved information instead of displaying empty text boxes when chosen "new" button from form one.
You could clear the values of the different controls in your editForm_Load. How does the form load it's data? Can you paste the code where you load the data, and the code that's behind the "New"-button?
I are Troll
|
|
|
|
|
Hi,
Though i am a non-Technical person.A software developer of my company(Mindfire Solutions) has done an analysis on VB.net.Please visit the following links.
http://www.mindfiresolutions.com/VBNET-104.php[^]VBDOT net.
Cheers,
Eliza
Mindfire: India's Only Company to be both Apple Premier & Microsoft Gold certified.
|
|
|
|
|
Hi All,
I want to develop an 3D Image rendering software using DIRECTX which can perform some 3D Operations.My customer wants the software developed on .Net Framework.
I have experience in coding in MFC in VC6.0.If i develop an application in MFC dialog based application in Visual Studio 2008,will it be built on .Net Framework?
Also,i have done some image processing coding in C++.Basically i have some classes defined in .h and .cpp files which i want to include in the .Net application which i am going to develop.
For the above requirements should i go for VC++.Net(Forms based developed in VS 2008) application or VC++(MFC based developed in VS 2008)?
Please advice.
Thanks ,
Ashwath.
|
|
|
|
|
ashwath1979 wrote: If i develop an application in MFC dialog based application in Visual Studio 2008,will it be built on .Net Framework?
You shouldn't even have to ask this question! Of course MFC is not .NET !!!
You can use your C++ code in .NET by using PInvoke and creating an interop library to your functions.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
What are you suggesting - that the acceptable base level of knowledge is your own? Anyone who knows less is somehow deficient, stupid or both? It's a perfectly legitimate question from someone who does not know the answer. That's why people ask questions - so they can learn from people who know a little more.
Please be a bit more respectful towards those whose knowledge is different to yours.
|
|
|
|
|
Are you the ghost of Christmas past? I think I can understand though, with only two posts in two years I guess it takes you that long to read everything.
We have a voting system here, you may have noticed it, if you find a posting to be offensive or a bad, then vote appropriately. However, I see that no one else has responded or voted in the last seven months so it can be posited that either no one else, particularly the OP, found any offense. Perhaps you more sensitive or are just troll.
I await your response in March, 2011
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Okay, you clearly reserve the right to be as arrogantly dismissive about anyone you please. That's your problem mainly, not mine. I hope the questioner wasn't in the least bit sensitive to your reply.
|
|
|
|
|
I just tried to use StreamResourceInfo to read a zip file, after much struggling I found out that its actually part of System.Windows, and not the System.Windows that gives us dll's or Windows development, the System.Windows that gives us WPF and Silverlight... Now I ask you what does reading a zip file have to do with UI technology...
Same goes for the very popular ObservableCollection<T>, try to find that in a non-UI project...
Is MS in such a hurry with XAML that they are not bothered about putting things where they belong? What will they call the class that can read Zip Files in Class Library projects if they do it? (Does one exist?)
ARGH!
____________________________________________________________
Be brave little warrior, be VERY brave
|
|
|
|
|
Hi All,
I am pretty new in terms of MSBuild, so please dont humilate my naive questions
Can someone plz tell me what's the benefit to use MSBuild and why we need it. we can create a porject in M/S visual studio and then build the project in the M/S visual studio. I dont know why we need this tool(M/S Build)?
Many thanks
|
|
|
|
|
Tasks such as creating installs, updating version numbers, creating escrows, distributing the final packages, etc. can be automated and made easier with what MSBuild (or Nant) provide.
The dev env just does a build.
There are only 10 types of people in this world — those who understand binary, and those who don't. |
|
|
|
|
|
Thanks very much, can you please offer me an example that does all of or some of those tasks?
|
|
|
|
|
Here[^] is a nice CP article on MSBuild.
There are only 10 types of people in this world — those who understand binary, and those who don't. |
|
|
|
|
|
In addition to the clever build tasks mentioned already MSBuild is the engine used by Team Foundation Server to perform automated builds. In fact even building a solution in Visual Studio is using MSBuild. VS just autogenerates the MSBuild script on the fly.
So the advantage of using MSBuild is that you can build .Net applications. Since the release of .Net 2.0 there has been no other way. (I believe Nant just calls VS to perform the actual build, which in turn calls MSBuild).
Because of this, extending the build process to build multiple projects and perform extra tasks is mostly a matter of adding to an xml file, though more specialised tasks may require a custom build task to be written in .Net.
|
|
|
|
|
|
Hi,
Does anyone know of a way to get an image of a print document and save it to a bitmap file? It is even possible?
|
|
|
|
|
Use a scanner and save as bmp
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Almost funny. By printdocument i mean System.Drawing.Printing.PrintDocument
|
|
|
|
|
Martin Beukes wrote: Does anyone know of a way to get an image of a print document and save it to a bitmap file? It is even possible?
From your own application, or "any" application?
I'm guessing that you want this functionality for "all" applications, and in that case you'd have to download the WinDDK to roll your own printer-driver.
I are Troll
|
|
|
|
|
It is in my own application
I need to catch the printdocument before it outputs to the printer and get an image of it. Effectivly a bitmap.
like printtoimage or something
|
|
|
|
|
Martin Beukes wrote: I need to catch the printdocument before it outputs to the printer and get an image of it.
I doubt that it's possible to "catch" the output of the driver. The PreviewPrintController [^] might help in creating a print-preview. Another alternative might be the DrawToBitmap method, but that would leave you without distributing the data over multiple pages.
I are Troll
|
|
|
|
|
|
hi my name is ian and the organisation i work have recently switched to viopfone telephony system. However this means that we are unable to use the caller id system that we used with our old standard land line system
i have been charged with the task of researching the development of a software package that can retrieve the caller info and look up their number in our database and then and then displays the number on screen
unfortunatly im totally new to this type of system and i need to know how i can intercept the call in the first place to find out the details of the person calling
i have been looking in to tapi but i really don't know understand how it all works
many thanks ian
|
|
|
|