199,114 Archived Topics
Remove Filter ![]() | |
Im supposed to implement a quad tree that will input cities into a fixed format. when the user asks for a particular city, all cities within a certain range will be displayed. i think i have the right method's in place, but for some reason or another, the program wont … | |
Ok the problem im having is in my setRectangleLength and setRectangleWidth. The compiler shows no errors so everything is fine. However when I try to validate the length and width between the values of 1-20 it does not work. When the program asks the user to enter another length or … | |
Hello, I have a query on dynamic allocation of memory in C. I am storing 4 seconds of audio data in a buffer allocated with sufficient memory using malloc function. If I wanted to record another 4 seconds of audio in the same buffer, I would have to increase the … | |
When I put these code in my project. It suppose to display error box when no input is enter, but there no dialog box is pop up. What else do I need for this code to work? Here part of the code I want it to work [CODE] if( costKwhrField.getText().length() … | |
i am facing problems of destructor in the following code.destructor is not working.can any one help plz???? [CODE] #include<iostream> #include<cstring> #include<cstdlib> using namespace std; class strtype { private: char *p; int len; public: strtype() { p=(char *)malloc(sizeof(char)); *p='\0'; len=0; } void getString(char *str) { len=strlen(str); p=(char *)realloc(p,sizeof(char)*len); strcpy(p,str); } void … | |
[CODE]#include<iostream.h> class alpha { int x; public: alpha(int i) { x=i; cout<<"\n alpha constructor"; } void show_alpha(void) { cout<<"x="<<x<<"\n"; } }; class beta { float p,q; public: beta( float a,float b):p(a),q(b+p) { cout<<"\n beta constructor"; } void show_beta(void) { cout<<"p="<<p<<"\n"; cout<<"q="<<q<<"\n"; } }; class gamma:public beta,public alpha { int u,v; … | |
hello all i have a finished program that i worked on last week and i think is running well but i wanted to know how to convert it to have JTextField where the user inputs a value which must appear in the upper part of the frame. There should be … | |
I have a form called privateOrder, and two other forms. in the first form when I double click on a datagridview it opens the privateOrder form. in the second form I have a button, when I click it also calls the privateOrder form. I want to know if there is … | |
Hey all, I wondering if you could help me get my head around this problem. [CODE] connetionString = "Provider = Microsoft.ACE.OLEDB.12.0;Data Source = KellihersLawnmowers.accdb" cnn = New OleDbConnection(connetionString) cnn.Open() overDue = "SELECT tblCustomer.*, tblMachineHistory.*, tblPayments.* FROM (tblCustomer INNER JOIN tblMachineHistory ON tblCustomer.Customer_ID = tblMachineHistory.Customer_ID) INNER JOIN tblPayments ON tblMachineHistory.Machine_ID = … | |
I'M reading the book that's in the title. Let me show you what's going on. I'M given the following code, an example of Inheritance. [CODE]using System; namespace CritClone { class CritViewer { static void Main(string[] args) { CritViewer cv = new CritViewer(); }// end main public CritViewer() { Clone myClone … | |
Hi guys, I have a simple php shopping basket which stores the products in an array. To add a new value into the array, I have the following: [CODE]$cart .= ','.$_GET['id'];[/CODE] I was just wondering if there is an equivalent line of code to remove a single array value with … | |
Hi, i'm writing a project for my A-level course in python and ive come to a problem, i know the forum rules say not to expect a quick sollution and i dont want that as i like to understand things instead of doing them blindly. i've written a class which … | |
Again I have problems with my classes :s I want to test if there is still text in the text_ctrl, if so it should give a warning in which you can chose to cancel, save or continue; but somehow the [icode]deditor.st = "continue"[/icode] is not passed :s [code=python]#!/usr/bin/env python # … | |
Hi. I have never used a command-line compiler before and I'm very confused now. I need to use this compiler for my home assignments in one of my subjects in University. I installed the compiler but I don't know how to use it. Help file says: [I]To see a list … | |
Hi, I am trying to send email in php for which i installed PEAR mail package. The installation is fine but when i try to run the email script, i get this error : [B]Failed to connect to smtp.csaauto.com:25 [SMTP: Failed to connect socket: No connection could be made because … | |
Hello everyone I am new to access and have been trying to teach myself a bit lately. In any case, I have a problem with a specific text box(NumofMonths) within a form. I need for the default value to be 12 and that it may be edited. This text box … | |
Hi I have what at first seemed to be a very simpe problem: I have a Microsoft Package that requires me to use nmake to make a lib file. I am unfamiliar with make files as I use visio and XP. Now I had to move somethings due to restricted … | |
Trying to use an oledbdatareader to search through a table in my Access database. When I hit the command button to search it throws an error that says no data exists for row/column, but if I execute the command against the database it returns exactly what I am looking for. … | |
Hi, my table has id,startdate,enddate,starttime,endtime,salelocation,imagename both dates are in date type and starttime and endtime are in time type. I want to check if my data consisting of startdate,starttime,enddate,endtime cannot be present in table and must be a valid date and time duration. How to check this valid date and … | |
Hi everybody, I need to consume a web service through a .net mobile application - i have written both the web service as well as the mobile app. However there is an issue when emulating the system as the .net emulator cannot understand the ''localhost'' url. Is there a solution … | |
how i can solve this problem..... generate the following staircase pattern(using loop operation) 1 2 4 3 6 9 4 8 12 16 5 10 15 20 25 6 12 18 24 30 36 7 14 21 28 35 42 49 | |
Hi all, Im pretty ok with PHP and have recently been breaking down a project using foreign keys to identify various bits of information. This is my problem. I have an items table, which is made up of ID, country and area. It previously has the actual word of the … | |
i have a simple form validation onsubmit event. The requirement is very simple, if validate.php brings any error it shows errors and it stops form for further processing else form submit and action runs process.php. But, unfortunately ajax function is not working onsubmit event.. any help please..... files are attached … | |
Hi, i download wmi from this: [url]http://timgolden.me.uk/python/wmi/index.html[/url] (windows version) [CODE=syntax] import wmi c = wmi.WMI () for process in c.Win32_Process (): print process.ProcessId, process.Name [/CODE] And run this script in Python 2.6 IDLE Show this error: Traceback (most recent call last): File "C:\Users\lola\Desktop\test.py", line 1, in <module> import wmi File … | |
Hi, My Name is Ravi Shankar. I have query in PHP Code. I had written the code as if client click on check box, it will generate 16 digits random number in adjacent text box. My query is, before display the 16 digits random number i have to show a … ![]() | |
I am trying to render a very simple scene by loading various parameters from a file (MLC.txt) When compiling I receive the following error main.cpp: In function ‘void renderScene()’: main.cpp:77: error: ‘pBeam’ was not declared in this scope H | |
I need help with something I'm working on. I'm new to python so bare with me. I have a string being randomly generated in such format (example): [CODE]F' B D D2 A2 C'[/CODE] [I]6 Letters from A to F with ether a number " 2 " or " ' " … | |
Hello, I can't understand what compiler wants from me. I trying to create quite a big class structure with many abstract classes. Below is a part of the code with some of them. The compiler doesn't like my classes and says the he needs more constructor which I don't understand. … | |
how to use database tags.?? what exactly is the use of it.?? In my database design i have a table called project_details which consists of many fields like its projectID, title, domain and technology. Each project can have many technologies involve in it.. so how do i make use of … | |
hi i m new c# and this is my very 1st project ,here i want to add or view data and this is the code i have used.everything works fine but i cant navigate through records properly,i m working with 2 tables i.e BankMaster and BranchMaster [ICODE] private void branchmaster_Load(object … | |
Hi, I want to parse a date and change the format using python. Date has the format like 'Mon Feb 15 2010' and i want to change the format into '15/02/2010'. Any one can help me. Thanks in advance. Nimmy | |
Hello world, I would be grateful if you helped me. I've built a text editing application and I would like it to load values/user settings from the Windows Registry. Here's my code but it is somehow wrong (I believe it whatsoever has to do with wrong syntax but it could … | |
Please help me for my syntax error? and I want to show all the First Middle and Last Name in the listbox i.e. into Listbox First Middle Last Amit Anoop Motwani | |
Hi.. I suppose to have a programe to read a data from a file and enqueu it to the Queue. The programme works like a Priority queue whether the ladies queue need to be inserted to queue first before the gentleman... But i think i need to try first how … | |
Hello everyone! This is the code for my A86 Assembler: [CODE] jmp _executor _executor: mov ah, 00 mov al, 18 int 10h end _executor [/CODE] It Assembles fine, but when I try to run it, I get this dialog popping up, saying: [QUOTE] This system does not support fullscreen mode. … | |
Hi Every One I am designing one site in Zen Cart 1.3.8a almost every thing is completed, here I came for one simple help from you all. I want few text fields and drop down boxes should generate when user click on Add new item Button and the previous entered … | |
Hi, I installed vsftp and filezilla. I use host:127.0.0.1, user:root, password:(don't have any), post:21 to connect to ftp but not successful. Does anyone know how to do this? Thanks | |
I have an application in which I am using vb.net and excel. Daily readings are taken, written into vb.net and then saved into excel. At the moment i have it set so that: [code] If Gdate = "12 February 2010" Then .Range("C4").Value = TextBox1.Text .Range("C5").Value = TextBox2.Text .Range("C6").Value = TextBox3.Text … | |
can somebody tell me how to get file type..of any file..For .txt file file type is [B]Text Document[/B],for doc file - [B]Microsoft Word Document[/B] & so on. Plz help me out,I m not finding anything on the net related to it. | |
I cannot directly open the process who's output I need. And there is no keyboard commands to highlight text in anyway. I've found that I can find the process ID and create an object associated with that ID, but because I have to redirect the output upon initialization, I don't … | |
My GridView is quite long and goes off the screen. I want the detailsview to position itself alongside where I click the "Select" button - not at the top or bottom of the gridview - perhaps center screen? Using VB not C# please. Any ideas what to put as the … | |
[CODE]#include<iostream.h> class invent2 class invent1 { int code; int items; float price; public: invent1(int a,int b,float c) { code=a;items=b;price=c; } void putdata() { cout<<"code:"<<code<<"\n"; cout<<"items:"<<items<<"\n"; cout<<"value:"<<price<<"\n"; } int getcode(){ return code; } int getitems() { return items; } float getprice() { return price; } operator float(){ return(items * code); } … | |
i recieve error message when execute my code note my code has now errors when build the solution i work on laptop with windows xp sp2 and vc++ 2008 error message misa.exe - Unable To Locate Component x This application has failed to start because MSVCR90D.dll was not found. Re-installing … | |
Hi All, For more than two days I m trying this problem. Some one please help me out. My scenario is I want to directly insert data into my table from the input which I get it from text boxes. Here is my code... [code] con = new SqlConnection(); con.ConnectionString … | |
I have a dropdown list and the selected item depends on the record the form is for. How do I allow PHP to determine which item in the list is selected according to how that row is configured? | |
Many people would probably think this question is stupid, but how can i insert a value that starts with 0 in a Bigint/Numeric/Int field? This would normally not be a problem, just using a varchar field instead, but because of the index speed (this is a very large table with … | |
Hi, I want to learn sql injection.I searched in google but the information is not sufficient to me.Will u provide some links to learn sql injection. thank u | |
I have a postgresql view on which I'm running the following query : [CODE]select count(*) AS "Assigned Calls" ,to_timestamp(createdon)::date from vw_issues where to_timestamp(createdon)::date>='11/10/2009' and to_timestamp(createdon)::date<'11/11/2009' group by to_timestamp(createdon)::date order by to_timestamp(createdon)::date[/CODE] when run in phppgadmin the result is displayed as Assigned Calls to_timestamp 20 2009-10-12 13 2009-10-13 etc... I need … | |
Can someone please explain the meaning of these return 1 vs return 0 vs break. I know 1 generally means true and 0 generally means false but how would they effect a return statement? Also when would you wanna use a return statement instead of a break statement and vice … |
The End.