64,152 Solved Topics
Remove Filter ![]() | |
Hi all, I'm new here but I am in need of some desperate help. I have a program that works perfectly but here is the problem: I cannot use the function getline to get a line in the input file and turn it into a string to be manipulated by … | |
Wish you all a good day.Currently i'm working on c++ project.I want to know how to convert string object to a character array.Also why ifstream object doesn't accept a string variable as follows, void split(String filename) { ifstream ifile; ifile.open(filename);//this fails } | |
At the moment im working on an app in vb.NET and its seems to working ok, however my client/sponsor would like a web-app with the same functions as well. So I would like to just use my vb.NET code in the ASP.NET app to save me time and stress. However … | |
hai i am using the following code to apply the watermark and save in specific location and then upload the image to database [code=asp][ byte[] img1 = new byte[fileupload1.postedfile.contentlength]; Httppostedfile image = fileupload1.postedfile; image.Inputstream.read(img1,0,(int)fileupload1.postedfile.contentlength); Bitmap bm1 = new bitmap(new system.IO.Memorystream(imd1)); Graphics grp = Graphics.FromImage(bm1); grp.smoothingMode = smoothingMode.AntiAlise; grp.Drawstring("name" ,new font("Arial",20),systemBrushes.WindowText,250,250); … | |
[B]Is there is any way to copy out put in graphics into a paint file(bmp)?[/B]:) | |
Hi all, im a beginner to programming Python with Tkinter. I have a windows with 2 form: 1 Listbox and 1 Textarea that load a txt file. The Listbox contains a name of chapters. How can I make because click on the listbox scroll the text inside the textarea a … | |
hi, i am developing a vb application to print a bill using printer object.i have developed the whole application but while executing it showns an error(runtime error '380': invalid property value.please help me to do it. my codes are: [code=vb]Private Sub Command1_Click() MousePointer = 11 'mouse pointer busy while printing … | |
Hi I am facing a problem with listvariable of listbox. I have a global sequence is python. which I am assignning as listvarible to a listbox widget. Listbox is neither showing default nor runtime values of sequence. Can anybody help | |
Hi, I am new to VB6. Currently I am suppose to write a programme for checking book stock.whenever if there is any insufficient books in the data i will have to gather all the insufficient name of any book in a msg and send out to the user. For my … | |
Hello! I'm having a very difficult time with this problem. What I'm trying to do is generate a sine wave for a specific frequency and output it as raw pcm data to a file. The sine wave is generated as follows: [code] samples[i]=static_cast<int>(32767 * amplitude * sin(static_cast<double>(i)*scale) ); [/code] where … | |
I'm getting this error: term does not evaluate to a function taking 1 arguments on the bolded and underlined parts of this code. I know this code isnt that great...has some extra stuff it doesnt need, but I'm working on that. This is pretty much the first program I've made … | |
i'm looking to get a first name followed by four scores and finally a last name, stored into multiple arrays (a char *array, a float array, & a char *array). getting the scores i understand however the names are pointer arrays. as far that goes what am i doing wrong … | |
Ok, I have a program that uses three classes and a driver program, all compiled separately. One class is a Date class. The Date class header looks like this: [code=c++]#ifndef DATE_H #define DATE_H #include <iostream> using namespace std; class Date { public: // initializers Date(); Date(int day, int month, int … | |
Hi, I am hoping someone will kindly help me out. I am new to ASP and need to create a connection to an SQL server 2005 database. I have failed misserably at web so far and is my worst subject on the course that i am doing. I understand that … | |
Hi, I'm trying to write a script to allow a customer to access the status of their order. I have set up the database properly, including all the fields necessary. I have successfully written a registration script, allowing the customer to register his/her details into the database, but where I'm … | |
I am working on sorting strings of integers with a radix sort. I am confusing myself on the code logic however. I have a file with integers, one to a line, and padded so 1 would be 001. I want to read those integers as strings so I can later … | |
I found _isnan() in float.h for VS2008, but I would like to SET a variable to a NaN intentionally, not check if it is one. Is this possible? Thanks, David | |
is there a built in function to deal with numbers similar to how the swap member function (first.swap(second);) deals with strings? thanks | |
hi frends i'm a novice in php... i just installed php and apache 2.2.x webserver and just wanted to try some very basic stuff... [CODE] <html> <body> <?php echo "Hello world"; ?> </body> </html> [/CODE] but rather than showing the output in the browser it shows the whole code.... could … | |
hi, im having trouble when outputing the data from my program. i am trying to output numerous amounts of data into 1 txt file when running through a loop, but everytime it writes to my file it overwrites the previous data stored with in it. Can anyone offer some advice … | |
[code]#include <iostream> #include <time.h> #include <fstream> #define MAXSIZE 1000 #include <cstring> #include <string> using namespace std; class Students { public: string firstName; string lastName; string social; double gpa; Students() { firstName = "Adam"; lastName = "Wilson"; social = "000-00-0000"; gpa = 0.00; } Students(string newSocial, string newFirst, string newLast, double … | |
Hi Is it possible to overload return() function for some part of code (ie. for the scope of some class)? I would NOT like to define separate function to do 'other stuff' and use it on every return like that: return(myFunction()); Is it possible? Maybe there is some other trick? … | |
Hi all. I have posted on this before with no response. Let me try a different way. I have a db with a few tables :- ATHLETE, which contains fields ATHLETE (the record Id), FIRST, LAST, AGE and SEX; MEET, with fields MEET (the record Id), and MNAME; RESULT, with … | |
Hi, I am a beginner in php mysql... I want to pass null values to integer from PHP file to mysql stored procedure. eg: $name = "John"; $age = $_POST['age']; // Which is a null value.. and i called the procedure like CALL InsertStudent('$name',$age); my procedure is not executing ... … | |
so i'm trying to fix my "load" function, but i can't seem to get it to work correctly. here's the load function i have currently: [CODE]void load(string messages[], int keys[], int& numElements) { int index = 0; int key; string message; while(index < MAX_SIZE && key > 0) { cout … | |
Is there something else I have to do to get a message with an error occurs other than this: [code=vb] On Error GoTo Handler 'Code that will cause an error Handler: msgBox(Err.Description) [/code] The Handler gets thrown but it is empty.... Just a message box comes up with no text. | |
i have a problem with my form. there are 2 button : a login and a register button . login but will redirect to welcome.php, register to register.php. i put the action in the form like this <form name="login" method="post" action="welcome.php" > the problem is both buttons turn me to … | |
hello i am trying to display an image from a database which has just been uploaded by the user. when they go onto the next page the image should be displayed here. I have been able to get it to display the path for the image that haas been stored … | |
Im a Novice in C++ and Im writting test in few weeks time... have got this question paper and there is something about pow function... when I asked my instructor about it, he just gave me his usually glance and say I must figure it out....well now back to my … | |
Hi all, How can i avoid same php page from being opened in two windows? If the page is opened in one window, then if the user tries to open the same page in another window, he/she should be given a message that the page is already open. Can anyone … | |
Is is possible to clear the value of a bean using the jsp:setproperty tag? i have tried [CODE] <jsp:setProperty name="MyNameBean" property="subscriberName" value="" /> [/CODE] but it didnt work. Please help! | |
Hi all, Iam newbe to this forum and seeks some help. I am using a msflexgrid in vb6 which uploads data from the net. What I want the uploaded data in msflexgrid having 10 cols and 10 rows to be saved in access database and also want to save the … | |
I'm still working on the same Flight Database as before. It's a program using 3 classes each with their own header and implementation files. The 3 classes are Date, Flight, and Trip. The Date Class is only used within the Flight and Trip Classes. So those two classes each have … | |
I have three child classes which 2 of them work and the last one has the "not a base or memeber error" can anyone tell what went wrong? please see the last file at the bottom [code=cpp] # include <iostream> # include <string> using namespace std; class Employee { public: … | |
Hi all, Basically I'm banging my head against the wall recently trying to get a list of checkboxes to pass variables to a SQL query. If the checkbox is ticked then I wish for the a certain SQL query to be passed. This is my code at the moment that … | |
I am very new to both Python and programming. I am in need of some help with this small project that I am working on. I have several text files in a directory. I want to compile them into one master file. There is a common variable, x and y … | |
When is it more efficient to store the value of a calculation than perform that calculation 2 or more times? I have always been under the impression that performing a simple arithmetic calculation two or three times is faster than instantiating a variable to hold the value of the calculation. … | |
Hello, I have been wondering how to keep a value even after a program ends. An example could be a countdown of days on a trial of a product. It must be able to not be changed by the user. How would I do this? | |
What is the difference between simple form & MDI form? | |
Hallo, i stumbled over a curious behavior today, which i never saw in more than 15 years of usage of cpp compilers: The following gets compiled without any error message by gpp 3.4.5 (from mingw, included in devcpp), where i normally would seriously expect an error message: [code]sometype funcname(sometype somearg) … | |
I have two classes, Date and Flight. In my Flight object I have Two date objects. I'm running into trouble when trying to initialize the Dates. My current code is below. I don't understand why what I'm doing doesn't work. The flight header file has a #include "Date.h" command, so … | |
Hello Trying to fetch a part of a string with g_regex_split. The string may look like: `"9999 00 00 CC 03 00 CC 00 00 'xxx'"` What I want is to remove everything except: `00 00 CC 03 00 CC 00 00` My idea is (since there is no get_this_part_of_string … | |
How do I write a C++ for loop that displays the following set of numbers: 0, 10, 20, 30, 40, 50 ..... 1000 I don't know anything about loops, so any help will be much appreciated Thank you much. :) | |
Hi friends, My problem definition is as follows: Creating a class name called "Kangaroo". 1] An __init__ method that initializes an attribute named pouch_contents to an empty list. 2]A method named by creating put_in_pouch that takes an object of any type and adds it to pouch_contents. The following is the … | |
I created a profile where,after registration and login in Someone can view his dteails. How can I do so that,he/she will be able to edit/update that same profile, after login in. i use "User" and password in login in. Help please!!! | |
Hello does anyone know how to bring details from a database into a textbox? becuase ive got the login working and it displays whos logged in but i want the postcode to appear in a textbox, the postcode is kept in mysql table called address. /after connecting to mysql [code=php]$query … | |
Need some help. I have an assignment that calls for the sorting of two arrays. One is an array of doubles, the other chars (two dimensional). I cannot figure it out for the life of me. Here is the whole program. [CODE]#include<iostream> #include<iomanip> using namespace std; //Function Prototypes double sumRain(double[], … | |
Hey people, just a quick one here, as its getting quite annoying. Basically i want the form to only be closed when a correct password is entered using the form closing event. i have tried the following methods but they all seem to crash... any ideas? They all start with … | |
When i am loading the below page it is showing this error message: Parse error: syntax error, unexpected $end in c:\PHP5\www\JINO\Tutorial\mis\from net\login_full\register.php on line 76 Here line 76 is the last line.. Please help.. [code=php]<?php mysql_connect("localhost", "root", "") or die(mysql_error()); mysql_select_db("tutorial") or die(mysql_error()); if (isset($_POST['submit'])) { if (!$_POST['username'] | !$_POST['pass'] … | |
Hi, I am developing some PHP code for a client and part of the code must send emails. My development environment is using Eclipse on Windows. I want to test the email functionality from my local machine. I have to set the values in php.ini file but I am not … |
The End.