4,439 Posted Topics

Member Avatar for gsingh2011

Besides what has been said. C# is more strict that C++. e.g.: in C# you MUST have a boolean or expression that evaluates to a boolean after an [B]if[/B] or [B]while [/B]statement, in C++ you can also use integers like 0 or 1 for that.

Member Avatar for ddanbe
0
841
Member Avatar for floodemo

Please read the following : [url]http://www.daniweb.com/forums/announcement8-3.html[/url]

Member Avatar for Alibeg
0
150
Member Avatar for nikola.rosic

nelis, think about it. What would happen if you put an invalidate statement in a Paint event handler? Yes! It would raise a Paint event, which would call Invalidate which would...

Member Avatar for nelis
0
221
Member Avatar for Clawsy

Perhaps you can do something with [url]http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.aspx[/url]

Member Avatar for Clawsy
0
78
Member Avatar for Black Magic

As a starter this is surely something to give it a try. John Sharp is a good author. You will not find any info about XNA in it.

Member Avatar for hieuuk
0
138
Member Avatar for MrVile

str[i] * multiplier += total; You are multiplying on the left side of the assignment operator +=. Note that an assignment operator is not the same thing as an equal sign in math. This is allowed in a computerlanguage : x = x +1; You cannot do that in math. …

Member Avatar for MrVile
0
267
Member Avatar for clutchkiller

#2 will print out more than a million a+space i guess... clutchkiller: When you have a file with a million 'a' characters in it and you want to see it (most of the time on a screen) then there is a problem. A screen has it's fysical limitations. Luckily there …

Member Avatar for clutchkiller
0
108
Member Avatar for ambarisha.kn
Member Avatar for clutchkiller
Member Avatar for TheBeast32
0
134
Member Avatar for mr_scooby

Several problems here. What do you mean by st.GetMark()? Is it a method of the Student class? I don't see it. You have defined a property which does the same thing. Use it like this: To set it : Student.Mark=5; To get it : Console.WriteLine(Student.Mark); //will print 5 Is your …

Member Avatar for ddanbe
0
162
Member Avatar for manpreet tiwana

Nice try manpreet! Your first question implies you know the answer already. Your second question imposes you don't have read [url]http://www.daniweb.com/forums/announcement8-2.html[/url] Do a search here on [B]factorial [/B]and you will get an answer.

Member Avatar for Rashakil Fol
0
84
Member Avatar for bemo55

Put your return statement in your function, not outside. Or what is that curly brace doing before it?

Member Avatar for death_oclock
0
98
Member Avatar for ramyking

Take a simple expression like (1+1) and see what happens when you debug it.

Member Avatar for ddanbe
0
1K
Member Avatar for topgun129

Your first question are actually 3 questions. Just give us a break, please! What if I would ask you: Tell me something about hydrogen, helium, lithium, beryllium, boron, carbon...(I can go on you know) Please use a simple question about the problem you have. So we can formulate an answer …

Member Avatar for ruchi18
1
133
Member Avatar for bharanidharanit

If I had an easy to sold application developed why would I tell you about it? As an example : I can download almost 10000 applications on my iPhone for free or for a few dollars, look them up, perhaps you get some ideas.

Member Avatar for ddanbe
0
48
Member Avatar for shazzy99

The first newline moves you to the beginning of a new line. The second newline moves you to the beginning of yet another new line. That way you get an empty line between two "string" lines. If you know how a typewriter works you will get the idea.

Member Avatar for ddanbe
0
4K
Member Avatar for wendas

There is a System.DayOfWeek enumeration. There is a DateTime structure with a property DayOfWeek which returns this enumeration. So why would you feel the need to make your own? .Net is HUGE, perhaps you did not know it existed? Join the club, I had the same experience already...

Member Avatar for nelis
0
104
Member Avatar for giovany
Re: vb?

You learn programming, well by programming, by doing it. And it is not because VISUAL BASIC carries the word basic, that it is. In fact, in the long run I believe it will be rather confusing. I know, been there done that... Choose one well structured language and stick to …

Member Avatar for giovany
0
87
Member Avatar for ddanbe

I have a class derived from a TableLayoutPanel and if I have more than 3 rows or columns I don't show them directly, I add(I let the object add) scrollbars so I can reach the other cells. I have code that works perfectly,but... [CODE=csharp]public void CalculateSize() { const int cMaxCol …

Member Avatar for LizR
0
114
Member Avatar for BobLewiston

To start with the first issue : [QUOTE](Am I not correct that a handle is simply an address?)[/QUOTE] A handle is as far as I know an address to an address or if you like a pointer to a pointer.

Member Avatar for Rashakil Fol
0
112
Member Avatar for darylesha

You must also take into account the valence bond of the different elements ! For example : a you can write a simple formule like CH2 but this can never exist as an molecule on it's own. A carbon atom has 4 "hooks" so CH4 can exist as a molecule. …

Member Avatar for diafol
0
118
Member Avatar for shazzy99

An ArrayList is also resizable, still usable but a bit "out of date". If I where you follow the advise off [B]scru [/B]and [B]Rashakil Fol[/B].

Member Avatar for Rashakil Fol
0
178
Member Avatar for dileeppaul

What is your definition of better? Is an orange better than a banana? Are you better than me? Worser is sometimes better!

Member Avatar for ddanbe
0
178
Member Avatar for skatamatic

So if.. [QUOTE]V = A * S - 2x and x = (W - V) / 2 then its safe to say V = A * S - ((W - V) / 2)[/QUOTE] Strange... When I do this I get V = A * S - (W-V)

Member Avatar for skatamatic
0
162
Member Avatar for harish_s

>> "/incremental : Enables incremental compilation [[B][COLOR="Red"]obsolete[/COLOR][/B]]." What do you think that means? The guys at MS probably have there reasons to make it obsolete. See also what LizR already said. So why bother? A compexity less to worry about I should say! More time to spend on programming!

Member Avatar for ddanbe
0
196
Member Avatar for TobbeK

I assume you are using Visual Studio 2005 or 2008. Make a new Console Application, name it as you want but don't call it Product. Then add a new class [B]Product [/B]to your solution. Keep what you have in your Main method, it is good!(well I would do it different, …

Member Avatar for ddanbe
0
163
Member Avatar for Coyboss

Come on guys calm down! There is more than enough shooting in the world! Be friends! Make love! [QUOTE]if ( hoursWorkedInWeek <= 0.0 ) System.out.println( "stop" );[/QUOTE] At that moment hoursWorkedInWeek is equal to 0.0. You told it to be 0.0 before entering the while loop. I believe you have …

Member Avatar for Coyboss
0
274
Member Avatar for serkan sendur

You do not need to free local variables when the function ends. Where would they be anyway? Who or what could still access them?

Member Avatar for Narue
0
104
Member Avatar for shers

Suggestion : although it is tempting to use a for-loop I think you better use a while-loop here. And from 0 to 14 is 15...

Member Avatar for LizR
0
185
Member Avatar for shazzy99

What do you mean by boxes? Any nonprintable character is most often printed as a "box" character. I suspect linefeed and carriage return characters here.(ASCII 10 and 13, ASCII 65 is the 'A' character)

Member Avatar for Ramy Mahrous
0
191
Member Avatar for MrGreggles

If ou are used to unix like filepermissions they may be a bit hard to find. Check out the System.Security.Permissions.FileIOPermission class.

Member Avatar for ddanbe
0
54
Member Avatar for FallenPaladin

--> public object userChoice; [B]declaration of an object[/B] --> B chosenClass = new B(); --> userChoice<B> = chosenClass; [B]use of object without instantiation[/B]

Member Avatar for FallenPaladin
0
116
Member Avatar for Unrealx_

1) I infer you mean the filenames. You can do something like [B]foreach (String file in openFileDialog1.FileNames) [/B] FileNames being a property of he openfiledialog. 2)First set the Minimum and Maximum properties of the progressbar. Then increment the Value property(beginning at 1) or call the PerformStep method of the progessbar.

Member Avatar for LizR
0
80
Member Avatar for 72246

arctan(1)=pi/4 wich means : the arc wich has 1 as tan is equal to pi/4 radians. SEries expansion gives : arctan(1) = 1-1/3+1/5-1/7.... so pi/4 = 1-1/3+1/5-1/7.... 1-1/3+1/5-1/7....can be easily computed.

Member Avatar for StuXYZ
0
254
Member Avatar for shazzy99

Tried it with [B]saveFileDialog1.Filter = "doc files (*.txt)|*.txt";[/B] without problems.

Member Avatar for shazzy99
0
100
Member Avatar for sivak
Member Avatar for creativehacker

Some hints perhaps on how I would start to handle this problem: Use the properties SelectedCells, SelectedColumns, SelectedRows and SelectionMode. Make also use of the event MultiSelectChanged. Example : Select the checkbox column, change one checkbox in it and change all the others in your code accordingly. I have not …

Member Avatar for BlackSun
0
157
Member Avatar for vandenzergen
Member Avatar for gumber

[url]http://www.amazon.com/Operating-System-Concepts-Abraham-Silberschatz/dp/0470128720/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1231963638&sr=8-1[/url]

Member Avatar for ddanbe
0
88
Member Avatar for kaczmar86

You want random numbers in the range from 0 to 9. Which is 10 possible outcomes. The array in the for loops goes from 0 to 8, which is 9 places. If that is what you want, OK with me. But I like to mention it anyway.

Member Avatar for ddanbe
0
161
Member Avatar for alfred210989

Explosion is a rather notorious word these days... Could you please elaborate on your meanings and intentions? Oh, Salem, you forgot something...post him your avatar...

Member Avatar for alfred210989
0
1K
Member Avatar for igok
Member Avatar for abhi_marichi

I don't know if it's any help but it won't hurt : [url]http://www.amazon.com/Expert-NET-2-0-IL-Assembler/dp/1590596463/ref=wl_it_dp?ie=UTF8&coliid=I2QC16YY6G77L6&colid=L6872TYA346B[/url] Most compilers under Visual Studio compile to this intermediate language, be it Java, C++, C or C# or other.

Member Avatar for death_oclock
0
140
Member Avatar for complete

Phew! You are mixing a few things here. You can have : [CODE=csharp]public class SomeClass { public int MyInt; }[/CODE] In your main method you can now say : SomeClass MyClass = new SomeClass(); //instantiation Now use(example) MyClass.MyInt = 42; You can also have : [CODE=csharp]public static class SomeClass2 { …

Member Avatar for ddanbe
0
137
Member Avatar for vampke

[QUOTE=vamke]If I try to use My.Computer[/QUOTE] My.Computer? Where is the code where you try to use My.Computer? Which error message do you get? This is the same as telling me: "My car won't start, start it."

Member Avatar for waynespangler
0
144
Member Avatar for david7

Well thank you! I like programming as a hobby and you have given me a nice project to work on! Let you know when it's finished but it certainly won't be in two days. Deadlines, man how I hated those deadlines when I was still programming professionally...

Member Avatar for Freaky_Chris
0
271
Member Avatar for massivefermion

What is an OP? I infer from the rest of your question it might be an OS(Operating System)? Am I right? What is your native language?(Don't be affraid to tell, mine isn't english either.)

Member Avatar for Salem
0
99
Member Avatar for TasostGreat

How it is actually done I dunno. But if I would write a routine that does it I would continuously subtract 2 from b until zero or until b<2 and return that value.

Member Avatar for TasostGreat
0
110
Member Avatar for shazzy99
Member Avatar for ddanbe
0
123
Member Avatar for laconstantine

REading this will help [url]http://www.c-sharpcorner.com/UploadFile/mahesh/dll12222005064058AM/dll.aspx[/url]

Member Avatar for LizR
0
166

The End.