64,152 Solved Topics
Remove Filter ![]() | |
How do I create a method header that takes a string as an argument and returns the characters in the argument as a set. Please only reply if you know the answer. Thanks. [CODE]public class Food { private TreeSet<String> myList = new TreeSet<String>(); public Food() { super(); myList = new … | |
I have used IT++ for half a year, which is a C++ liabrary. Recently, I got a problem when I try to write the HEADER file for a class, with a member which is another class object. Here is part of my code: [CODE] class A { private: fixvec fv; … | |
Hi, When i'm click on the web page, the page turn off to balck color. is it possible? Help me.......... | |
Hello, I am trying to send files from one folder on the C drive to another using a simple C# Win forms. I have created this but unable to get it working. Can anyone help? [CODE] private void butSort1_Click(object sender, EventArgs e) { string sourceFile = @"C:\Test\test.txt"; string destinationFile = … | |
Hi, I am using vb.net with visual studio 2008. I have the need to have a user select a directory on a network drive to bring up a folder with a very extensive list of files. The file names within this directory are what I'm concerned with and I will … | |
Hello! I have problems with modal MFC windows over 3dsMax. I'm popping a MFC modal window over 3dsMax (I'm programming a plugin for 3dsMax, if you mind), so I can't click on any 3dsMax window button, because the modal window is here. The modal window, by clicking on a button, … | |
All, I've recently installed Apache version 2.2, MySql version 5.1, and PHP version 5.2.13 and am using Windows as my OS. I've gotten PHP to work on the Apache server, and MySql is working properly on its own. However, when I try to connect to a mysql database, I get … | |
hi hope anyone who reads this post is doing well/will be doing well soon enough :) ... i have a small problem... i have a program in c/c++ (i am using just a few functions of c++) which creates a log of files after doing some search(its not relavent to … | |
[COLOR="Red"]3.1 - ARRAY arguments, char vs int.[/COLOR] It seems you pass a char OR an int to a substring of an array. Does it matter which one? ex: [CODE] char charValue = 5; int intValue = 5; string awesomeArray[9] = {"truck", "car", "boat", "table", "ocean", "cat", "board", "finicky"}; //Both of … | |
Can anyone teach me how to calculate a mouse click? I need to do a data insertion into MSFlexGrid. The flow is like this: 1:the data will read a text file and input all the data into column 0 2: when user wants to input again, it will be put … | |
Good evening, I am having a little trouble with the outcome of my bucket list assignment. Everything seems to be working just fine, but the final outcome isn't up to par. When you enter numbers from 1-30 or 61-99 it goes into its proper place, however numbers enter in the … | |
Hello All, I have stored a Image in my sql server database and when i am tring to retrive the data the following error is coming.. (Conversion from string " 8901.jpg " to type 'Boolean' is not valid.) In the database and also in the \\Debug\member file that .jpeg files … | |
[COLOR="Red"]5.8 - Function Declaration vs Array Declaration SYNTAX CLARIFICATION[/COLOR] this declares an array: string word2("Over"); string word3(3, '!'); how are these not being mistaken for functions that pass default parameters? Is it because the parameters placed above are not = to anything or being defined as a type? Are the … | |
Simple little exercise using the MonthView Date Picker. I'm trying to loop through print all dates from dateclicked to end of month. I'm getting stuck on the comparison value to define the end of the month. Keep getting the "argument not optional error" or and infinite loop. [code] Private Sub … | |
drawn an rectangle on the image using picture box. quires 1. when tried to zoom image the drawn rectangles needs to be placed on the drawn area. 2. Also draw another rectangle (in zoomed mode). 3. when i zoomed out the rectangle needs to resized. How can i achieve this. … | |
I want to write a function to add nodes to the end of my linked list. My problem is that I don't know how I can have a pointer that always points to the first node of my linked list.Forexample if I write [CODE] Gnode*p = new Gnode; first->link=p;[/CODE] when … | |
Let's say, user input on prompt is 1 so JavaScript will create one textfield. We'll test Assess() if its working. Type "1" on textField and click "Assess" button. No alert message appears. Please help. Thanks in advance. [CODE]<html> <head> <title>JavaScript</title> <style type="text/css"> font{ color:#663300; font-variant:small-caps; font-family:calibri; font-size:15; } </style> <script … | |
I am trying to incorporate MSFlexgrid to read all the data from a text file but i am currently having a problem with a line Below is the coding Private Sub Command1_Click() MSFlexGrid1.Cols = kiraCols + 1 Open App.Path & "\master_data.txt" For Input As #1 ' linecount = 1 Do … | |
hi i m trying a code to execute in order to generate a xml file at runtime. it execute well. but the xml file gives a error as The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the … | |
C# noob. Ok, here's what I'm trying to do ... I have a dbUtilities class I've made. And its my desire to have methods in it like "FillListBoxFromDB" .... I want to pass the listBox that will be the target, and the sql query command. I will have multiple places … | |
Hi, I have always been a little confused about inline/non-inline virtual functions and got a little more confused when I read this in a book: According to the book the code below will fail to link on many systems(it gave no errors on mine, g++ 4.4.1). The explanation is "Even … | |
Hey, well I have this problem, I am making a game in Java and it is getting really far. If anyone saw my last problem, that is resolved and I finished my networking code. Here is the problem, to start a new game window in my code, one would write … | |
Hi all, In a secured php document I have a file uploader that was only for PDFs but they want xlsx, xls, ,docx, txt, rtf and ppt file extensions. To filter the files coming in I have this: [code] $allowedExtensions = array("txt","csv","htm","html","xml", "css","doc","xls","rtf","ppt","pdf","xlsx","docx"); foreach ($_FILES as $file) { if ($file['tmp_name'] … | |
I'm writting program in VB 2010, but I have a problem. I want to draw a temporary line on PictureBox control MouseMove event. That works fine but deleting of that line doesn't work. I tried to draw the white line on the same coordinates (PictureBox's background is white), but won't … | |
someone help me pls...The 'Add' works fine..but when i try to open it,my full name didn't show completely , such as 'Jack Sparrow' = 'Jack'.. help me pls. #include<fstream> #include<iostream> #include<string> using namespace std; void main() { string name; int age; int options =0; char filename[20]; while (options!=3) { cout … | |
Hi guys i have java scripts as follows His acquaintance with Elizabeth was very trifling."</p>\n<P class="Sx0x1">"To be sure, Lizzy," said her aunt, "he is not so handsome as Wickham; or, rather, he has not Wickham's countenance, for his features are perfectly good. But how came you to tell me that … | |
Hi guys..i have a XML: <?xml version="1.0" ?> <EmployeeDetails> <Employee EmployeeName="Johnny" EmployeeId="209007" CompanyName="ABC Inc." CompanyAddress="Bangalore" ContactNo="0000000" /> <Employee EmployeeName="JohnnyDepp" EmployeeId="78452" CompanyName="ABC Inc." CompanyAddress="Bangalore" ContactNo="0000000" /> <Employee EmployeeName="JohnnyStechhino" EmployeeId="45678" CompanyName="ABC Inc." CompanyAddress="Bangalore" ContactNo="0000000" /> <Employee EmployeeName="JohnDoe" EmployeeId="45981" CompanyName="ABC Inc." CompanyAddress="Bangalore" ContactNo="0000000" /> <Employee EmployeeName="Soumyadeep" EmployeeId="12345" CompanyName="ABC Inc." CompanyAddress="Bangalore" ContactNo="0000000" /> </EmployeeDetails> … | |
Ok I have a page that has a list of teachers on it that has their email address. What I want to do is when the teacher's email link is clicked a lightbox type form comes up. So would it best to code what my form is in a separate … | |
This Script add small im.. i guess i dont have to explain all know the back to top icon :D Script Contain 3 Files: I)JS - Back To Top Code.txt (the code u gonna add in each page) II)scrolltopcontrol.js (the javascript file) III) up.png (the image that u c) | |
I have a dropdown that is bound to a database. Depending on the value that is selected information shows in a gridview below. Also depending on the selected value if a user clicks on a link they get redirected to another page. That is all working except when the page … | |
The solution to my problem is probably very simple, but I am having great problems solving it. I have a [B]MainWindow[/B] Class calling a [B]Dialog[/B]. I send the contents of a list from a loop to the Dialog lineEdit for a user to accept or change as required and return … | |
there is a string like [CODE] 0123456789 string a = "25 + 5.6 - (54 - (-61))" a[0] = 2 a[1] = 5 2 = 3 = + 4 = 5 = 5 6 = . 7 = 6 8 = 9 = - 10 = 11 = ( 12 … | |
I've heard of the working file in python before and was just wondering what it was and where I can find it in python | |
Hi everyone. Could someone assist me with a problem I have. I want to display images in a folder.(image/). I have my MySQL table with my images location.(images/test.jpg) etc. I also have a legend_id where I specified id's (id_1, id_2, id_3) This is linked to cars. If I search according … | |
basically i have a table which has different branch names recorded in the same column as other data. I cannot change how the data comes in so i have to find a way of extracting and matching data from this column. eg +---------+---------------------+------+------------+--------+ | Company | Branch | Tml | … | |
Hey the code I have for validating the tel no is not working for the string value (567) 789-5677 [CODE] String rePhoneNumber = @"\([1-9]\d{3}\)\s?\d{3}\-\d{4}$"; Regex re = new Regex(rePhoneNumber); if (re.IsMatch(textBox1.Text)) MessageBox.Show("valid phone number"); else MessageBox.Show("Phone Number Must Be Entered As: (555) 555-1234"); [/CODE] Every time the else part is … | |
Hello all! I am trying to add to items to a combobox by using the "enter" key. It does work when I add the first item, but if I manually clear the box and add another items it does not get added to the list. (1) I click in the … | |
Hey guys, I've got 2 collections (one datatable and one list of an object) i need to compare them and get a collection of the matches and a collection of the items that dont match (from both collections) i've got the matched collection sorted: [CODE] var yourNumbers = from DataRow … | |
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 … | |
Arg... Guys can you correct my code? 'coz it gives me a wrong output if i input "3 , 1, 2 or 1, 3, 2 or 3, 2 ,1" [CODE]import javax.swing.*; public class OutputGreatest { public static void main(String[] args) { int uInput1,uInput2,uInput3; int maxValue; uInput1 = Integer.parseInt(JOptionPane.showInputDialog(null,"<1>Input a number … | |
How to bind data in listview? I usually use [CODE]gridview.Datasource=ds.Tables[0];[/CODE] for my datagridview. How can I do this in listview? | |
I have an MDI form "mdi1". And another form "form1" On mdi1 I have a label "lbl1" I want to change text of lbl1 when a button on form1 is clicked. form1 is a child form of mdi1. How can i do this. | |
Hi all, I've been searching for some time without any success. Here's the problem: I have an SWT GUI, which contains some UI elements placed onto a Composite. I would like to dynamically add a new Composite to the old one, when a certain event is triggered. Fine everything works … | |
Why the checkbox is not working? it echoing "interest Array" [code] $_POST['interest'] ; foreach($_POST as $field => $Value) { echo "$field,$Value<br>"; }[/code] ![]() | |
Greetings to all, I want to use the "[B]System.IO.File.Delete(PATH);[/B]" function to delete a file that is in my Project whenever I run the app. The problem is that in order for this to work I have to specify a full path [B]"C:\Users\SomeUser\Desktop\SomeAppFolder\Content\Models\Model1.X"[/B] The problem is that this path is different … | |
Hi, I am having trouble removing a line from a text file. When I click on the button in order to remove the line it gives me an error that access to the file is not possible. Now I assume that the file is in use during me wanting to … | |
Hi, i looking to find what would be the best cms + modules to host a kind of freeware site like the following [URL="http://www.androidfreeware.org/"]http://www.androidfreeware.org/[/URL] where users can upload apps, search for apps, detailed list of apps, category etc etc. I know literally any cms can be used, i mostly want … | |
I have a (I thought:confused:) relatively simple converter project I am writing with Visual Studio 2010 C++ Windows Form App. So to be forthwith I am completely stumped as to how I would get the user input from the Amount box (1234.12 for example) and the Rate box (1.04108 for … | |
Hi guys and gals, I appreciate any help in advance. I have two textbox controls and I want to accept input for textbox 1 and textbox 2. However, when user enters text into textbox 1 I would like textbox 2 to mirror the same text as it is typed. I … |
The End.