199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for nanodano

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 …

Member Avatar for Rashakil Fol
0
495
Member Avatar for Drowzee

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 …

Member Avatar for Drowzee
0
437
Member Avatar for Alphabetized

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

Member Avatar for ~s.o.s~
0
134
Member Avatar for Smooth_411_2000

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?

Member Avatar for Comatose
0
97
Member Avatar for Drowzee

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 …

Member Avatar for Drowzee
0
165
Member Avatar for cocojim

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 …

Member Avatar for WolfPack
0
231
Member Avatar for ~s.o.s~

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

Member Avatar for WolfPack
0
122
Member Avatar for Eyrestes

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 …

Member Avatar for sajoans
0
175
Member Avatar for infinity4ever

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 …

Member Avatar for campkev
0
100
Member Avatar for ~s.o.s~

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

Member Avatar for WolfPack
0
249
Member Avatar for Puckdropper

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 …

Member Avatar for papa_fal
0
5K
Member Avatar for larmit

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 …

Member Avatar for sirWest
0
3K
Member Avatar for Ene Uran
Member Avatar for vegaseat
0
189
Member Avatar for Acidburn

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

Member Avatar for Dave Sinkula
0
110
Member Avatar for Nedals

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

Member Avatar for Nedals
0
115
Member Avatar for brale

Is there a way to get adress of beginnig of my program in operative memory while it executing?

Member Avatar for brale
0
207
Member Avatar for ashneet

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 …

Member Avatar for Puckdropper
0
148
Member Avatar for Woobag

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 …

Member Avatar for Rashakil Fol
0
190
Member Avatar for BirdByte

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 …

Member Avatar for Ammar Gaffar
0
187
Member Avatar for vince_2x

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

Member Avatar for bumsfeld
0
159
Member Avatar for manish812

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

Member Avatar for cancer10
0
248
Member Avatar for Ries

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

Member Avatar for cancer10
0
149
Member Avatar for j4mes_bond25

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 …

Member Avatar for j4mes_bond25
0
389
Member Avatar for vjw757

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 …

Member Avatar for Puckdropper
0
161
Member Avatar for Blujacker

Is possible to display animated image?for example [URL="http://tibia.gamigo.de/images/monster/demon.gif"]this?[/URL] thanks:D

Member Avatar for bumsfeld
0
678
Member Avatar for Woobag

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

Member Avatar for Drowzee
0
153
Member Avatar for kahaj

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

Member Avatar for Dave Sinkula
0
179
Member Avatar for bibo1978

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 …

Member Avatar for bibo1978
0
246
Member Avatar for sofia_nkl

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

Member Avatar for Rashakil Fol
0
143
Member Avatar for winbatch

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 …

Member Avatar for kris.c
0
167
Member Avatar for Nedals

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

Member Avatar for Nedals
0
205
Member Avatar for server_crash

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 …

Member Avatar for WolfPack
0
850
Member Avatar for adileoxfxanis

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 …

Member Avatar for server_crash
0
190
Member Avatar for scialom

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

Member Avatar for oscarsierra
0
142
Member Avatar for aarya

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.

Member Avatar for oscarsierra
0
269
Member Avatar for quansah

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

Member Avatar for JNathanson
0
1K
Member Avatar for evil_dude_01

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 …

Member Avatar for strick9
0
216
Member Avatar for Stewie

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 …

Member Avatar for Stewie
0
137
Member Avatar for Sailor_Jerry

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

Member Avatar for Sailor_Jerry
0
151
Member Avatar for Bones85

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 …

Member Avatar for Bones85
0
198
Member Avatar for nsan

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 …

Member Avatar for iamthwee
0
221
Member Avatar for jfedor

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?

Member Avatar for jfedor
0
278
Member Avatar for bkendall

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 …

Member Avatar for anardodesign
0
158
Member Avatar for Saundra

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 …

Member Avatar for yvs
0
321
Member Avatar for kris.c

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 …

Member Avatar for Dave Sinkula
0
138
Member Avatar for crawf

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 …

Member Avatar for crawf
0
86
Member Avatar for Bonjava

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

Member Avatar for yvs
0
186
Member Avatar for vinahorse78

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

Member Avatar for yvs
0
210
Member Avatar for INI

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

Member Avatar for INI
0
88
Member Avatar for naramis

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 …

Member Avatar for Comatose
0
162

The End.