588 Posted Topics
Re: Use [URL="http://www.java2s.com/Code/Cpp/Language/ifelseifelsestatementinaction.htm"]this [/URL] to get started. And yes, please post your half of the code. | |
Thought this would get a lot of response... Is DaniWeb comprised of more men or women? | |
Re: [URL="http://www.lmgtfy.com/?q=C%2B%2B+comments"]Try this[/URL] | |
| |
Re: And sure enough - [URL="http://www.daniweb.com/forums/thread6542.html"]click me[/URL] :) | |
Re: Have a look [URL="http://www.daniweb.com/code/snippet217193.html"]here[/URL]. That should get you started. Let me know if you have any questions. | |
Re: [quote]i am putting all of this in caps because usually that helps people understand...[/quote] LOL (i put that in caps, to help you better understand) | |
Hey everyone, I have an application I'm writing (that a few of you have given me a good bit of help on) that will be used to check out assets and check them back in. It's working pretty great for items that are checked out *today* but I need a … | |
Re: I just tried calling, and the phone number isn't working anyways so no worries! :) | |
Hey everyone, I'm having an issue where my application will keep Excel running even after it closes. I think I'm closing everything properly, but is there a way to check on close? Here's part of my code: [code=c#] ////////////// Part of ExcelWriter class public void CreateSheet(Laptop lptp, string file, string … | |
Hey everyone, I have a warning message in my app saying "Unreachable code detected" - Here's a snippet: [code=c#] //Files are sometimes not closed quickly enough - these loop variables allow for the system to wait and try again const int MAX_TRIES = 3; int loop = 0; ... public … | |
Re: Have a look at [URL="http://www.daniweb.com/forums/thread296413.html"]this thread[/URL]. That should help. ............ | |
Re: Try something along these lines: [code=c#] this.Hide(); Form_Login form_login = new Form_Login(); form_login.Owner = this; form_login.Show(); [/code] | |
How can I specify which sheet I want to write to by name? For example, I want to specify that the sheet I should be modifying should be labeled "212". Also, perhaps a more challenging question. How can I ensure that the sheets I create are always in alphabetical order? … | |
Hey everyone, For logging purposes, I want to pass an entire row of my DB to a file. Is there an easy way to store a row of items into an array or something similar that I could pass to a function for parsing? e.g., array = SELECT * FROM … | |
Hey everyone, I have an excel file I'm trying to work with. I can open it, write to it, and save it fine. But now I'm trying to work with adding sheets, and modifying the names of those sheets. For some reason though, my app keeps locking my excel files. … | |
Hey everyone, Does anyone know how to specify which sheet you're going to be modifying in an exel worksheet? For example, if I have an Excel file that has 5 sheets, and I want to modify (4,7) on sheet 3, how would I do that? Here's what I have so … | |
Hey everyone, I have a label that gets data from a database and uses that as the .Text field. I want to compare this .Text field with an integer value, but I can't convert the text. The value I'm trying to convert to integer is "25,000". Here's what I've tried: … | |
Hey everyone, I'm not sure where I should be posting this - if a mod finds a more appropriate form, feel free to move it. I'm trying to figure out how to not only require .Net 4.0 with my installation package, but in the case 4.0 isn't installed already have … | |
Re: Does the combo box contain data from your database? In other words, did you manually put the selections in your combo box or are they from the same database? | |
Hey everyone, I've attached a screenshot of what I'm experiencing. I've selected the fields I want to view in my DataGridView several times, but (seemingly with no pattern) my application will reset the DataGridView to show every field in my database. Attached is a screenshot of what fields I want, … | |
What am I missing here: [code=c#]if (textBox_End_Miles.Text != "" && Convert.ToInt32(textBox_End_Miles.Text) > Convert.ToInt32(label_Start_Miles1.Text))[/code] I keep getting a runtime error any time I modify the textbox. | |
Hey Everyone, I'm trying to have a form autosize when a user clicks on a Link Label. When the Link Label is clicked, I want the form to expand slightly, and show a tab control that I've created. I can't figure out how to use the this.autosize feature correctly for … | |
Hey guys, I have some overloaded functions that I want to get out of my main form.cs - is there an easy way to do this? I know in C++ you can just #include somefile.h and whatnot, but I can't find a way to do this using C#? Basically, all … | |
Hey guys, Is there any way to call the click event of a linklabel? E.g., I have a form that should call linkLabel_refresh_LinkClicked when it closes. Is that possible? Thanks | |
Hey guys, I have a splash screen I'm loading here: [code=c#] private void main_Form_Load(object sender, EventArgs e) { //Load Splash Screen this.Hide(); Form_Splash form_Splash = new Form_Splash(); form_Splash.Owner = this; form_Splash.Show(); System.Threading.Thread.Sleep(3000); form_Splash.progressBar_splash.Value = 10; form_Splash.label_Process.Text = "Checking Authentication..."; System.Threading.Thread.Sleep(2000); // Create the context for the principal object. PrincipalContext ctx … | |
I've spent the last couple of days researching how to connect to a database server and modify the data in that server. I was able to find a lot of information on how to Read from a database, but I found very little material to assist with Writing to a … | |
Hey Guys, I'm connecting to an SQL server and updating some fields. This works: [code=c#]cmd = new SqlCommand("UPDATE Laptops SET Checkout_Date = '" + form_CheckOut.checkout + "' WHERE name='pen-laptop1'", conn); cmd.ExecuteNonQuery(); [/code] But this one doesn't: [code=c#] cmd = new SqlCommand("UPDATE Laptops SET " + " isCheckedOut = 0" + … | |
I've noticed a lot of complaints about the new layout of DaniWeb. Even I bickered when I started coming back recently. I just wanted to say that I'm starting to really like the new layout and features. Specifically I like how speedy the page loads are, the floating menus at … ![]() | |
Hey guys, I just came back to ask a question after a month or so of not being here. It took me some time to find the "New Post" button at the bottom of the page - honestly, I almost gave up and went to a different site. Could be … | |
I have a datagrid showing my items - I want to modify a field in the database when the user clicks a button. So if row 3 is selected, I want to modify "SomeField" in Row3 to True. Is there an easy way to accomplish that? | |
Hey Guys, I have a tabpage on my form, and I want to populate it according to which fields are set in a database. For example, I want tab#1 to list database fields of all items that have a particular field set to True. I want tab#2 to list the … | |
I may be overlooking something here. I can't find a way to skip to page 2,3,4,etc. of threads I'm posting in until scrolling to the bottom. Would it be a bad thing to have the page links at both the top and bottom of the thread you're posting in? | |
Hey Guys, Here's my code - for some reason, the message boxes aren't showing when I run the application. However, it shows up fine when I click the button on the form. Any idea why this would happen? Thanks. [CODE=c#]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using … | |
Hey Guys, I'm creating an application that will require specific privileges. Users will eventually be add/removed from this group; I was wondering if there's a way I can tie in an Active Directory group to the software? Something that would let me say "if you're part of this group you … | |
One feature I love about other user-help forums is the ability to mark a specific post as the answer to the thread, and then have that post displayed directly under the original post. Yahoo, spiceworks, and MSDN(i think) sites use this feature a lot, and it makes finding solutions to … | |
Re: boiling, tar layers SAVED shrivelled sailor children, ruthlessly. | |
Hey everyone, I'm using C# ASP.NET and am trying to bind a field in my SQL database to a label. I have a combo box working OK with my database right now, and I want the label to change when the combo box changes. Could someone give me a hand? … | |
Hey guys, I'm trying to run this code [code=c++] // Copyright (C) 2001-2003 // William E. Kempf // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include <boost/thread/thread.hpp> #include <iostream> void helloworld() { std::cout << "Hello World!" << std::endl; } … | |
Re: What are you stuck on? It looks like you've given up for the most part - I don't see a function definition for trans.left() or trans.down(). Also, where are you cin >> statements to bring in the data? | |
Hey guys, i have this project that, when i compile, 11 of the header files cannot be opened. I have no clue why - i've never seen this type of error. The project is much to large to copy/paste here, but does anyone have an idea of what would cause … | |
Re: Your array for month/day/year is too small - should be dzim[3] don't you think? Also, I'm a little confused - why are you asking for a birth date and then doing a random date later in the program? | |
Re: Try putting a WHILE{} inside your ELSE{} - Maybe this will solve your problem? Something along the lines of [code=c++] if (...) { .... } else { while (a != Enter || ENTER || enter) { .... cout << "type enter to exit loop" << endl ; cin >> a … | |
Hey Guys, I have a header file I downloaded for an application (actually about 20 header files). Most of them can be opened fine, but I get errors on a couple that say: [QUOTE]fatal error C1083: Cannot open include file: 'Transport.h': No such file or directory[/QUOTE] I've checked, and the … | |
Does anyone know how to add custom .dll and .h files to projects in Visual C++ 2008? | |
Re: [quote=Narue;153832]>So you can't judge all teachers on the bases of one idot I do recall saying that there were exceptions, but in my experience, the majority of teachers only teach because they're not good enough to actually write code for a living.[/quote] my c++ prof was the team leader for … | |
Hi everyone, In this page: [url]http://www.pentree.com/contact/list[/url] The coloring for our logo is off slightly when viewed in FireFox. However, the image looks like it matches in IE. Does anyone know why? |
The End.