132,726 Archived Topics

Remove Filter
Member Avatar for
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 …

Software Development c++ image
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++ …

Software Development 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?

Software Development visual-basic
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 …

Software Development image session
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 …

Software Development c++
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()); …

Software Development c++
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 …

Software Development api first-post session vb.net
Member Avatar for sajoans
0
175
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++ …

Software Development c++
Member Avatar for WolfPack
0
249
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 …

Software Development audio visual-basic
Member Avatar for sirWest
0
3K
Member Avatar for Ene Uran

Is there a way to do math with hexadecimal numbers in Python?

Software Development python
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?

Software Development c++
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. …

Software Development c linked-list
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?

Software Development c
Member Avatar for brale
0
207
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 …

Software Development c++
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 …

Software Development sql vb.net
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

Software Development python
Member Avatar for bumsfeld
0
159
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

Software Development image python
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...

Software Development c++
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", …

Software Development c++
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 …

Software Development c++ ios
Member Avatar for bibo1978
0
246
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 …

Software Development c client-server socket-programming
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; …

Software Development c++
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 …

Software Development c c# c++
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 …

Software Development java
Member Avatar for server_crash
0
190
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 …

Software Development display email visual-basic
Member Avatar for strick9
0
216
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

Software Development java
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 …

Software Development first-post java
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 …

Software Development c++ google oracle
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?

Software Development java
Member Avatar for jfedor
0
278
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 …

Software Development c
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 …

Software Development java
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]{ …

Software Development java
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, …

Software Development java microsoft microsoft-access
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 " …

Software Development visual-basic
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 …

Software Development mysql visual-basic
Member Avatar for Comatose
0
162
Member Avatar for costantinos

hello i am stuck at an IO problem and i need some help. I need to read a file that i have but i want to parse it char by char and store the contents in an array. in order to explain i have a file which has two columns, …

Software Development c++
Member Avatar for costantinos
0
130
Member Avatar for freemind

Hi everybody! I recently wrote a little simulation program, that simulates a real-time elevator system with 3 elevators. Since the code is around 530 lines I presume it is not a good idea to paste it here. There is some number of minor flaws of logical type and I would …

Software Development c++ email first-post
Member Avatar for Rashakil Fol
0
273
Member Avatar for ds_matrix

[code]///Program for Select Sort //Name: Sharan Shanmugaratnam //Date: June 6th, 2006 //Constants #include <stdio.h> #include <ctype.h> #include <string.h> #include <time.h> #define SIZE 1000 int main (void){ char x[1000][1000], y[1000][1000]; int size; char a[0][1000]; int sorting=0; FILE*file; //Opens the file that contains the 1000 words. file = fopen("words1.txt","r"); //Reads the file …

Software Development c
Member Avatar for Rashakil Fol
0
121
Member Avatar for it-1

i'm using jBuilder 9 interprise and i need to know how to create en .exe and i'm having a trial version so the help isn't available..can anyone help please?? thnx

Software Development java
Member Avatar for jwenting
0
145
Member Avatar for INI

Hi Guys, I am trying to design a program whereby the user will click on button in a form and the system will upload a form from a different excel/vb file entirely. Please could someone tell me how that works or if it is possible at all? Thanks. Ini :?:

Software Development visual-basic
Member Avatar for INI
0
162
Member Avatar for yuelabtina

Hi, I wrote a class WAVELET1 in borland c++ 6.0 environment. And used this class member function in another file. It always said there was error when compiled. The error messages were as followings, [QUOTE] [C++ Error] wavelet.h(6): E2238 Multiple declaration for 'WAVELET1' [C++ Error] wavelet.h(6): E2344 Earlier declaration of …

Software Development c++
Member Avatar for yuelabtina
0
239
Member Avatar for Matt Tacular

I had that problem a few days ago about running external python programs, which I know know can be done with [code]execfile("filename.py")[/code] But I now have a new problem.... Here is my program I am making for myself: [code]import random from Tkinter import * mainWindow = Tk() strGame="" def dieSimulator(): …

Software Development python tkinter
Member Avatar for a1eio
0
2K
Member Avatar for Woobag

Ill put my code at the end, as not to scare off anyone from reading on past the code (as if something so simple could scare!) I basically wrote this tonight. I have been working on my C++ skills, specifically in the way of learning newer concepts...such as implementing OOP, …

Software Development c++ first-post oop
Member Avatar for Ancient Dragon
0
252
Member Avatar for tk005x

I got most of it done except one part to it. I also took out the part that picks the word.. I used the compare string command for each guess to see if the letter matches with what the user put in or not. But I wanted it so that …

Software Development first-post visual-basic
Member Avatar for agrothe
0
200
Member Avatar for vanii

Hi all, I want to know whether "sleep command in shell scripting is a guarenteed command or not " In java 'Sleep() ' is not guarenteed to be called when CPU is Idle. Regards, VANII

Software Development shell-scripting unix
Member Avatar for jim mcnamara
0
345
Member Avatar for Sailor_Jerry

How do i return a boolean array? i get an error stating that i can't cast from boolean[] to boolean. I have something like below. [code] method logic... boolean [] information = {true, false}; return information; // this line does not work. [/code] Thanks sj

Software Development java
Member Avatar for Sailor_Jerry
0
167
Member Avatar for wawankot

Dear All, I have alot of old funtions that have 'FILE *' as passing parameter. Now I am using Compound File...It use IStream. Does anybody know how to convert IStream to FILE* ? Thank's

Software Development c++ file-system
Member Avatar for wawankot
0
86
Member Avatar for racerrunner

Halo can someone tell me how to convert a double variable to 2 decimals? I try using the below code but it cannot work. DecimalFormat df = new DecimalFormat("0.00"); String a = df.format(123.5%11); double AA = Double.parseDouble(a); for instance i want AA = 2.50 instead of 2.5. the program keep …

Software Development java
Member Avatar for jwenting
0
142
Member Avatar for INI

Guys, I have a question, is there any way in code to determine if a button has been clicked? I want to use one form when a control button on a second form is click; I do not know how to do that, though I know it goes something like …

Software Development visual-basic
Member Avatar for INI
0
146
Member Avatar for dev.cplusplus

Hi, to all I know this was ask before, but in the Post you say search in Google, I did and I didn't found what I'm looking for. How to connect to SQL Server from C++ code? I found the tutorial: [URL="http://www.codeproject.com/database/sqlconnect.asp"]http://www.codeproject.com/database/sqlconnect.asp[/URL], and is working and is very good, but …

Software Development asp c++ first-post google sql windows-server
Member Avatar for Ancient Dragon
0
166

The End.