199,114 Archived Topics
Remove Filter ![]() | |
Hello there.....i just learnt how to use the the oleDb commands to insert into the a database i created from vb.net,but the problem is.....i cannot insert anythin else than OleDbType.VarChar or i dunno how to insert anything else this is my code......i need help to insert the value of my … | |
How can i set screen height based on resolution ? and i have a gridview in my page.when screen height is 768 page size of gridview is 7. screen height is 864 page size of gridview is 10. screen height is 960 page size of gridview is 11. screen height … | |
Hi, I've been implementing my own array class, and I've finally started to use it. I do have one question, [CODE=c++] Array<int> ary1(3);ary1(0)=2;ary1(1)=4;ary1(2)=7; //just an array Array<int> ary2(3);ary2(0)=1;ary2(1)=2;ary2(2)=6; //just an array cout << ary1; cout << ary2; Array<int> ary3 = ary1+ary2; cout << ary3; //everything till this point works //is … | |
I have a background that has the hover capability, but I want to get rid of the hover and make it one color. I know a little bit about this, but not enough to fool around with it too much. Can anyone help me? Thanks! | |
I have written a browser in java but it is only able to display saved web pages on my computer or html files created by me. It is not able to display a page when i type any URL in the address bar. Please help me Here is the code … | |
Hi, Lets assume my preorder traversal gives me a unique tree.How do I get the tree from the preorder traversal? Any help is appreciated | |
Hi everyone, I got a small problem with my JList with MULTIPLE INTERVAL SELECTION. When i click on a item it adds the price to the total and when i ctrl+click another item it again adds the price to the total Then problem is when i deselect one of the … | |
Hi all, I have a html file, i need to extract name , address and phone no. from it. now name is in <span class="name"></span> add is in <span class="list_address"></span> phone is in <span style="display:none" ID="phoneVal11"></span> I have used following code for getting name,add and phone: [code] <?php function get_name($file){ … | |
Hello I was wandering if anyone knows any good hardware programming tutorials, or books in c++ I'm not a c++ expert, but i feel very comfortable with the language, and read Sam's teach yourself c++ in 24 hours. What i basically want to do, is interresting stuff like, controlling an … | |
Hi. I am using windows, and NetBeans version 6.1 I create a JSP project: and then I create an index.jsp in web folder and then I created a LoginAuthentication class in a package named connection. BUT I dont know why when I click the singin button of the index.jsp, an … | |
Okay. I'm a php newbie. I have a form where the user enters their name. I then on the next form I want it to access the database and add 1 to the row named 'number' that matches the persons name that they previously entered. If the name does not … | |
I have a problem in Java script when inputting data in html table via selecting from combo box.So any one can solve my problem,please send me code in Java script for restrict repeated data when the period of input. Thank u | |
[B]TEXT file csvSTOCKS.TXT contains the following:[/B] Stock 1,200,300,200,200 Stock 2,200,300,200,200 Stock 3,200,300,200,200 Stock 4,200,300,200,200 Stock 5,200,300,200,200 [B]I'm attempting to read each line in the text file and put it in the array of strings lines()[/B] [code=vb] Dim sr As StreamReader = New StreamReader("csvSTOCKS.TXT") Dim lines() As String Do While (sr.Peek … | |
H! plz solve a problem..............! See I want to take continuous four input from the user, out of which three are character type and one is of int type. So my problem actually is that, it accepts only three input i.e. 2 char and one int & for remaining char … | |
Hii, C++ is new for me. I have two problem A and B , I need solution of A in B and B in A . I made a pointer in A to copy solution of B but when I am doing same for B to A , it is … | |
Hi fellows, How can I set a value of any type in VARIANT const pointer? I am tried my best but vain. I am facing compile time error. Here is sample code [CODE]VARIANT *v=NULL; v->bstrVal = "Video.Bin"; another try VARIANT *pValue; //BSTR *fileName; const char* pName; pName = "Video.bin"; pValue … | |
take a look on image this is image u can find in every daniweb member's profile now i want the code to create this image can anybody have. thank in advance | |
I have to write a program that will read a file that lists the scores for two teams. 1st 2nd 3rd 4th Visitors 17 18 21 20 Final Score: 76 Home 21 22 24 16 Final Score: 83 Input file will look like: 17 18 21 20 21 22 24 … | |
hi 2 all.... i have a problem with my databind.it always view the wrong data. e.g. := webform1 --view customer details-- when i want to view customer details no1, all my text boxes always shows the other customer details..why is that??plzzzzz help... | |
![]() | How do I pass an arrayList to a function? |
I've got 5 arrays each with one number in them, but in order to sort them using the insertion method, I need to combine them into a single array. How do I do this? This is the last part of my program and can't figure it out! | |
[COLOR="Green"]Hello all, I'm new to the forum and also to python :D. Anyway I have been enjoying it quite a bit and wanted to start into something a bit more technical. So I though sockets would be a good start. I found a great sight , but the first script … | |
This is the header file provided by my instructor. [code] // // unsortedlist.h // #ifndef UNSORTED_LIST_H #define UNSORTED_LIST_H struct UnsortedListNode // Description of list node { char ch; // Stores one character input from file UnsortedListNode* nextPtr; // Stores address of next node }; class UnsortedList // Linked list implementation … | |
Hi there, How would I go about setting a date/time to 0? Basically I want the time to be 00:00:00 so that when I use the addseconds function of say 120 seconds it reads 00:02:00 Any help would be much appreciated. | |
hello!! i am a new programmer!! i started with turbo c 4.5. just installed borland Turbo c++. the used same codes as 4.5 but got problem with output screen. i cant see the programs output screen after the program ends!! can anybody tell me how to active it? | |
This is what it is supposed to do. If this helps. This file should read the records from the Graduate file first, in sequential order as the “View Student” button is pressed. When the program reaches the end of the Graduate Students records, it should modify the JFrame to display … | |
Hello i am a bit new in C++. i started to take C++ 4 days ago hehe and honestly i love it. now im trying to do is a 3x3 determinant and it is giving me a small problem i tried to find this. 1 2 3 4 5 6 … | |
Hello again, I'm having a problem and don't know what is causing it. I'm copying from a book. double checked and can't figure out why I'd be getting this error (below in quotes) Link to live view of what is being accomplished (trying to be accomplished) [URL="http://skywardz.com/address_book/addEntry.php"]http://skywardz.com/address_book/addEntry.php[/URL] LINE 87 : … | |
I'm trying to write a program that will simply move a file from "FILENAME.TXT" to "CURRENTDATE-CURRENTTIME-FILENAME.txt" and am having problems. The error I'm getting is cannot convert from char to char[] Here is my simple code: [code] private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { time_t now; char the_date[12]; the_date[0] = … | |
Hi I'm doing a templated matrix class, and I'd like to be able to pass a function pointer to a function that uses the rows. [CODE=c++] template<typename T> T sum(Array<T> &a){ // a simple function that return the sum of an Array T res=0; for(int i=0;i<a.length();i++) res+=a(i); return res; } … | |
I want to subclass My App and I hit the wall. If I don't subclass it works! WHAT IS WRONG HERE???? [ICODE] import wx ID_NEW = 10 ID_OPEN = 11 ID_CLOSE = 12 ID_SAVE = 13 ID_SAVE_AS = 14 ID_PAGE_SETUP = 15 ID_PRINT_PREVIEW = 16 ID_PRINT = 17 ID_EXIT = … | |
Hello, this is my XML: [CODE] <OPTIONS> <ROW NUM="1"> <ROW_NUM>1</ROW_NUM> <INVOICE_NUMBER>000001</INVOICE_NUMBER> <ID>144795</ID> <CUS_UK>20544</CUS_UK> <DESC_LONG>KELEME</DESC_LONG> </ROW> <ROW NUM="2"> <ROW_NUM>1</ROW_NUM> <INVOICE_NUMBER>000001</INVOICE_NUMBER> <ID>69449</ID> <CUS_UK>15249</CUS_UK> <DESC_LONG>PETRIMEX</DESC_LONG> </ROW> <ROW NUM="3"> <ROW_NUM>1</ROW_NUM> <INVOICE_NUMBER>000001</INVOICE_NUMBER> <ID>4125</ID> <CUS_UK>15249</CUS_UK> <DESC_LONG>PETRIMEX</DESC_LONG> </ROW> <ROW NUM="4"> <ROW_NUM>3</ROW_NUM> <INVOICE_NUMBER>000002</INVOICE_NUMBER> <ID>4152</ID> <CUS_UK>15249</CUS_UK> <DESC_LONG>PETRIMEX</DESC_LONG> </ROW> <ROW NUM="5"> <ROW_NUM>3</ROW_NUM> <INVOICE_NUMBER>000002</INVOICE_NUMBER> <ID>69486</ID> <CUS_UK>15249</CUS_UK> <DESC_LONG>PETRIMEX</DESC_LONG> </ROW> </OPTIONS> [/CODE] What … ![]() | |
Good evening Everyone My VS is behaving n an unnormal way. I have 9 Project in a Solution and i have set one of the Projects as a Startup Project and created a Setup project, after i Built it to create an exe, The Project that gets Started is not … | |
Hello, I am quite new with XSLT and I need to convert this xml: <?xml version="1.0" standalone="yes"?> <assesmentItem> <choiceInteraction responseIdentifier="correctresponse" title="title" discipline="discipline1" dificulty="dificulty1" timexpected="20" basetype="choice" cardinality="single"> <prompt>answer1</prompt> <simplechoice0 >response0</simplechoice0> <simplechoice1 >response1</simplechoice1> <simplechoice2>response2</simplechoice2> </choiceInteraction> </assesmentItem> into this one: <?xml version="1.0" standalone="yes"?> <assesmentItem> <choiceInteraction responseIdentifier="correctresponse" title="title" discipline="discipline1" dificulty="dificulty1" timexpected="20" basetype="choice" cardinality="single"> <prompt>answer1</prompt> … ![]() | |
Hi all, I have a class which contains a struct that holds some variables, string, int's. Now, one of the variables (string) in the struct is used to compare it with a name, if the name is in the struct, it has to be [COLOR="Red"]returned from my function [/COLOR]with it's … | |
![]() | hi again i thought of a program simply to use to save time in checking my emails by somehow connecting to my login and downloading all the emails. this could later be expanded into using multiple accounts. can anyone give me a nudge in the right direction to start this? ![]() |
Hi guys, Probably this is something really over discuss but would you be so kind to teach me. I want to store prices on MySQL table, i currently have my Data Type as FLOAT with my prices on the table but it renders only the same number, what is the … | |
Write, compile and run a C++ program named that reads in one integer that represents a total number of hours and then displays the equivalent number of weeks, days and hours, all properly labeled. Have your program only do the calculation if the user enters a number less than 30,000 … | |
We're trying to get our C# program to work on linux. We just loaded into Mono, and it compiles fine but the form doesn't appear. Anyone know what? Does it have something to do with it being a "windows form"? | |
Hello experts!! I have this challenge. I need to display a popup window with some controls on the clicking of a button on a page. Thereafter the contents of these controls (textboxes) on the popup window are to be transfered into a gridview on the parent form. Current status: I … | |
Hi, I have a cookie with 5 products. There will be a loop to read one by one and reduce from stock in database for each product. Now, If something goes wrong half way through i want to cancel whole transaction. For example; everything went ok for first 3 products … | |
sorry about my english i make a game and i need to use on interrupt i/o(input), someone can to help me?? the code is : [ICODE] cout<<"Enter num : "; for(i=1; i<=100000000; i++){//its loop time // here the interrupt // when the user click some key its //stop the loop … | |
Hi,I had created a Combobox called cboStart at the GUI form...Now I would like to add the integer of 1 to 12 into the combobox,may I know how can I do it? | |
For the code below I Select an area in a textBox that I will Mark Red. I will also change the Fontsize to [B]16 [/B]and make the selected text [B]Bold[/B] but are not sure what calls that is used for this. [code] this->richTextBox1->Select( 0, 10 ); this->richTextBox1->SelectionColor = Color::Red; [/code] | |
Hi, I am developing a GUI using visual C++ 2005 express edition. I created a window forms (form1.h) with some buttons and codes. Next I added another new window forms (form2.h)with a single button. I wish to link the form2.h to form1.h with a single button click. I searched and … | |
Here is a data file like this,please help me update my code to omit all comments stored in the file.sample file looks like this: C:\\s1.txt #author:Single Ray #data:02-2-10 141.641, 567.614, 24.25 140.939, 567.736, 24.25 #start 140.053, 567.947, 24.25 148.985, 568.352, 24.25 #end .... Im sorry,forgot attach my codes,here is my … | |
This program is supposed to prompt for a price until (do while loop) the input box is blank and then average the numbers and display the average. I've got most of it down except the average part, how do I store the numbers the professor hasn't showed us arrays yet. … | |
Hello C program Gurus... i have problem with my programming. i can run my prog but its something not right... my prog is to make an automated reservation system program to assign seats on flight of the plane that have apacity 10 seats. the program should display the following menu … | |
How do you draw on an image in visual studio 2005 and get it to stay? Ive can get it to draw, but it flickers on resize and disappears when the resize is done. Any ideas? |
The End.