199,113 Archived Topics
Remove Filter ![]() | |
I have been writing some CGI scripts in C++, and I was wondering if anyone else has done the same? I have built a pretty decent sized library of functions I use a lot for formatting form inputs and such. The reason I chose C++ is because I'm so familiar … | |
This is an offshoot of a specific problem I've posted in the C# forum. However, it applies to C++ as well. If you have opened a file, specifically, an image file, but would like to rename (or, as MSDN says, 'move) the directory the file resides in, what are the … | |
Hey everyone, im new at c programming, i was gonna do c++ but there was no c++ book at my library lol. Anyhow, i notice that all the programs I write open up in DOS, and my book doesnt say nething on how to change this. Im using Dev c++ … | |
How do i capute text entered in a text box, enter that text in to the software program at the appropriate time. and do it all while minimized or hidden from view? | |
I have a fairly simple set of controls that make up an image viewer. The goal of this software is to allow image captures to be stored in a temporary directory, viewed in the image viewer, and then have the user able to choose to delete or save the contents … | |
Rookie Disclaimer. I am confused about what is the difference between: A: char *p="string"; B: char q[10]="string"; For A: I can do "p++", which gives a pointer points to "t". But I cannot do command like "strcat(p, " test")", for example. For B: I can do "strcat(q, " test")", but … | |
Hello to all progg. out there. The sample prog. i have written is of which i am facing three doubts : [CODE] char *someFun1() { char temp[ ] = "string"; return temp; } char *someFun2() { char temp[ ] = {'s', 't','r','i','n','g'}; return temp; } int main() { puts(someFun1()); puts(someFun2()); … | |
Hi all, This is my first post here. I appreciate any help you can give me. I am writing a solution that involves having a ConnectionManager application aside from the main application. I intend to have the ConnectionManager create sessions that wrap around the OleDbConnection that provides the connection to … | |
hi all i write this code Protected Sub btnCreate_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnCreate.Click Dim SQLCreate As New SqlCommand Dim Conn As New SqlConnection Dim DA As New SqlDataAdapter Dim DS As New Data.DataSet 'Create DB SQLCreate.CommandText = "CREATE TABLE test " SQLCreate.Connection = Conn Conn.ConnectionString … | |
Hello to all coders out there. I have a doubt regarding the format "long double" which is producing wierd results when used in the case of a factorial program. When "long double" used with C lang. produces the output input = 3 factorial = -2.000000 while when used with C++ … | |
Hello, I installed PHP 5 on my Server 2003 machine with IIS and got that working properly. I want to connect to my school's MS-SQL student database, but PHP balks when it hits "mssql_connect" (or whatever the statement is). How can I set this up so I can actually connect … | |
I was wondering if anybody has used the audio level detection software available at [url]http://www.vbcodesource.com/downloads/audiolevel.zip[/url] When I download the source code and run it I get two errors: "Couldn't get wavein meter" "Couldn't get waveout meter" I am a beginner programmer and appreciate any advice or suggestions. Thanks! Joe PS … | |
Is there a way to do math with hexadecimal numbers in Python? | |
[code] typedef struct Cell { int north,south,east,west; int RD; bool visited; } Cell_Info; Cell_Info a[100]; [/code] this doesnt seem to want to dereference ..when i type a[0]. i get an erorr instead i should have a list of attributes that are instide the structure...Any ideas? | |
This is a snippet from a larger block of code. The print statements are included for testing. Within 'main', if I ouput the 'cell_ptr' or 'params' pointers, it correctly returns pointer values but if I try to output an element from the params array, I get an '...illegal operation...' message. … | |
Is there a way to get adress of beginnig of my program in operative memory while it executing? | |
I think is problem may be more connected to HTML rather then php. The issue I have is that I have a my sql db and in one of the colume in which there is a string like: [code]Testing 1 2 3[/code] but when I extract the variable all I … | |
Hey im trying to make a function that you can pass two values to, a RANGE_MIN and a RANGE_MAX, than generate and return a random number between those two numbers. My first section of code repeats the same number every time i run the program (unless i change something and … | |
I'm working on code that deletes a record in an Access database (Northwind). The delete works if the record isn't related, but doesn't if there are child records. I realize it's probably because the child records must be deleted before the parent record, but being new to ado.net, I'm not … | |
Hi guys! sorry if this question has been asked b4. I just wanna know what is the difference between a==b and a is b? Thanks | |
[B]Warning[/B]: session_start(): Cannot send session cookie - headers already sent by i want to use session in my prog and this error comes every times due 2 which i cann't use session which is vry important for me. but whn i run the same prog in my computer i.e. localhost … | |
This is my code im using for my login, but when it re-directs to the next page the $_SESSION['email'] array doesnt contain any data, what is wrong with my coding that causes this(btw to check it had no data I echoed it and nothing came onto my screen) [code]<?PHP session_start(); … | |
I've been trying to display a simple & short message in viewer's own language for which I'm using the following script, right at the top of their screen i.e. just above the banner (in my website on: members.lycos.co.uk/darsh25/ .................. select "contact.php" Although, in my browser, this script identifies that my … | |
ok im installing a script at [URL="http://magicalstart.com"]http://magicalstart.com[/URL] and everything looks like is up and running. but when i try to access the admin panal at [URL="http://magicalstart.com/admin/index.php"]http://magicalstart.com/admin/index.php[/URL] .... the only think that happens is the screen goes blank. .. i was getting sql errors but that was because i had the … | |
Is possible to display animated image?for example [URL="http://tibia.gamigo.de/images/monster/demon.gif"]this?[/URL] thanks:D | |
Im used to programming in Java as it was my first language to learn. In C++ is... [code]int myFunc(void);[/code] equal to [code]int myFunc();[/code] I was doing a number of tests, but the answer was still unclear... | |
[code] //Unjumb #include <iostream> using namespace std; char *arraynonjum [250] = {"BRIDEGROOM", "CEPHAS", "CLAY", "BLESSING", "NAZARETH", "BLOOD", "DORCUS", "EPAPHRUS", "DAMASCUS", "EDOM", "BOAZ", "JERABOAM", "CELESTIAL", "CHILDREN", "COVENANT", "TEMPLE", "BAPTISM", "EPHESUS", "AARON", "MOSES", "KEDAR", "COMFORTER", "ISHMAEL", "STONING", "COMPASSION", "CROWN", "NEBUDCANEZER", "EPHRAIM", "JORDAN", "CAIN", "NINEVAH", "EZEKIEL", "CHARIOT", "INCENSE", "WISDOM", "EDEN", "ESTHER", "NEHEMIAH", "ABIMELECH", … | |
hi, well my question may be very basic but can u help me I have a buffer that including my data which is binary data and I want to use the iostream to handle the buffer read/write, seek ... etc, I am using the strstream to do this, by setting … | |
[B]Description: [/B]An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. [B]Parser Error Message: [/B]The directive is missing a 'assembly' attribute. [B]Source Error:[/B] [COLOR=red]Line 1: <%@ Register TagPrefix="cr" Namespace="CrystalDecisions.web" Assemply="CrystalDecisions.web" %>[/COLOR]Line 2: … | |
Hi, I've inherited some code in C that acts as a server and receives requests over a socket. That is all working fine. I wanted to make a very small change to the server code to print out the hostname of the client connection. However, I'm always getting 0.0.0.0 as … | |
[code] #include <iostream> #include <string> using namespace std; struct record { string C0; string C1; string C2; }; int main() { record param; param.C0 = "heading1"; param.C1 = "heading2"; param.C2 = "heading3"; string key = "CO"; string data = param.C0; cout << "DATA: " << data << endl; return 1; … | |
I have the following simple piece of code: [code] double new_amount; printf("Enter an amount: "); scanf ("%d", &new_amount); [/code] For some reason, it always give me zero as the new_amount no matter what I input. What exactly am I doing wrong? Also, is there a way I can do a … | |
If this isn't allowed...I'm sorry... Hello, I am a Freshman, and when I get into my sophmore year I'll be taking a Computer Science Class. The only problem is...I don't know anything about Computer science. My friend told me if I wanted to be ready for the class, I should … | |
Hi All, I am getting a rabdom date from the db. Now for each date that I get I have to reduct 3. For example: I get 02/12/2005 The new date supposes to be: 30/11/2005 How can I do that? Thanks, Assaf | |
i want to learn asp . can i use mysql database with asp.how to connect to mysql database. will u tell me the basic asp tutorials for beginners. | |
i have a form with checkboxes and i was wondering how i could write the php code so that the choices you check can come into my email. here is the html coding for the form: [code]<form action="<?php echo $me;?>" method="post" name="form1" id="form1"> <p>Name : <input type="text" name="textfield"> </p> <p>Course: … | |
Please help me !!!!! I want to know how to sort a list of records in a text file. I want to sort them by customer number. Here's whats in my module Public CustomerArray() As CustomerRecord Public Type CustomerRecord Number As String Name As String Address As String Town As … | |
I keep getting this error when ever I try to update or delete a record from my site. The error that I keep getting is "The string is not closed" I have use an example straight from the book so I don't know where to go. Here is my code … | |
Is there a way to get this down to one line of code? [code] boolean [] myArrary = {true, false}; return myArrary; [/code] I'm trying to combine those lines into one, but I am not sure what the correct syntax would be. Thanks, sj | |
hey everybody, this is my first post here. So first of all my apologies for any wrongdoings in the netiquette. Yes, its from school, and its an example from the book, I recreate them to figure out what commands i need and to memorize them. But the problem is, that … | |
some easy questions about c++ 1. is it possible to link the c++ files with databases like oracle,MySql? (coding the file to access the databases) 2. can we put the compiled files on websites? Google.com is build in C and C++ and their search engine is running on that. how … ![]() | |
I need some sample java code or some direction in writing a program to convert a fixed width file inot a .csv comma deleimited file . Can anyone help me? | |
I have a website that I am using includes on to make life easier. One issue that has come up is that I am also using a flash header on the top of each page. I would like to put the object and embed tags inside my posthead file with … | |
I have put together a Human Resource database for your company. The HR manager wants me to setup the vacation time field to automatically adjuster it's self each time their vacation changes each year from their Hire Date. My fields are: Date_of_Hire and VTBeginningBalance. Each time their hire date comes … | |
Hi all, I wish to write the contents of a large char array into a file. I open the file for writing and say, fp is the pointer to the file. and I write : fprintf(fp,"%s",buff); Does fprintf write the whole array into the file or is there any inbuilt … | |
Hi everyone, I have a simple applet to display the perfect numbers from 1-500...but when the numbers that are considered to be perfect are displayed, they are written over the top of each other... Ive used a simple for loop, but it doesnt seem to help...does anyone have any ideas … | |
Hi, I need some help with some method in my classes. I started on some if not all of them. I just cant seem to find what im doing wrong here. Any help would be greatly excepted. Thanks Here is code: [code][COLOR=#7f0055] [B][LEFT]import[/LEFT] [/B] [/COLOR][LEFT][COLOR=#000000]java.util.Scanner;[/COLOR][/LEFT] [B][COLOR=#7f0055][LEFT]public[/LEFT] [/COLOR][/B][COLOR=#7f0055] [/COLOR][LEFT][B][COLOR=#7f0055]class[/COLOR][/B][COLOR=#000000] Assignment3[/COLOR][/LEFT] [LEFT]{ … | |
[INDENT] [INDENT]Hi all, I 'm writing a small program called ATM (Automatic Teller Machine) connected to Microsoft Access Database in Java. The program is complied without no fault, Howerver it doesn't display Form which I can enter user information (such as: accountnumber, pin,...). It shows: "Usage: Java ATM databaseDriver databaseURL, … | |
Hi Guys, Below is a code that searches for a value in a cell in excel. I want a code that would check to see if the word has been found or not. When I do the search and the word is not found, I get an error message " … | |
hello there, im doing a program of consolidate database. however, my scope is to do it automatically. so far, i have designed a timer and also codes to insert the data from excel file into MySQL database. then, my idea is whenever there is an error occured in a particular … |
The End.