- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 9
- Posts with Upvotes
- 9
- Upvoting Members
- 9
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
- Interests
- Programming, photoshopping, Movies, books, etc.
- PC Specs
- PC: Win 7 64bit on i7 @ 2.66Ghz with 6 Gigs Ram MacBook Pro 2,1.
63 Posted Topics
I've looked around this forum, and the rest of the internet, but my code is not working. Here is the problem: I read XML files that are in en-US culture. The decimal separator is a dot ".". Given the string "123.45", I want to convert the separator from a dot, … | |
Re: Have you tried coding this at all? The algorithm is pretty straight forward if you know a bit of math. I think you should try doing it yourself first and post any problems you might have with the code, not expect someone from here to do your job for you … | |
Re: How are you connecting to the database? Can you post the Connection String? What objects are you using to connect? Odbc? ODP.NET? We need more information in order to help you. | |
Ok so I'm a total noob with VB.NET and I so far I've read about a thousand forums and I've yet to get a straight answer. I've read that VB treats anonymous types differently than C# (the why, beats me). I have a DataTable, and I want to return a … | |
Re: I've used this in the past: [url]http://www.webweaver.nu/html-tips/web-redirection.shtml[/url] | |
Re: Here is a basic explanation of a setup project. http://support.microsoft.com/kb/307353 And here: http://www.codeproject.com/Articles/12548/Visual-Studio-Windows-Application-Setup-Project | |
Re: Info here: http://msdn.microsoft.com/en-us/library/2yd9wwz4(v=vs.71).aspx You define it "square" by giving it the same size on both sides when you declare your array. I whipped this up real quick. There are probably better ways to do it. int N = 3; Random rnd = new Random(); double min = -100.0; double max … | |
Re: More info is needed I think. Be careful with the DateTime format of the queries that you use. If the Regional settings in those servers is different to the one from your Windows XP machine, your queries will most likely use a wrong date/time and fail. I hope this helps. | |
Re: If you're on windows (I assume you are since you said c# and asp) I recommend you use Aptana Studio 3.0. It is a great tool for Web development and not as bloated as Dreamweaver. Also, for PHP your first source of information is [url]http://php.net[/url]. If you've developed in C#, … | |
Re: You have a syntax error in your code. First you declare this: [CODE]$_SESSION['SESS__dept']=$employee['department_name'];//error here, remove one underscore from the SESS__dept[/CODE] But then you use this: [CODE]elseif ($_SESSION['SESS_dept']=="molding")[/CODE] Your SESS_dept has two underscores ('_ _') when you initialize it. Just remove one underscore from the first one. | |
Greetings. In my Console Application, I have a process that connects to a Access Database File. After closing the connection I copy the file to another folder, and delete the original. Lately this is failing a lot. For some reason the File is still being used, even if the connection … | |
Re: Try it on VirtualBox (Oracle's VM Sw.) Cheers. | |
Re: This is indeed one of the best explanations about Delegates that I have seen on-line. Thanks to everyone who's contributed. It has been a subject that I've had difficulty understanding since I first read about them, that is, until now. The way I see it (and I could be wrong) … | |
Re: In the PlayerData.cs you are returning a new instance of Player with the username and password even if the Rows.Count is not 1... This is wrong, you could try to just return null... And then check if the result of VerifyUserInput is null before starting a player session... [CODE] if … | |
Re: I use the following code to connect to an Access 2.0 mdb file and store values in a DataAdapter. It works fine. [CODE] connection = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + path_to_MDB_file";OLE DB Services=-4;"); connection.Open(); String query = "select * from Blah where Blaaah1 = blah2"; OleDbCommand cmdLines = new OleDbCommand(query, connection); … | |
Re: I believe you can use this: [url]http://msdn.microsoft.com/en-us/library/system.windows.forms.application.doevents.aspx[/url] To help you. Basically you run the desired code in the background, using the method [CODE]Application.DoEvents(); [/CODE] Hope it's what you're looking for. | |
Re: I'm guessing you have to update it, I don't have much experience with DataGrid views, but have you tried the doing: [CODE]GridView1.Show();[/CODE] Or maybe: [CODE]GridView1.Update();[/CODE] I might be wrong, maybe someone with more experience can suggest something else. | |
Re: [CODE]printf("%u \n",&argv[i]);[/CODE] This line, you are printing the "Unsigned decimal integer" (%u) for the memory address (&) of all the arguments given ("argv[i]"). This --> &argv[i] is the memory location of the argument 'i' I am unsure if that is the answer you were looking for? | |
Re: [QUOTE=Vaspar;1678625]Hello I am trying to make a bot which will download files and upload on server. I have no idea how to do that (yet) can someone guide me which methods will be used in downloading file and uploading (ftp server) and one more thing is there any size limitation … | |
![]() | Re: You have to add a Setup project in your current solution. In there you can specify the files needed to run your application. More on that here: [url]http://csharpdotnetfreak.blogspot.com/2011/08/create-setup-project-visual-studio.html[/url] |
Re: Read here: [url]http://stackoverflow.com/questions/68283/view-edit-id3-data-for-mp3-files[/url] It's easier if you use a class library for editing ID3 tags of media files. The link above has a few examples. | |
Re: Do you want to write it after the loop has finished? If so, you could do this: 1) Add [CODE]using System.IO;[/CODE] to your Program.cs file 2) Change the code after the loop like this: [CODE]FileStream fs = new FileStream(@"C:\Users\ram\desktop\groceries.txt", FileMode.OpenOrCreate, FileAccess.Write); StreamWriter sw = new StreamWriter(fs); sw.BaseStream.Seek(0, SeekOrigin.End); sw.WriteLine("The total … | |
Re: First, you declared a function called CelsiusTillFarenheit that takes 3 arguments. And in the Main function you call that function with only 1 argument. Then the calculations are wrong. This is the correct way: [CODE]static int CelsiusTillFarenheit(string Text) { double Celsius, Farenheit; Celsius = double.Parse(Text); Farenheit =Math.Round(Celsius / 5.0 * … | |
Re: Try changing this: [CODE]SqlConnection con = new SqlConnection("Data Source=(localhost);Initial Catalog=chenezboutique;Integrated Security=true;");[/CODE] to this: [CODE]SqlConnection con = new SqlConnection("Data Source=localhost;Initial Catalog=chenezboutique;Integrated Security=true;");[/CODE] | |
Re: There is no ONE absolute way to identify a computer using the hardware, as far as I know, it could change if the user decides to upgrade or whatever. I would try to find a registry value, maybe the windows installation ID? Alternatively, you can try using more than one … | |
Re: Will this server be in the same local area network as the client computer? Like, the LAN on a company or at home? If so, [B]one way[/B] to do this is to write a windows service on the server to "watch" a shared folder. That way you don't have to … | |
Re: This might help: [CODE]System.Windows.Forms.Clipboard.Clear();[/CODE] | |
Re: Hi, I was browsing around and found this: [url]http://www.codeguru.com/csharp/.net/net_data/datagrid/article.php/c13041/Add-Edit-and-Delete-in-DataGridView.htm[/url] Maybe it can help you? | |
Greetings. Ok so my problem is that I get a "Currency" formatted value from the database and this value sometimes comes as a whole number (without decimals) and sometimes it doesn't. But, when I output the information as "string" into an XML File, I [B][I]always need to show the 2 … | |
Re: I'm not sure this is the correct board to ask this question. But regardless, you have to know the risks. What I would do is: Setup a new e-mail account. Probably using Google Mail, and set that account up just for your application related questions. That way if it ever … | |
Re: Also, you *might* want to do [CODE]fflush(stdin);[/CODE] right before every single "scanf" that you have. Regards. | |
Re: My guess is you need a loop somewhere... When you say print from 1 to n it either has to be a fixed N or until forever? One way to do this ([B][U]and I may be completely off here[/U][/B]) is to print n+=1 from now until infinity using the computer's … | |
Re: Maybe something like this? Correct me if there are any mistakes ;) [CODE] for (indexOfCurrentCoinToCheck = 0; indexOfCurrentCoinToCheck < 7; indexOfCurrentCoinToCheck++) { if (resultNumbersOfEachCoin[indexOfCurrentCoinToCheck] != 0) Console.WriteLine("You Will need {0} coins of ammount {1}", resultNumbersOfEachCoin[indexOfCurrentCoinToCheck], britishCoinValues[indexOfCurrentCoinToCheck]); }[/CODE] | |
Re: also remember the single inverted commas for the variables in the query: [CODE] $query="update ir312 SET R3_21 = '$tot' WHERE irdnumber='$irdnumber'"; echo $query; mysql_query($query)[/CODE] | |
Re: Need more info... This is not very informative... | |
Re: This will get you started: [url]http://msdn.microsoft.com/en-us/library/system.io.aspx[/url] You can use the BinaryReader class to read chunks of binary data. More info here: [url]http://msdn.microsoft.com/en-us/library/system.io.binaryreader.aspx[/url] @ddanbe you posted while i was responding ;) | |
Re: I have never used Process.Start inside any of my applications before. But this is an interesting read, maybe it can be of use. [url]http://www.dotnetperls.com/process-start[/url] | |
Re: [CODE] mysql_connect('host', $username, $password); @mysql_select_db($database) or die('Unable to select database'); $query = "INSERT INTO new VALUES ('$first','$last','$phone','$mobile','$fax','$email','$web')"; mysql_query($query); if(1 === mysql_affected_rows()){ echo 'insert passed'; $to = "recipient@example.com"; $subject = "Hi!"; $body = "Your data was inserted into the DB correctly!"; if (mail($to, $subject, $body)) { echo("<p>Message successfully sent!</p>"); } else … | |
Re: you are setting the split symbol as ','. since you have no commas in your string, that's why it's not splitting anything. you have to set the split symbol as a ' ', (space) | |
Ok, so after hours and hours of testing and searching online I'm almost convinced that this can't be done, but I'm asking here for help maybe someone can give me any idea as to why this isn't working. I'm doing this query: [CODE]SELECT * FROM( (SELECT t1.PAG5 from table1 t1 … | |
Re: I've tried your code on my office network and it works fine. Are you sure you are entering the correct information? [CODE] SmtpClient smtpClient = new SmtpClient("CLIENTIPADDRESSHERE", 25); NetworkCredential basicCredential = new NetworkCredential("SENDERUSERNAME", "SENDERPASSWORD", "TOUSNET"); MailMessage message = new MailMessage(); MailAddress fromAddress = new MailAddress("FROMEMAILADDRESS"); smtpClient.Host = "MAIL.YOURDOMAIN.COM"; smtpClient.UseDefaultCredentials = … | |
Re: Maybe do [CODE]fflush(stdin);[/CODE] before your scanf function for the "again" char. | |
Re: Post some of the code you've tried. If what you want to accomplish is load only part of the page after it has been loaded already by the browser, this can only be done with AJAX as far as I am aware. | |
Re: You opened an extra key '{' in the if statementat the bottom, see the comment i added in the bottom part of the code. [CODE]void calc_rate(int hourvhcen,int minutevhcen,int hourvhcle,int minutevhcle,int park_timehr,int park_timemin,int park_time_min_round) { // Statements if (minutevhcle < minutevhcen) // calculations to round off the minute portion of the … | |
Re: When you did [CODE]session_start(); /*did you set the variables " $_SESSION['username'], $_SESSION['password'] and $_SESSION['account_level']*/[/CODE]??? That's the error you're getting. those variables inside the $_SESSION array haven't been initialized. Regards. edit: I'm not sure but, shouldn't it be: $_SESSION['username'] = $xusername; $_SESSION['password'] = $xpassword; $_SESSION['account_level'] = $xaccount_level; ? ![]() | |
Re: For the icon of the application, all you need is an ".ico" file. Right click on your project, select "properties" and in the "Application" tab you can set an Icon file. Then, before using your application in any other computer, you have to run a "RELEASE" not a "DEBUG". It … | |
Re: You didnt close the first query [CODE]$query = "SELECT * FROM players WHERE UID='$uid'";//<<<<----- here[/CODE] | |
Re: You could store them in an array, and use the "distinct()" method. I'm not sure if there's a more direct way to do it. Perhaps someone else here might know. | |
Re: use the AddRange method like this: [CODE]namespace WindowsFormsApplication2 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { string[] name = { "tarun", "varun", "john", "rohan", "rahul" }; comboBox1.Items.AddRange(name); } } }[/CODE] |
The End.