64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for jakx12

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

Member Avatar for mschroeder
0
162
Member Avatar for guest7

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

Member Avatar for guest7
0
82
Member Avatar for Doops

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 …

Member Avatar for Doops
0
95
Member Avatar for h3llpunk

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

Member Avatar for h3llpunk
0
1K
Member Avatar for GDICommander

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

Member Avatar for GDICommander
0
224
Member Avatar for jake88

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 …

Member Avatar for jake88
0
140
Member Avatar for k2k

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

Member Avatar for ddanbe
0
141
Member Avatar for sid78669

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 …

Member Avatar for sid78669
0
331
Member Avatar for rmlopes

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 …

Member Avatar for rmlopes
0
151
Member Avatar for Shanti C

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

Member Avatar for Shanti C
0
475
Member Avatar for haria_kishore

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 …

Member Avatar for alit2002
0
514
Member Avatar for southernd0529

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 …

Member Avatar for Comatose
0
152
Member Avatar for nandomendoza

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

Member Avatar for nandomendoza
0
108
Member Avatar for ntredame

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 …

Member Avatar for h3xc0de
0
202
Member Avatar for CPPRULZ

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?

Member Avatar for MMahmoud
0
149
Member Avatar for alphabetanm

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 …

Member Avatar for alphabetanm
0
127
Member Avatar for m610

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 …

Member Avatar for ebi1
0
231
Member Avatar for CPPRULZ

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 …

Member Avatar for CPPRULZ
0
169
Member Avatar for Ghostenshell

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 …

Member Avatar for Ghostenshell
0
143
Member Avatar for fidan

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 …

Member Avatar for GDICommander
0
163
Member Avatar for emilio

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 …

Member Avatar for emilio
0
86
Member Avatar for JerryShaw

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 …

Member Avatar for JerryShaw
0
200
Member Avatar for PinoyDev

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 …

Member Avatar for cwarn23
0
2K
Member Avatar for happymadman

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 …

Member Avatar for happymadman
0
105
Member Avatar for chebude

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 …

Member Avatar for chebude
0
173
Member Avatar for websurfer

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 …

Member Avatar for websurfer
0
356
Member Avatar for JAGgededgeOB172

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 …

Member Avatar for cikara21
0
138
Member Avatar for SoulMazer

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 …

Member Avatar for SoulMazer
0
240
Member Avatar for wookinhung

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-

Member Avatar for wookinhung
0
122
Member Avatar for number87

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

Member Avatar for death_oclock
0
128
Member Avatar for mruane

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 …

Member Avatar for mruane
0
148
Member Avatar for dollmar

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 …

Member Avatar for dollmar
0
120
Member Avatar for progurammaar

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 :)

Member Avatar for stephen84s
0
138
Member Avatar for ddanbe

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 …

Member Avatar for ddanbe
0
86
Member Avatar for xtremerocker

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

Member Avatar for xtremerocker
0
215
Member Avatar for farooq82

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 …

0
69
Member Avatar for nil_gh_80

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

Member Avatar for BeachyUK
0
449
Member Avatar for lahiru17

please can u tell me how to create a software that can be used to send a email?

Member Avatar for stephen84s
0
62
Member Avatar for ryn670489

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 …

Member Avatar for ryn670489
0
321
Member Avatar for Gaytri Khanna

Hi I am Gaytri i would like to know:- why we use main() function in C. And what is advantages of main() function.

Member Avatar for BevoX
0
206
Member Avatar for ukbasak

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

Member Avatar for Ramy Mahrous
0
168
Member Avatar for Indianblues

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

Member Avatar for Ramy Mahrous
0
111
Member Avatar for massivefermion

Hello I wanna ask is it possible to to us vb for building a program's GUI and c++ for its coding?

Member Avatar for vmanes
0
175
Member Avatar for notuserfriendly

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

Member Avatar for notuserfriendly
0
131
Member Avatar for PinoyDev

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 …

Member Avatar for PinoyDev
0
123
Member Avatar for reaven

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

Member Avatar for Comatose
0
249
Member Avatar for mikhala99

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 …

Member Avatar for mikhala99
0
130
Member Avatar for FlashCreations

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 …

Member Avatar for mschroeder
0
121
Member Avatar for oldSoftDev

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

Member Avatar for oldSoftDev
0
72
Member Avatar for piotr_kast

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

Member Avatar for LizR
0
231

The End.