64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for ttboy04

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 …

Member Avatar for ttboy04
0
105
Member Avatar for TurboCoding

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; …

Member Avatar for TurboCoding
0
166
Member Avatar for TejaDharma

Hi, When i'm click on the web page, the page turn off to balck color. is it possible? Help me..........

Member Avatar for Jayavardhan
0
133
Member Avatar for Mattisc

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 = …

Member Avatar for Mattisc
0
196
Member Avatar for starlight849

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 …

Member Avatar for G_Waddell
0
137
Member Avatar for GDICommander

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, …

Member Avatar for GDICommander
0
108
Member Avatar for Justin81

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 …

Member Avatar for Justin81
0
223
Member Avatar for bilalb1

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 …

Member Avatar for Ancient Dragon
0
553
Member Avatar for crapgarden

[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 …

Member Avatar for Fbody
0
122
Member Avatar for KhairilSyahrin

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 …

Member Avatar for vb5prgrmr
0
80
Member Avatar for Victor C.

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 …

Member Avatar for NormR1
0
176
Member Avatar for arch_mah

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 …

Member Avatar for nick.crane
0
319
Member Avatar for crapgarden

[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 …

Member Avatar for crapgarden
0
177
Member Avatar for rrush

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 …

Member Avatar for AndreRet
0
123
Member Avatar for Nivass

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. …

Member Avatar for Nivass
0
3K
Member Avatar for hg_fs2002

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 …

Member Avatar for hg_fs2002
0
99
Member Avatar for aladar04

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 …

Member Avatar for aladar04
0
180
Member Avatar for KhairilSyahrin

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 …

Member Avatar for AndreRet
0
98
Member Avatar for malashukla

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 …

0
74
Member Avatar for Zinderin

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 …

Member Avatar for Zinderin
0
123
Member Avatar for Agni

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 …

Member Avatar for mrnutty
0
653
Member Avatar for WargRider

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 …

Member Avatar for NormR1
0
104
Member Avatar for phaedrusGhost

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'] …

Member Avatar for phaedrusGhost
0
134
Member Avatar for jugosoft

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 …

Member Avatar for ÜnLoCo
0
2K
Member Avatar for seemant gupta
Member Avatar for theprogrammer19
0
127
Member Avatar for Jackie91

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 …

Member Avatar for Jackie91
0
76
Member Avatar for sadhawan

Hi guys i have java scripts as follows His acquaintance with Elizabeth was very trifling.&quot;</p>\n<P class=&quot;Sx0x1&quot;>&quot;To be sure, Lizzy,&quot; said her aunt, &quot;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 …

Member Avatar for sadhawan
0
154
Member Avatar for soumya_mjmder

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> …

Member Avatar for NormR1
0
4K
Member Avatar for jrock2004

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 …

Member Avatar for jrock2004
0
117
Member Avatar for DarkBerzerkâ„¢

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)

Member Avatar for peter_budo
-4
156
Member Avatar for Jesi523

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 …

Member Avatar for Lusiphur
0
128
Member Avatar for GrahamAddy

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 …

Member Avatar for GrahamAddy
0
1K
Member Avatar for fenerista

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 …

Member Avatar for fenerista
0
120
Member Avatar for wolfeater017

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

Member Avatar for vegaseat
0
138
Member Avatar for LRNPHP

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 …

Member Avatar for LRNPHP
0
722
Member Avatar for cacoyle

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 | …

Member Avatar for cacoyle
0
178
Member Avatar for judithSampathwa

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 …

Member Avatar for nick.crane
0
279
Member Avatar for Vox30z

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 …

Member Avatar for pritesh2010
0
432
Member Avatar for danturn

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 …

0
44
Member Avatar for Duki

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 …

Member Avatar for Duki
0
218
Member Avatar for DoEds

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 …

Member Avatar for DoEds
0
126
Member Avatar for AngelicOne

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?

Member Avatar for AngelicOne
0
1K
Member Avatar for MARKAND911

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.

Member Avatar for Geekitygeek
0
4K
Member Avatar for Chaster

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 …

Member Avatar for mostafaelshafei
0
466
Member Avatar for cristi08

Why the checkbox is not working? it echoing "interest Array" [code] $_POST['interest'] ; foreach($_POST as $field => $Value) { echo "$field,$Value<br>"; }[/code]

Member Avatar for rajarajan2017
0
91
Member Avatar for 0xCMD

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 …

Member Avatar for Geekitygeek
0
283
Member Avatar for GrimR7529

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 …

Member Avatar for GrimR7529
0
90
Member Avatar for Nemuksis

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 …

Member Avatar for Nemuksis
0
169
Member Avatar for Anatake

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 …

Member Avatar for jonsca
0
226
Member Avatar for starlight849

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 …

Member Avatar for GeekByChoiCe
0
294

The End.