64,152 Solved Topics
Remove Filter ![]() | |
ok so the code inserts into the database a default status when the user sign ups. But I get an error saying: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''status' ) Values(`asd.asd`, … | |
Hi, I am getting an error when running a code on linux machine: "terminate called after throwing an instance of 'std::bad_alloc' what(): St9bad_alloc Aborted" In my code i have a 2 dimensional vector defined. Can someone tell me the possible cause of error. Thanks | |
I am currently working on a project where I want to allow a customer to update their details through a web interface. I am using C# codebehind. On page load I am setting the values of the textbox using the existing customers details. The idea being, the user sees the … | |
Hi I get the common Undefined References error in CodeBlocks I am pretty sure The code is right. [code=c++] case WM_PAINT: { BITMAP bm; PAINTSTRUCT ps; HDC hdc = BeginPaint(hwnd, &ps); HDC hdcMem = CreateCompatibleDC(hdc); HBITMAP hbmOld = (HBITMAP)SelectObject(hdcMem, g_hbmAnime); GetObject(g_hbmAnime, sizeof(bm), &bm); BitBlt(hdc, 150, 100, bm.bmWidth, bm.bmHeight, hdcMem, 0, … | |
Hi, everyone! If you have worked on ACE, this is the post for you. I want to ensure that all the buffer contents of a file are on disk. So I want to use a fsync() or a fflush() function. I'm working with ACE_HANDLEs. Unfortunately, my searches concluded with this: … | |
I'm working on another piece of code that did the same thing as my Dom implementation only with Microsoft's System.Xml Here's the idea, I want to take an element and insert some text into it. <nameytag> *insert text here* </slashnameytag> Currently, I have this: [ICODE]#using <mscorlib.dll> #using <System.Xml.dll> using namespace … | |
hi, basically i need to find out how many lines are in a file. would someone please refer me a quick command? i don't think wc would work since i need the line number. thanks | |
as part of my assignment i'm trying to validate an email address stored in an hash, with the key: 'email' and the value as the data supplied. But the email is not getting validated using reg-ex: [CODE] if($form_element{'email'} =~ m/^[A-z0-9_\-]+[@][A-z0-9_\-]+([.][A-z0-9_\-]+)+[A-z]{2,4}$/i){ $values = 0; $mail = "InValid!"; } else { $mail … | |
Hello all, Before anything else, this issue is also posted at: [url]http://www.cplusplus.com/forum/general/7518/[/url] I have a structure similar to the one below.I miss a lot of information about the specific template parameters, so I would need something like what is in the code. This code does not compile because we cannot … | |
Hello there... Any body help me to fix this problem regarding .htaccess I have written this code to convert my url from .php to .html [code]RewriteEngine on RewriteRule shopping/leftproducts/([^/]+).html$ /shopping/leftproducts.php?c_id=$1 [L][/code] but this couldn't work for me... i coundn't find where the problem occurs.. My url is like : [code] … | |
Hi Guys I have designed reports in Discoverer Plus and the users are viewing the report using viewer. My need is that suppose there is a report which is made. Now if some user views the report by changing the layout and save the changes. Now problem is the change … | |
I need help writing a simple program. My Declaration is: length, width, area and perimeter. My Input is length and width. The Calculations are: p=2*(l+w) and a=l*w and my[B] Output is p and a can anyone please help me write this program. I just started out doing this and I … | |
Does anyone know how i would write the code for the following instructions? Print the numbers from 3 up to 40 that are multiples of 5 | |
I have to create a class called Day that will carry out certain functions. One of the things that it needs to do is it needs to be able to calculate and return the day by adding certain days to the current day. For example, if the current day is … | |
So when two objects are declared say class shoe shoe1 and class shoe shoe_copy and then shoe1's variables are set, if the line of code: shoe_copy=shoe1; what would that be doing? After all what is the real data structure of the objects of class shoe? | |
Hi, I could use some help. Our class assignment is to create a mortgage calculator in C++. The calcuation was provided all we had to do was code it. This is the fourth week of class and the assignment is from Ch. 2. I am sure it is not supposed … | |
I'm finally getting around to using COM+ in Delphi 6 Pro, and I need a little help. My COM+ components palette has a TCOMAdminCatalog component, but it seems to be missing the other two, TCOMAdminCatalogCollection and TCOMAdminCatalogObject. How can I get them back? Did I ever have them? I've got … | |
If an explicit copy constructor is defined that makes a complex copy, does: [code=C++] int main() { class shoe shoe1; class shoe shoe_copy(shoe1); } [/code] And [code=C++] int main() { class shoe shoe1; class shoe shoe_copy; shoe_copy=shoe1; } [/code] Basically I'm asking if the assignment operator accesses the complex copy … | |
First I like to thank everyone that helped me with my work... Please bear with me I don't know how to explain my problem. Trying to get the random number to remain the same through out the length of the program. When the player guess the right number the player … | |
Hello, I wrote a program which takes CNF-files as input. It takes from 1 sec up to 1 hour to finish its task (Checking satisfiability). However, there is one CNF file which takes about 1 hours before it spurts out the message: aborted <core dumped> ... and creates an *.exe.stackdump … | |
hi i have a table which contains a datetime type column. i want to create a stored procedure that gets a surtain month and year as parameters and returns all the rows with the date column in the month and year range i sent as parameter. for example if i … | |
I have an SQL2005 table loaded with ICON (image) BLOBs. I need to dynamically add ToolStripMenuItems to my Windows form including the same row Icon from the database table. This is a Plugin system where I pull the plugin file (assembly) names from the database according to the operator's rights … | |
Good day again to everyone.! my project of online enrolment system is almost done, thank you for all your support. Just let me know if you have problem in vb6 i would surely lean on my help to0 because its my expertise. this might be the last problem ive ever … | |
Hi, how would I get the timer() class to change time display()'s self.time I'm new to threads and classes and have been sitting here thinking about it for the last half hour and still have know idea Thanks heaps for any help. [code=python] # Count down timer import time import … | |
I have too collect a daily rainfall data from a certain model output. The model ouput gives out each stations daily data separately which I have to collect together and further analyse. [I have tried the following, it works but my data - thousands of pcp_#.txt which makes the process … | |
Hello, all: I have a simple chart, like... ID ACCOUNT YEAR JAN FEB 1 Utilities 2007 $20 $20 2 Utilities 2008 $25 $25 Let's say, customer wants to add a "year" like 2009, how can I check that this "2009" is NOT already in the YEAR column?? so that if … | |
Hi all, The program I'm making needs to basically interpret long math operations (see the attached text file) and compute them. Simple right? I have to use stacks and queues to reorder the operation into the desired output (the output will compile properly if you run the program as it … | |
Hi, so I just have a question that I at least think will be pretty easy. So, I am making a script that basically gives you a "vocabulary test". There is just one feature I would like to implement that I need help with. I would like to make it … | |
Hi all, I want to display a picture by moving the mouse cursor on a label or picturebox without clicking on them... How can I do that? PS: The picture would be big sized. Regards, wookinhung -VB noobie- | |
I did a program to read the output of the UNIX command ls -ali and count the number of directories, write files, link files etc. But there seeems to be something wrong with my code and I cant compile it. I cant seem to find out whats wrong with it. … | |
I am preparing for my a+ exams, and am turning all of my notes into a test. I plan on doing this in python, of course. But, I am a little lost at what would be best. Should I create each question as a specific function, calling the next question … | |
im new to vb6..plz help me to solve my problem.. 1.I make a textbox that can input time 2. I have a shape in form 3. I use label to display time how can i change the color of shapes in red when i input the exact time in the … | |
Hello there, This is my first post. I want to make a currency converter program in Java and for that i want live/real-time exchange rates. So can you please tell me how can this be done. I have full time net connection, so thats not a problem :) | |
I have an array of array wich all have the same length. Which syntax is to be preferred : multidimensional : string[,] names = new string[5,4]; or jagged : string[][]names = new string[5][4]; Or is it, in this case just a matter of style? I searched this site and I … | |
My program needs to use exponents, however, double does not allot enough space for my numbers, is there another way to use the pow(x,y) function or is there another function for exponents that I'm overlooking? [CODE=cplusplus] #include <iostream> #include <cmath> using namespace std; int main(void) { int thresh = 10000; … | |
Hi everyone, Below is code snippet to load excel file in datagrid. When my excel file is load is show unnecessary column with blank data. I did not want to show these columns. Can any help me how I will remove this column. I don't know how much blank column … | |
Hello friends, I've a user login system......user's name & password are saved in the database.......suppose i've an user "admin". At the time of login if he enters "admin" he can login also if enters "ADMIN" or "AdMiN" he can login too.....how can I stop this thing........PLZZZZZZZ show me the way...... … | |
please can u tell me how to create a software that can be used to send a email? | |
This is my code its to calculate book club points earned. i cant see where the error is if any one can help me i would be very gratefull. thank you def main(): books = getBooks points = getPoints printPoints def getBooks(): books = input("enter the books purchased") return books … | |
Hi I am Gaytri i would like to know:- why we use main() function in C. And what is advantages of main() function. | |
Hi, How to connect to remote server with storedProcesdure sp_addlinkedserver where the server has an instance SQL2005. suppose the servername as 'SrvName\SQL2005'. Also please provide the procedure how to delete a remote server from sysservers table. Thanks, Ukbasak | |
Can somebody tell me the file read and write syntax. I found the following code on the net. but didnt get that. fs2.Read(fs2Content, 0, (int)fs2.Length); fs1.Write(fs2Content, 0, (int)fs2.Length); what exactly first, second and third arguement will do in above statements. pls give me some details regarding this. Thanks | |
Hello I wanna ask is it possible to to us vb for building a program's GUI and c++ for its coding? | |
[CODE] class OrdArray { private double[] a; // ref to array a private int nElems; // number of data items //---------------------------------------------------------- public OrdArray(int max) // constructor { a = new double[max]; // create array nElems = 0; } //---------------------------------------------------------- public int size() { return nElems; } //---------------------------------------------------------- public int find(double … | |
good day.! I am currently developing an enrolment system which will be on february 12-13 the deadline. In the middle of development, the client wants that on every link the pop-up info to be display on that link will be from the mysql database. Assuming that i already have a … | |
Hi am trying to make a simple application that write and read from and to a text file the problem is that i want to be able to aerch in the text file for an specific line. the text file is a list of words with a meaning each word, … | |
This is homework and I am using a getfile that is just a 5 row 4 column list of numbers. I can get this program to compile and when I go to run it, I get my cout text output but without my numbers and the program crashes. I am … | |
Hey Everyone! I have a question about oop. I am trying to write a MySQL class for managing my MySQL db's and calls. So far I have almost completed it, but I am missing lots of functions. These are the result functions (ie. mysql_fetch_array() or mysql_num_rows() etc.). Instead of creating … | |
[code][code=java] public class LineSeg{ // these are the attributes of a LineSeg object private Point end1; private Point end2; private double length; // the constructor public LineSeg(double x1, double y1, double x2, double y2) { end1 = new Point(x1,y1); end2 = new Point(x2,y2); this.length=(double)(Math.sqrt((x2-x1)**2+(y2-y1)**2)); } }[/code] | |
I used this code to serialize: [code] using System; using System.IO; using System.Runtime.Serialization.Formatters.Binary; [Serializable] public class Car { public string Make; public string Model; public uint Year; public byte Color; } public class Exercise { static void Main(string[] args) { Car vehicle = new Car(); vehicle.Make = "Lexus"; vehicle.Model = … |
The End.