|
Life was great - I loved C++.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Life was good, with C++, with bit more control as well.
By the way, it was a great gesture shown by thanking all, and its rare too.
Regards,
Adeel
Do rate the reply, if it helps or even if it doesnot, because it helps the members to know, what solved the issue. Thanks.
|
|
|
|
|
C++ and MFC. works great, but I don't like managed C++, this looks awful. One of the lovely things of C+= are the wizard templates, which are much better than for C#. I switched to C# mainly because it supports .NET, which is good and bad. Good because there are so many functions, bad because it is very complicated and takes a lot of time to learn.
C# is a lovely language in may respects, but I don't like the way they treat arrays and strings. And I miss the convenience of the preprocessor.
Rudolf Heijink
|
|
|
|
|
There was no life whatsoever before C#. It was stone age.
PS: Don't forget to ask this same question again in ten years time, with whatever
the most recent big language will be called at that time.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Hey,
I totally agree with you Luc, in ten years programming will be so easy that i will become a guru of it!!!
With all due respect to everyone, before C# i believe things were a little harder to do, programmingly speaking...
I once tried to learn C++ on my own and probably because of the lack of info i had back then it was really hard to do, so much that i could not even create my own classes!!!
But life is great now thanks to both !!!!
Luis E Tineo S
|
|
|
|
|
hello every one... plzz.. help me .. actually i want 2 send emails automatically at a particular time how can i do this ..plzz..help me...
thanks 2 all..
|
|
|
|
|
Use a service (windows or web) with a timer. When the timer reaches the particular time needed send the emails by using the System.Net.Mail.MailMessage class.
I am fighting against the Universe...
Reference-Rick Cook
|
|
|
|
|
but how can i do ..plz..send me code brother......if u have or give me any sugession..
thanks 2 all..
|
|
|
|
|
I have used this approach in a project of mine . I created a windows service and by default this will give you 2 event handlers : OnStart & OnStop. In the OnStart you could do something like this :
protected override void OnStart(string[] args)
{
Alarm.Elapsed += new ElapsedEventHandler(OnElapsedTime);
Alarm.Interval = SETINTERVAL;
Alarm.Enabled = true;
}
The "alarm" object is an instance of System.Timers.Timer class. In the OnElapsedTime event you can check to see if the time has come to send the mails and call the appropiate method. As for the MailMessage class and how to use it I suggest using Google for the answer.
I am fighting against the Universe...
Reference-Rick Cook
|
|
|
|
|
plzz tell me how can i create windows service.. even i m doing on webapplication ..is it workin in web application..wht u given code 4 me..plzz tell me..brother..
thanks 2 all..
|
|
|
|
|
use system.net.mail namespace
MailAddress SendFrom = new MailAddress(txtFromAddr.Text);
SmtpClient objSmtpClient = new SmtpClient();
objSmtpClient.Host = "mail.techgene.net";
objSmtpClient.Credentials = new System.Net.NetworkCredential("uname", "pwd");
MailAddress SendTo = new MailAddress(_mailId);
MailMessage objMailMessage = new MailMessage(SendFrom, SendTo);
objMailMessage.Subject = Convert.ToString(txtSubject.Text);
objMailMessage.Body = Convert.ToString(webBrowser1.DocumentText);
objMailMessage.IsBodyHtml = true;
objSmtpClient.Send(objMailMessage);
G. Satish
|
|
|
|
|
I want to select the file and i want to get the path of the file like(browsefile dialog,savefiledialog,openfiledialog)i can`t use the above dialogs because i just
want to select the file and getting path.
(ex:openfiledialog ->browser window we have option "open"->i don`t need this option
i want like "select" option (and i want to select the file not the folder)
how can i do this in c#.. help me
madhu
|
|
|
|
|
madhugurukul wrote: can`t use the above dialogs because i just
want to select the file and getting path.
Say what ? Why can't you use those ? They do exactly what you want, select the file and tell you the path.
Just use the SelectedFile property, or whatever it is. Just because there's an open method, doesn't mean you need to use it ( I never have )
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
i cant use those property because in that dialog (ie openfile or savefile..) when it show it is going
to have the option like "open" or "save" but i dont want to open the file or save the file ok
i just want to select the file
suppose if i use openfiledialog then user will clik "open" option user will feel that the file is
opened but i dont want to open the file
i just asking is there any info about fileselect dialog
-- modified at 4:27 Thursday 15th November, 2007
|
|
|
|
|
FileInfo o = new FileInfo("c:\\file.dat");
// o.Name
// o.FullName
// o.Extension
// o.Extension
// o.DirectoryName
Does this help ??
Wisdom is often meant as the ability and desire to make choices that can gain approval in a long-term examination by many people.
|
|
|
|
|
This is bizarre. How will your file dialog differ ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Does any one know how to do this? I want to set object y equal to object x. I only know the name of x because it's name is contained in someString.
object x = new object();
string someString = "x"; // string set to object name
//problem is here:
object y = (the object whose name is contained in the variable someString i.e. "x")
In case you are wondering why I need such a thing.... In my app someString is actually looked up in a table. It's a long story, as usual.
|
|
|
|
|
maybe...
same type object can just matching...
under follow...
object x = new object();
object y = x;
r u wanna that? or the other means?
.. knodark
|
|
|
|
|
REflection is what you need, if you have the name of the variable as a string and need to get the variable.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Can you point me to a keyword or something I plug into google to get more specific info?
Thanks
|
|
|
|
|
Reflection, reflection, reflection...
cycle through the objects and compare the object names against your string.
|
|
|
|
|
Thanks for your read...
Well... Somethimes define propery in user class
for example...
public sealed myClass
{
private int _myValue;
public int MyValue
{
get { return this._myValue; }
set { this.myValue = value; }
}
}
Well... can i acccess arraylist in user class ??
for example...
public sealed myClass
{
private ArrayList _arMyList;
public ArrayList arMyList
{
}
}
and how can i define get & set property ?
just same general rules ???
.. knodark
|
|
|
|
|
Did you try ? Yes, it works the same way. Note though, because an arraylist is a reference property, if you define a get, someone can do myClass.myArray.Clear() and it's cleared in your class instance.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
How to create multilingual word documents programetically using c#.net?
|
|
|
|
|
hi all,
I need to monitor a folder (also for the subdirectories) for changes or renaming. i am trying to use the File system watcher control and has set the path of the directory.
i have written code in the rename event of filesystem watcher
public void OnRenameEvent(Object sender, RenamedEventArgs e)
{
MessageBox.Show(e.OldName);
}
i have set the EnableRaisingEvents as true. but still when i am trying to rename the folder, the event is not getting triggered.
What am i missing here?
Thanks in advance.
Regards
Anuradha
|
|
|
|