|
In your blog, you have mentioned about Xml Serialisation to overcome this problem. Now, I have another doubt. Lets consider two classes,
class Foo : AbstractBase
{
public override string Name
{
get{ //something };
}
}
class Bar : AbstractBase
{
public override string Name
{
get{ //something };
}
}
public abstract AbstractBase
{
string Name
{
get;
}
}
In such a case if a serialise either foo / bar under the type AbstractBase, i am not able to deserialise it to AbstractBase. Why ??
P.S. Sorry about the indentation.
|
|
|
|
|
I don't think you can... though i could be mistaken
My current favourite word is: Nipple!
-SK Genius
Game Programming articles start - here[ ^]-
|
|
|
|
|
How is it possible to use System.Drawing.Printing; to ge ta list of prinetrs on a remote machine?
Thanks
|
|
|
|
|
System.Drawing.Printing.PrinterSettings.InstalledPrinters gets all printers installed on a machine.
|
|
|
|
|
Hi,
Please note that I would like to get the printers on a REMOTE machine as specified in the first post.
Any thooughts please?
|
|
|
|
|
To use a printer from a remote machine you must install it in Control Panel and after that you CAN get it with System.Drawing.Printing.PrinterSettings.InstalledPrinters. Or do you want to browse for remote printer from your program and install them from there? That would be a non-trivial task to say the least.
|
|
|
|
|
Please note: I only want to get the names of the printers which are on remote machines.
Thanks
|
|
|
|
|
Here's[^] a simple piece of VBScript that does what you want. It shouldn't be hard for you to convert this into C#.
|
|
|
|
|
Hello,
This vb script seems to be using WMI which I am trying to avoid. The reason I would like to avoid it is because I am already trying to use WMI and I get access denied on 64 bit machines and not the 32 bit machines.
Any ideas please?
Thanks
|
|
|
|
|
I'm not sure but maybe here[^] answers your question.
|
|
|
|
|
Hello,
I have already checked this page previously but it does not get the list of printers on a remote machine.
Thanks
|
|
|
|
|
You can use System.Print.PrintServer to query for printers on a remote machine.
Here[^] the msdn page with documentation and samples.
|
|
|
|
|
Hi,
This only shows printers on the 32 bit and NOT the 64 bit machines.
Any suggestions please?
|
|
|
|
|
I never tested it directly on 64 bit machines, and the documentation doesn't seem to say anything about this.
I've no clues, I'm sorry.
|
|
|
|
|
Hi
i have a control,i'm adding a treeview to a control and then populating the treeview using a method called populatTreeviw()..
i set up a timer to call the populatTreeviw() method every 1 min,in order to refresh the trwwview,i get the following error when the method is called,please help
Controls created on one thread cannot be parented to a control on a different thread.
|
|
|
|
|
using delegates will help.
you should define a delegate and invoke it to get the required result.
there are a lot of articles on how to use delegates here in CP.
regards
|
|
|
|
|
where can i find good books about using RDLC with C#?
|
|
|
|
|
You should read about Sql Server Reporting Services.
|
|
|
|
|
|
Hey everybody
In visual studio, in c++, a user can define different post-build command for Release and Debug.
In C# it seems that in the project properties, in the "Build Events", the user can place a Post-Build event command line, but it is for both Debug and Release!
So, is there a way to make a different Post-Build for debug and a different Post-Build for release (like in C++) ???
Thanks a lot!
|
|
|
|
|
Do conditionals work?
Something like:
if $(ConfigurationName)==Release ...do some stuff...
if $(ConfigurationName)==Debug ...do some stuff...
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks
I was looking for:
#if DEBUG
//code
#endif
|
|
|
|
|
Cool.
That has nothing to do with post build
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Yeah, well... I got it a little mixed up...
oh well, at least its working
|
|
|
|
|
hi,
I have drawn a cube using opengl with tao framework in c#.net.I want to draw a container(truck) and some small packages(boxes) of different colors pertaining to a particular customer.Plz help me out.
regards
aurosikha
|
|
|
|