199,114 Archived Topics
Remove Filter ![]() | |
Hello, I wonder if there could be faster way to convert a string to .Double() and Int32(), then the methods below? The code below takes approx: 7000 ms //7000 ms String number1 = "21.58"; String number2 = "21"; double getNum1 = 0; int getNum2 = 0; DateTime dt = DateTime.Now; … | |
Seemingly, bitmap resources within my file are becoming somehow corrupted. My code has resource bitmap image, when ran, it searches the screen for that image and returns its xy location. Runs fine and works fine at least once, and sometimes more, but then fails to find the image. When I … | |
I'll try to keep it brief. When I try to pass the 'list' vector to the counter function my compiler throws an error of: "error: request for member size in count, which is of non-class type std::vector<int>*" Googling hasn't produced anything quite what I'm looking for syntax wise. If someone … | |
hi m new to `asp.net` and m trying to secure my pages so that if the user is not logged the pages are not accessed to him. previously i have done in `php` like in the following: if(!isset($_SESSION['adminlogin']) || $_SESSION['adminlogin'] == ''){ header("Location: index.php"); exit; } but i don't know … | |
hi to all....i have a task to embed skrill and pyaza...but i only know that skrill and pyaza are moneybookers. but i don't know how to embed them using php?? is any api is there to access both these moneybookers.???? | |
The local baseball team is computerizing its records. Write a program that computes batting averages and other statistics. There are 20 players on the team, identified by the player ID 1 through 20. You will have two input files: roster.txt and statistics.txt 1) The Roster File (roster.txt) - This file … | |
Hi guys, I don't know if this is posted in the correct area, so forgive me if it isn't but I couldn't find a proper area for this. What I would like to know is this. I have a computer running windows 7 professional. Connected to my home hub, I … | |
I need help with this code. It isn't working correctly. ; last error in is LASTERR Error No impersonation token ; ; reparieren.asm Help from Fetten,Dave,Frank K.,Qword,TightCoderEx, ; To err is O.K. as long as it isn't too many. ; .386 ; .model flat,stdcall ; option casemap:none ; include masm32includecomdlg32.inc … | |
** Compile program functions for: -Enter of a keyboard and a file into an array (by adding) data to 30 girls in the competition "Miss World" number, name, surname, date of birth, physical data, state and display the current contents of the array on the screen -display output data for … | |
Here is the exercise: > fileWord > Write the definition of a function named fileWord that receives a string argument that is the name of a file containing words. > > The first time the function is called, it returns the first word of the file whose name it was … | |
Help, I'm getting the following error message: error C2040: 'money' : 'double' differs in levels of indirection from 'char [15]' error C2088: '>>' : illegal for class #include <iostream> #include <fstream> #include <iomanip> #include <string> #include <sstream> #include <string.h> using namespace std; string FileName; void starline(); float balance; float deposit; … | |
can anyone tell me how i create search function like as in reservation i search thrugh id then how i create any help | |
Dear friends, sorry for my ignorance about python containers but I have the need to store (and access) 4 different values per file in folder, namely the filename (with its path) and 3 other values (string or None). When I access the database, I will need to know the 3 … | |
Hey, I'm developing a program in which there are two classes. The purpose of one of them is to create vectors that change dinamically (class A) and the other is a bunch of methods to operate on these vectors (class B). The question is: I don't see any need to … | |
#include <iostream> #include <string> #include <fstream> #include <vector> #include <sstream> using namespace std; struct Uzenet { string honap; int nap; string time; string computer_name, szolg_name, massage; }; void kiir(const Uzenet &uzenet) { cout << "Az uzenet ideje: " << Uzenet.honap << " " << Uzenet.nap << " " << Uzenet.time; … | |
hei, please help me. I have a project sales .. in the form of sales transactions I would add an update on caret functions texfield subtotal. caretupdate function I use to buy goods at more than one then it will be totaled automatically which will go on with new texfield … | |
import java.awt.event.ActionListener; import javax.swing.JFrame; //This Java Program determines the weighted average //of four test scores. //import statements for the needed packages public class Assign1 extends JFrame { //declare JLabel variables as reference to label components //declare JTextField variables as reference to input/output text boxes //declare JButton variables as reference to … ![]() | |
I'm trying to write an applet with menus but is not working I'm getting these errors: load: MenuFrame$AppletMenu.class can't be instantiated. java.lang.InstantiationException: MenuFrame$AppletMenu at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at sun.applet.AppletPanel.createApplet(Unknown Source) at sun.applet.AppletPanel.runLoader(Unknown Source) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source) could some one please explain me what is wrong. … | |
i am using xammp for my database. i have a col called "today_date" andy type "DATE". in php i am using function "now()" to store todays date. the format is year-month-day. now let say i have one more col called "today_date_time" and type "datetime". is there a php function that … | |
Hi, I need to read byte by byte data from header-like file. The format of the file is in the link, please take a look http://imageshack.us/photo/my-images/96/tablefu.jpg/ I dont need the first 128bytes and I need to get the next 4 bytes. My code is like below: char* icm_name = "Samsung_to_Cannon.icm"; … | |
I'm not sure that my title is descriptive enough, but here is what I need to do... I had a bit of a screwup today with launching a site... Within about 10 minutes of opening the site, the members created 337 transactions (stored in trans_table) Each of those transaction should … | |
How to fix position of first div at **center** and add more div **around first div** as per requirement, to, **left, right, top and bottom** and scroll to that div using fix navigation at top of page | |
Hi all I have a client program about send and recieve file on LAN Network between 2 PC, but it get an error below: "Cross-thread operation not valid: Control 'Client' accessed from a thread other than the thread it was created on" in function SaveFile in line "if (saveFileDialog1.ShowDialog(this) == … | |
I am doing image segmentation using region growing algorithm. I have created Region and Pixel class where each region has list of pixels. public class Region { private List<Pixel> pixelList; } Pixel class has fields like r,g,b, hue,saturation, brightness of individual pixel in image. The result of segmentation is list … | |
This is my Exceptio on Run Time {"Could not load file or assembly 'file:///C:\\Program Files (x86)\\SAP BusinessObjects\\Crystal Reports for .NET Framework 4.0\\Common\\SAP BusinessObjects Enterprise XI 4.0\\win32_x86\\dotnet1\\crdb_adoplus.dll' or one of its dependencies. The system cannot find the file specified.":"file:///C:\\Program Files (x86)\\SAP BusinessObjects\\Crystal Reports for .NET Framework 4.0\\Common\\SAP BusinessObjects Enterprise XI 4.0\\win32_x86\\dotnet1\\crdb_adoplus.dll"} | |
I want to develope an ETL application for Data Ware House Project (Decision Support System) for university, i am extracting data from, Excel, Access and CSV format files, i have done the extraction, but now the problem is the Transformation of Data, i have to clean it and standardize it, … | |
I have to create a class of Persons that will hold information about their name,age,NI number.These details are read from a file that would look like : 55512 Bart Simpson 45 45622 John Smith 58 46231 Alicia Sands 27 My duty is to read each line from this file and … | |
Hi. Dear php coders... I need someone to help modify the attached ecommerce software. I want to skip "ADDRESS" step in chekout process. If someone knows this ecommerce platform and can help to customize it, please let me know where and what part of code i need to change. I … | |
![]() | I want to check if value is already exists in database with php. But this value can be as for example "John" or "JOHN" or "JOhn" or ... e.t.c how to check for all conditions? |
I want to get the relevant name of the product Id into a text box when I select the product id from the combobox myConnection = New SqlConnection(connectionstring) myConnection.Open() myCommand = New SqlCommand(" Select Name FROM [Product_Name_List] Where P_Id='" & ComboBox2.Text & "'", myConnection) Dim dr As SqlDataReader = myCommand.ExecuteReader … | |
Hi double[] MyArray = new double[10]; I have 10 numbers and I get average of them. But how can print out how many of the numbers that are smaller than average, and how many of the numbers that are larger than average? | |
![]() | I'm trying to use remote data source autocomplete, I have a code that works. I'm returning an id column from a db table. what I'm trying to do is to have the autocomplete display 2 values from the table row, for example id1 - this is id 1 id2 - … ![]() |
I have created a csv file, and display data from database into that file, how can I add a pie chart to that file, this is the code which I made: File file = new File("C:/Users/MY TOSHIBA/Desktop/chart.CSV"); Writer output =null; output = new BufferedWriter(new FileWriter(file)); Connection con = DriverManager.getConnection("jdbc:oracle:thin:@ 127.0.0.1:1521:XE","username","password"); … | |
Helo Daniweb, I am in the process of building a WYSIWYG text editor, in an attempt to understand how they work. I am a novice at JavaScript, however what I have learnt so far seems to make sense. The problem comes when I try and change the text rapidly, if … | |
***Can you help me to write a java program to evaluate a mathematical expression written in a a Prefix Order ?? *** | |
hi i want to display only elements of array tht start with a number can i do that using egrep" | |
let say i have two tables called user and cart user-table id username password 1 dave dave 2 dan dan cart-table id user-id item_name 1 2 car 2 2 table 3 1 laptop now i understand that bother id's will be primary key. i can also create user-id f-key bc … | |
***How To Search Value From Data Base and IF Data is Not Available then show a message "Data Is Unavilable" My Codes are as Follows :-*** private void Sf_Reg_search_ButtonActionPerformed(java.awt.event.ActionEvent evt) { String str2 = JOptionPane.showInputDialog(null, "Please Enter Staff Reg No: ","Enter Reg No For Search", 1); try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con=DriverManager.getConnection("jdbc:odbc:HMS_DS","",""); … | |
I am working on C++ coding for Shape.cpp and in the square I am getting scientific notation as the for the area and perimeter. Can anyone please tell me what I am doing wrong. Thank you. Here is my code #include <iostream> #include <sstream> #include <vector> #include <string> using std::ostringstream; … | |
i hve reservation form add function and add button public void addreserve() { string constring = @"Data Source=.\SQLEXPRESS;Database=htm;Integrated Security=True"; SqlConnection con = new SqlConnection(constring); con.Open(); DataTable dt = new DataTable(); SqlCommand com = new SqlCommand("insertreserveinfo", con); com.CommandType = CommandType.StoredProcedure; com.Parameters.Add(new SqlParameter("@Reservation_id", myreserv.Reservation_ID1)); com.Parameters.Add(new SqlParameter("@Guest_id", myreserv.Guest_name)); com.Parameters.Add(new SqlParameter("@Room_ID", myreserv.Room_no)); com.Parameters.Add(new SqlParameter("@Service_ID", … | |
i have a form whcih is room and in this there is when i add a data on it that is room id,room no and service type and room type then when i add the data like as room id=1 room no=2 room type=double service type=luxury then when i again … | |
I'm used to if/else. Can someone tell me if this correct or not. It's not pulling up an error but it's not outputting what I want it to output either. Thank you! char pick; cin >> pick; if(pick == 'a' || pick == 'A') stuff inside here //For case switch... … | |
my code works fine but i feel i my structure of this code is not good. can any one help me out? i puted all code in one page. so i have a page. this page is made up by 3 parts. 1st part is the header. in header i … | |
![]() | I want to display divisors of a number in a text box using loop. But their is some error in my program.I need help to correct it. `<html> <head> <script> function CheckDivisors() { number=parseInt(document.divfrm.num.value); d=1,sp="\t"; do { if(number%d==0) { document.divfrm.div.value=d; document.divfrm.div.value=sp; } d++; } while(d<=number/2); } </script> </head> <body> <form … ![]() |
Hi All, I would like to thank this community for the enormous help to develop my skills. Thanks. I have 2 databases and a single report form and a crystal reportviewer. The User can select the database which he want to work (Each of them belongs to different warehouse) So … | |
Windows Forms - C # I wonder edit text / numbers that I have added to a listbox. I to display the names in the listbox use this code *listBox1.DataSource = itemsfim;* To add one more name in the ListBox use: *itemsfim.Add ("Jorge - Portugal");* Now I would like to … | |
#include <stdio.h> #include <string.h> struct mycar { char plate[10]; int ey,em,ed,eh,emin,qy,qm,qd,qh,qmin,wd,parked; }; struct mycar car[2]; int n; void main() { void input(); void display(); int menu(); void exit(); int op; n=0; printf(">>>>>>>>>>>>>>>>>>>>>>>>+<<<<<<<<<<<<<<<<<<<<<<<<<<<\n\n"); printf(">>>>\tCAR PARK SYSTEM MANAGEMENT SYSTEM \t<<<<"); printf("\n\n>>>>>>>>>>>>>>>>>>>>>>>>+<<<<<<<<<<<<<<<<<<<<<<<<<<<\n\n"); for(;;) { op=menu(); //printf("op=%d"); if(op==0)break; switch(op) { case 1: input();break; case … | |
Im creating ASP.NET project. There is a gridview. in grid it has a hyperlinked column named with "select" when I click "select", i want to get row data. Most of the web sites have a lot of code about this. But I feel there must be a very simple method … | |
I am trying to write a program that reads words from files and then puts them into arrays and then does a count on certain words. I have moved stuff around and really I am not sure that I am even on the right track. Could someone please look at … | |
Hi I'm using a simple insert statemnt in from two textfield into my database using this code Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If (TextBox1.Text.Trim = "") Then MessageBox.Show("PLEASE DO NOT USE BLANK SPACES", "Data Entry Error") ElseIf (TextBox2.Text.Trim = "") Then MessageBox.Show("PLEASE DO … |
The End.