|
It's here usual practice. She will post in one forum and do advertise that in all other forums.. Interesting right ?
|
|
|
|
|
N a v a n e e t h wrote: Interesting right
wrong!
|
|
|
|
|
I just wish she'd buy a bloody book.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
heloo.... i want to hide the base class method using new operator.
i tried this code.but it was not working.here base class method is calling.
plz help me soon.
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication23
{
class Program:user
{
public new void print()
{
Console.WriteLine("hello how are you?");
}
static void Main(string[] args)
{
user u = new Program();
u.print();
Console.ReadLine();
}
}
class user
{
public void print()
{
Console.WriteLine("hellohello");
}
}
}
sravani.p
|
|
|
|
|
Hey, the 'new' keyword is to explicitly hide the base class members
But, if you want to use it, you have to call the method from the derived class. In this case you surely need to create a reference of the derived class other than a original base class reference.
Since you have already created the Program object to a user reference, all you need to do is to perform a cast:
(Program)u.print();
regards
Someone was born greatness;
Someone achieved greatness;
Someone let the greatness thrust upon him;
|
|
|
|
|
Try this [^] article.
Hope it helps.
There are 10 kinds of people: those who understand binary and those who don't
|
|
|
|
|
sravani.p wrote: i tried this code.but it was not working.here base class method is calling.
It's working just fine. You have a reference to user , so when you use the print method, the method in the user class is used.
If you want the method in the Program class to be used when you have a Program instance references by a reference to user, you have to use a virtual method instead of using the new modifier.
---
single minded; short sighted; long gone;
|
|
|
|
|
thanks for ur answer,i tried but its not working....
sravani p
|
|
|
|
|
Hi, Is there any way of Disabling System Sounds (during the lifetime of my Application) which we hear when we Show Messageboxes like Critical, Exclamation, Information, Error etc. I dont want all these as long as my App is Running.
Any Thoughts??
Thanks..
|
|
|
|
|
Hi,
I guess you will have to use follwing in your application.
[DllImport("User32.dll", ExactSpelling=true)]
private static extern bool MessageBeep(uint type);
play what ever sound you want to play.
Regards ,
Nishu
|
|
|
|
|
Thanks Nisssshhhhhhuuuu
But I want that there should be no sounds played even when My App shows an Error, Exclamation, Info MessageBox.
|
|
|
|
|
Does anybody know if there are any support for ssh or ssl on the pocket pc's, especially for windows mobile 5 on .net for the ppc?
Luis
|
|
|
|
|
Hi,
I am currently developing a Client Server application which it has to be as secure as possible and i was wondering if it would be a good idea to combine SSL and SSH to send the data over the network. I found a few good libraries to do the SSL and TSL part and it works really good however i am a little concerned about the SSH part.
What do you think?
In case that you think it is a good idea would it be best to send SSH over SSL or to send SSL over SSH.
Thanks
Luis E Tineo S
|
|
|
|
|
How about encrypting the data before sending it ?
|
|
|
|
|
I did so.
Basically my concern is security. I want to be completely sure that the data is safe.
So that is why i would like to know if it is a good idea to combine both ssl and ssh.
Thanks for replying so fast...
Luis
|
|
|
|
|
I don't have much idea on using SSL on windows applications. We ensured the security by implementing encryption to data. Till now no issues happened. So I felt that's secure. SSL also doing the same job, by encrypting data.
|
|
|
|
|
Thanks again for replying,
I think i am so concerned about security because i am newbie to the C# world and this application is my final step to graduate from the university and i want it to be perfect but there is still a lot to learn: SQL management from the server, client Authentification, data display on a website, reading a fingerprint reader from the client and so much more, that i just can't sleep.
So you think that just encrypting the data would be ok?
By the way let me ask this: I want to stop windows from executing any process but one service that i will develop to read the fingerprint reader and validate an user, once the verification process is completed i want to run an application only but then block it again, is there a way to do that?
If you want me i can give you the link of a few good SSL libraries for C# and Visual Basic.
Regards,
Luis
|
|
|
|
|
kingletas wrote: So you think that just encrypting the data would be ok?
I felt it will be ok.
kingletas wrote: I want to stop windows from executing any process but one service that i will develop to read the fingerprint reader and validate an user, once the verification process is completed i want to run an application only but then block it again, is there a way to do that?
Sorry I don't have much idea on this
|
|
|
|
|
I sure appreciate your help and i do thank you again.
And please allow me to ask you two more things:
Are you aware if there is or are any libraries or examples of SSL for the pocket pc? And where could i find information about remote control applications?
I want to write a few applications for my personal use and i would like to validate websites url before accesing them or sending any info.
I don't know if you have heard of it but Comodo has some sort of websites validator to prevent from phishin' and i would like to do something similar for the pocket pc.
Thanks once more for all your help,
Regards,
Luis E Tineo S
|
|
|
|
|
Sorry, My knowledge is 0 in pocket pc's
|
|
|
|
|
How can I reallocate the memory for arrays. In VB I can use ReDim. The same way, is there any equal keyword in C#?
Regards,
Hogan
|
|
|
|
|
string[] a;<br />
int i =10;<br />
a = new string[i];
|
|
|
|
|
Hi,
Thanks to reply.
The statment a=new string[i] will destroy the old values in the variable 'a'. How can I re assign memory without loosing the old memory locations?
Regards,
Hogan
|
|
|
|
|
ReDim Preserve can be achieved in C# using Arry.Copy method.
Such as –
int[] i = new int[5];
i[0] = 2;
int[] temp = new int[10];
Array.Copy(i, temp, Math.Min(i.Length, temp.Length));
i = temp;
-------------------------------------------
I hope this helps .
-Dave.
Dave Traister,
ComponentOne LLC.
www.componentone.com
|
|
|
|
|
Yes it will work. Thanks for the idea . I got another idea that ArrayList class. It is also a good method. right?
Thanks & Regards,
Hogan
|
|
|
|