1,443 Posted Topics

Member Avatar for hmartinez

You will probably find there is a missing semi-colon in your code right before this code is included

Member Avatar for hmartinez
0
502
Member Avatar for ahoysailor

Can you convert that wchar_t* to an actual String^ first? ...and since you're adding the \r\n, can you just use WriteLine() on the line before?

Member Avatar for thines01
0
227
Member Avatar for Irina77

That's a problem with static libraries. Does the provider have an updated version? Can you use an older compiler -- at least enough to get that to link into a DLL that exposes its methods?

Member Avatar for Irina77
0
616
Member Avatar for AquaNut

I can't really tell if you want to strip off leading digits or PadLeft to ensure a particular length or if you just need something to tell the difference between 6, 7, 8 and 9 digit padded numbers.

Member Avatar for AquaNut
0
212
Member Avatar for galhajaj

You don't need to access the hidden variable for MyVar. Just use the public one from inside or outside of your class. If you need to restrict access to it, either make it private or protected. Don't worry about it.

Member Avatar for ddanbe
0
217
Member Avatar for sathya88

What version of VC++? If you are using an early version (like 6), look up: CInternetSession, CFtpConnection, CInternetFile If you are using a current version (2005, 2008, 2010), look up: WebClient or FtpWebRequest

Member Avatar for sathya88
0
154
Member Avatar for jasonrefan

Yes, have your program read lines from the file. When the line it reads from the file is empty, start a new record. This usually means you're storing the records in a collection of some type, so when the new one is encountered, it does not destroy the old one.

Member Avatar for DavidKroukamp
0
129
Member Avatar for daydie
Member Avatar for PainOfTruth

You are missing your curly braces that define the function GetFirstNumber() as well as all of the curly braces in the methods of your class.

Member Avatar for sharathg.satya
0
417
Member Avatar for Mike Askew

The easiest way I've found is to use the "System.Xml.Linq" namespace so you can use XDocument.Load() on your file or page. Even if you don't use any actual Linq, the methods in that namespace seem to be easier to use than others.

Member Avatar for Mike Askew
0
160
Member Avatar for Jimakoss

Spend a month with any modern language. After a while, one will stick out as being more intuitive than others. I use C#, but came to that through Basic, Pascal, C, 80x86, VBA, C++, Perl and Ruby.

Member Avatar for WolfShield
0
315
Member Avatar for kje
Member Avatar for vimit

Do you have a lot of embedded images to make the EXE that big? If not, can you post some code?

Member Avatar for vimit
0
239
Member Avatar for jayawant.sawant
Member Avatar for gennesis

Are you manually logging in to your gmail account between runs of the program? If so, you could be creating a cache of your credentials that the server is using by default. Do you have a yahoo account? Can you use the yahoo server to send mail instead of the …

Member Avatar for gennesis
0
189
Member Avatar for triumphost
Member Avatar for triumphost
0
291
Member Avatar for SaimaAsif
Member Avatar for Aphrite

What happens if you put the grade and the name together in the same string, then sort?

Member Avatar for BobS0327
0
186
Member Avatar for N.M.VIVEK
Re: OOPS

I think a traffic light program would be a good challenge -- especially if it has turning arrows.

Member Avatar for thines01
0
125
Member Avatar for ahoysailor

Can you use a [URL="http://msdn.microsoft.com/en-us/library/system.io.streamwriter(v=VS.71).aspx"]StreamWriter[/URL]? Please read the statement about Unicode at that link.

Member Avatar for ahoysailor
0
264
Member Avatar for Nerd12
Member Avatar for SasseMan
-1
62
Member Avatar for sandeepau

Have you ever considered [URL="http://www.perl.com/pub/1999/10/DBI.html"]using DBI[/URL] instead of sqlplus?

Member Avatar for thines01
0
211
Member Avatar for sachintha81
Member Avatar for dashawk

select distinct Or use a union and make it distict. Can you post your full query?

Member Avatar for Reverend Jim
0
264
Member Avatar for moone009

I would put the observations in a class then feed the constructor of the class an IDataReader. The constructor would then parse the fields of the database into the variables in the class -- keeping your "loader" really minimal. If this is the only program that will ever use that …

Member Avatar for moone009
0
148
Member Avatar for Ziggy713
Member Avatar for Johan__

Where is the rest of your program -- the stuff that comes before the word "class"?

Member Avatar for ReshmaRajan
0
163
Member Avatar for daydie

Does it throw an Exception? If so, wrap it in a try/catch block [CODE] try { //reach for the element } catch(Exception exc) //or the specific error being thrown { //take other action. } [/CODE] You could also do a scan of the page before you try to read its …

Member Avatar for thines01
0
125
Member Avatar for bhagawatshinde

Have you looked at the resulting string after it is concatenated? It may be worse than you think. Also, you should not init-and-embed your connection inside your command.

Member Avatar for thines01
0
219
Member Avatar for blackhat416

[url]http://www.winsocketdotnetworkprogramming.com/clientserversocketnetworkcommunication8b.html[/url]

Member Avatar for skatamatic
0
629
Member Avatar for bhagawatshinde

Does it always do this? Does it give the error at a specific line of code? Does it ONLY give the error when it's getting the data from the database?

Member Avatar for bhagawatshinde
0
613
Member Avatar for six_sic6

That doesn't seem like it would be very efficient. What are you going to do with them after that.

Member Avatar for six_sic6
0
192
Member Avatar for kolibrizas

Are you writing a chess game or are you trying to add this engine into an already existing chess game? If it is a "library", you could add a reference to it from your project by right-clicking (in the solution explorer) References=>Add References -- then browse to that exe and …

Member Avatar for thines01
0
177
Member Avatar for agrzesiak

Load it into a Vector (or array of Strings) and let the position be the line number.

Member Avatar for thines01
0
174
Member Avatar for jmt0
Member Avatar for dr_iton

From this point, the easiest way would be to create a new WinForms project and then copy over all of the functions except for Main(). Set up pairs of textboxes on the form (left and right) Have the first pair be the first conversion where you type in your DOB …

Member Avatar for dr_iton
0
163
Member Avatar for firebird102085

How about: [CODE] ex=(sum+count); [/CODE] ? Also the value 25.67 has a fractional part and an integer does not. If you want the value to keep the .67, you will need to make the count a double (or other type of floating point number). The warning you got means the …

Member Avatar for MandrewP
0
4K
Member Avatar for 47pirates

You can pass it to the other class either through a constructor or method call in the second class or you can make it public in the original class.

Member Avatar for 47pirates
0
144
Member Avatar for SBA-CDeCinko

If you are using Linq; ... [CODE]string strExtension = Request.ServerVariables["SERVER_NAME"].Split('.').Last();[/CODE]

Member Avatar for thines01
0
78
Member Avatar for Suzie999

Do you want ALL of the source in a string? Is there any criteria on what is kept or ignored?

Member Avatar for thines01
0
149
Member Avatar for Undeclared

You will need to know the ID (name) of your CheckBox. I called mine "cb1". [CODE] private void button1_Click(object sender, EventArgs e) { CheckBox cb = (CheckBox)dataGridView1.Controls["cb1"]; if (cb.Checked) { MessageBox.Show("Checked"); } else { MessageBox.Show("NOT Checked"); } } [/CODE]

Member Avatar for Undeclared
0
334
Member Avatar for jumboora
Member Avatar for mikeshadow

Have you done a [URL="http://www.daniweb.com/search.php?q=prime+number"]search for the phrase prime number[/URL] on this site? You can find a multitude of examples in multiple languages.

Member Avatar for mikeshadow
0
506
Member Avatar for techlawsam

What do you mean? That's exactly what happens in order. 1) An initial value is set 2) The framework checks to see if the condition in the middle has been reached 3) Action is taken 4) take action on the counter (in this case -- increment) 5) Is the condition …

Member Avatar for anthonyjpv
0
150
Member Avatar for Lillylionhert

What do you mean "incremented"? Are you wanting to set up a counter and then increment the counter in a loop and append or insert it into a string inside some brackets? have you looked up sprintf() ?

Member Avatar for Lillylionhert
0
132
Member Avatar for Youg
Member Avatar for a.muqeet khan

Are you redirecting the content out to a file or did you want to create an output file in code and write data to it?

Member Avatar for thines01
-1
387
Member Avatar for DarthPJB
Member Avatar for gerchi152
Member Avatar for zachattack05

Can you test the contents first to make sure you're not going to get an Exception? If you're using Linq, can you set your "where" clause to only get data that exists in the master list?

Member Avatar for thines01
0
85

The End.