|
leppie wrote:
I must say my public members allways looks nice
are we still talking C# code? And just how visible are your public members? ...and what happens if someone tries to overload your public members? ...and what about your private members? The mind boggles at the possibilities of double entendres. Hmmmm a new topic for the conversation board....program terminology turned into a double entendre. (however entendre is spelled....)
_____________________________________________
I have a tendancy to where my mind on my sleeve I have a habit of losing my shirt...
|
|
|
|
|
I ussually have a member name that is Capitalised for a public member, and the same name in lowercase for the private member .
"There are no stupid question's, just stupid people."
|
|
|
|
|
leppie wrote:
I ussually have a member name that is Capitalised for a public member, and the same name in lowercase for the private member .
By those development standards you are CLS compliant!
I tend to lean towards consistant private and public member names with proper casing, but again once you get into private members it leans towards personal taste. In our company it also gets driven by internal standards ... consistancy = easy support. As to proper case everywhere I don't mind doing proper case everywhere, but I also type 60 words/per/minute which usually makes the cap typing irrelavent to me.
My mom made me take typing in high school .... little did she know how it would actually help my carreer now!!! The only thing I remember about the class was the day the teacher had the class do races against her. She kept eliminating people each round. I was one of only two boys in the class, and I was THE ONE to end up going head-to-head against her in the end. She won the race, BTW, with 62 wpm against my 60 wpm; I had two typing errors in the paragraph that counted against me.
_____________________________________________
I have a tendancy to where my mind on my sleeve I have a habit of losing my shirt...
|
|
|
|
|
your doing the wise thing....but i am actually caught in no mans land...actually the thing is that i have to work in team and i have to sort out a convention within .NET that we all can apply...if you ask me if i let everyone apply pascal for controls it would be very hard for anyone of us to judge what is control and what is a variable as you said and as i know my team....it would be hard to read the code!
so what i have thought now is to use hungarian notation for controls and pascal and camel for everything else in .NET what do you think?
|
|
|
|
|
I want to do word programming.I added the word.olb file using the option add ref. Now all the interfaces,classes mathods for doing word programming are available.
Questions is i want description of methods which is not available in the IDE? How can i get this.
/| )' _ _ _ /_| / _ _ _/
/ |//_) (// ( |/)//)(- ( /
|
|
|
|
|
Nisar Ahmed wrote:
Questions is i want description of methods which is not available in the IDE?
let them appear with appropriate casting.
If you search this forum with "Word" (and google with "Word.Application"), you should fall into interesting stuff.
How low can you go ? (enculage MS)
|
|
|
|
|
how to creat a directory at a perticuler path?
plz tell code for that i will be very thank full.
r00d0034@yahoo.com
|
|
|
|
|
Directory.CreateDirectory(path);
|
|
|
|
|
Using the System.IO namespace it is as simple as the static Directory methods
<br />
...<br />
Directory.CreateDirectory("c:\\myNewDirectory");<br />
...<br />
if you need a reference to the directory you can create a new DirectoryInfo instance.
<br />
...<br />
DirectoryInfo myDir = new DirectoryInfo("c:\\myNewDirectory");<br />
...<br />
chris
|
|
|
|
|
oops forgot something. To create the directory on the drive using the DirectoryInfo class you need to add the an extra line of code so the second example should be.
<br />
...<br />
DirectoryInfo myDir = new DirectoryInfo("c:\\myNewDir");<br />
myDir.Create();<br />
chris
|
|
|
|
|
Please teach people to use @"c:\myNewDir". Let's get rid of that nasty thing!
How low can you go ? (enculage MS)
|
|
|
|
|
Amen! I always use string literals when I have a backslash. It seems stupid to do a double backslash.
Norm Almond: I seen some GUI's in my life but WTF is this mess
Leppie: I made an app for my sister and she wouldnt use it till it was colorful enough
Norm:good point leppie, from that statement I can only deduce that this GUI must be aimed at children
Leppie:My sister is 25
-Norm on the MailMagic GUI
|
|
|
|
|
David Stone wrote:
I always use string literals when I have a backslash.
I try to as well, but there are times when you want a tab, line feed, new line, or quote embedded in the string. The only clean way to put those in a string is to use the \t, \r, \n, and \" escape sequences (not sure of the real name ).
James
Sig code stolen from David Wulff
|
|
|
|
|
Well yeah, but those are string format modifiers...or whatever they're called. I'm cool with those. But when it's a path, I use @.
Norm Almond: I seen some GUI's in my life but WTF is this mess
Leppie: I made an app for my sister and she wouldnt use it till it was colorful enough
Norm:good point leppie, from that statement I can only deduce that this GUI must be aimed at children
Leppie:My sister is 25
-Norm on the MailMagic GUI
|
|
|
|
|
__Stephane Rodriguez__ wrote:
Please teach people to use @"c:\myNewDir". Let's get rid of that nasty thing!
"c:/myNewDir"
"There are no stupid question's, just stupid people."
|
|
|
|
|
leppie, you're using UNIX?
Norm Almond: I seen some GUI's in my life but WTF is this mess
Leppie: I made an app for my sister and she wouldnt use it till it was colorful enough
Norm:good point leppie, from that statement I can only deduce that this GUI must be aimed at children
Leppie:My sister is 25
-Norm on the MailMagic GUI
|
|
|
|
|
Nope, just Windows I guess MS realized how stupid \'s are for directories and decided to lets us use / as well. Try it!
@"c:\work" == "c:\\work" == "c:/work"
"There are no stupid question's, just stupid people."
|
|
|
|
|
i have created a service that listen on some port.
i want.when i send some command to that perticuler port.
then it will execute a setup file using
Process.start() command.
but when i send a command.It will execute Process.star()
line but process window did not appear.
what is the problem ?
is it possible that a process executed into a service?
the answer i got.
Right click on the service property. Show the LogOn Tab, and check the "allow service to interact with desktop".
thanks for reply.
but sir i right click the service(project) property.but i could not find LogOn Tab so that i could not check "allow service to interact with desktop".
how to do that?
any body could tell?
r00d0034@yahoo.com
|
|
|
|
|
Hey Folks,
I have a few old (very handy) programs that I have written using perl and python that I want to port to C# just for the sake of doing it.
In one of the instances, I need to enumorate across a directory and get the the total size of the files in the directory. Using a simple "foreach" loop like:
<br />
long total = 0;<br />
...<br />
...<br />
foreach(FileInfo f in directory.GetFiles())<br />
{<br />
total += f.Lenght;<br />
}<br />
...<br />
...<br />
And I have to say that this is SLOW. When recursing medium to large directories it can take as much as 10x the time my perl and python
programs take.
My guess is that it is due to fact that the call to the Length property is not so light-weight as one might think. So, the call inside the loop is killing me.
Has anybody else ran into this hiccup?
And, does anybody have any suggestions about how to design around this?
Any help would be appreciated
Many Thanks
|
|
|
|
|
I'm sending an xml response to a VB app from a C# HttpHandler. I'm setting Content-Type: to text/xml however the VB app is using objHTTPRequest.responseXML.xml to pick up the xml.
HttpHandler snip
<br />
context.Response.ContentType = "text/XML";<br />
XmlWriter xw = new XmlTextWriter(context.Response.OutputStream, System.Text.Encoding.UTF8);<br />
xw.WriteRaw(xmlString);<br />
VB app snip
<br />
strResponseXML = objHTTPRequest.responseXML.xml 'This gets nothing!<br />
strResponseText = objHTTPRequest.responseText 'This receives the response<br />
Anyone know why the objHTTPRequest.responseXML.xml would not pick up the xml rather the objHTTPRequest.responseText picks it up??? What can I do to fix this???
Thanks,
ed
Every time I walk into a singles bar I can hear Mom's wise words: "Don't pick that up, you don't know where it's been!"
|
|
|
|
|
VB forum I guess. There is no responseXML stuff in .NET
By the way, make sure to send "text/xml" instead of "text/XML". You never know how touchy can the tools be.
How low can you go ? (enculage MS)
|
|
|
|
|
HI!
I made a little Programmer boards link list:
http://www.c-sharpcorner.com/forum/default.asp
http://www.vbforums.com/
http://forums.devshed.com/index.php?s=
http://www.codeproject.com/script/comments/forums.asp?forumid=1649
http://www.gotdotnet.com/community/messageboard/Home.aspx?
http://www.cprogramming.com/cboard/
http://www.codeguru.com/forum/index.php?s=
http://www.coderforums.net/
http://pirate.planetarion.com/forum/
http://www.tek-tips.com/index.cfm
http://www.mrunix.de/forums/
http://linuxnewbie.org/forum/
http://www.techimo.com/forum/
http://www.sitepointforums.com
http://visualbasicforum.com/
http://www.developerfusion.com/forums/
Please add you favorite board to the list
THX!!!
gicio
|
|
|
|
|
|
;P;P
|
|
|
|
|
Hi!
I check the MSDN Library but I can't find any infos about: how to connect to and FTP...
I need also infos how get folders names from the ftp....
Have any one experience which class can I use to connect to an FTP??
THX!!!
|
|
|
|