7,373 Topics

Member Avatar for
Member Avatar for 4221dave

I'm having some trouble, I'm using Dev C++ and I want to make my exe file and my dll file into one. So if i use my exe on another computer it tells me it's missing "libmySQL.dll" So I don't have to have two files. My current code is: [CODE]#include …

Member Avatar for sfuo
0
122
Member Avatar for Agent-of-Chaos

hi i am writing a program that reads integers(signed or unsigend) from file. my input file contains these numbers(without brackets) [41 35 -66 -124 -31 108 -42 -82 82 -112 73 -15 -15 -69 -23] and my code is: [CODE]#include <stdlib.h> #include <stdio.h> #include <conio.h> #include <string.h> main() { FILE …

Member Avatar for gerard4143
0
176
Member Avatar for jehdo

Objective This assignment has been designed so that you understand the concept of using dynamic memory allocation in C++. After the completion of this assignment you should have a good grasp on: o Array of Objects o Use of new Operator for dynamic memory allocation in C++, for user-defined types. …

Member Avatar for Fbody
0
605
Member Avatar for smithr3

Hi there. The problem that I'm experiencing here is quite a specific one, and after a few searches, I concluded that I ought to just ask. Tbh, I'm a little bit unsure what to search exactly! I have calculated earlier in my program various values in various arrays, angle[], t[], …

Member Avatar for Ancient Dragon
0
128
Member Avatar for dandixon

I am getting this error and i cant seem to figure out why [CODE] Warning: file_get_contents(C:/xampp/htdocs) [function.file-get-contents]: failed to open stream: Permission denied in C:\xampp\htdocs\ucuk\news.php on line 157 [/CODE] heres my code [CODE]<?php // Build SQL Query $query = ("SELECT * FROM heading LEFT JOIN sub_heading ON heading.heading_id = sub_heading.month"); …

Member Avatar for nonshatter
0
154
Member Avatar for arjen

hey guys can u help me with this the problem of this code should delete only the selected item from the listview in a report.txt but this code delete all the data in the txt file whether i selected only one data from the listview.... [CODE]Dim myFile As String = …

Member Avatar for arjen
0
719
Member Avatar for kuchick32

I have an assignment where I'm taking a file from my computer and using the numbers to pull something out. I'm supposed to take numbers from a file and checking to see how many times the number is in the file. But i can't seem to figure it out. This …

0
87
Member Avatar for nwalser

Ok so to give you a brief summary of whats going on our original assignment was to make a password directory that adds, saves, looks up, and removes a name and password that are connected together in an array. So now we need to alter the code so it works …

Member Avatar for NormR1
0
307
Member Avatar for ziggystarman

Hello I'm looking for the correct method/way for reading & writing raw JPEG image binary data. I am obtaining the raw data via TCP stream, the official JPEG specs say that the raw JPEG image data starts at HEX value 0xffd8 & ends at HEX value 0xffd9 as below... [CODE]Start …

0
109
Member Avatar for crodriguez08

Hey there, I'm having trouble getting my program to read the last instruction of the file, and so far, I haven't been able to figure out why. Any help would be appreciated. [CODE]/* The Simpletron Machine Language Program. The purpose of this program is to simulate a primitive computer. This …

Member Avatar for crodriguez08
0
193
Member Avatar for Kingcoder210

Let me show you how do I create setup file of my program. [Code] Project>WindowsApplication1 properties>Compile>Advance compile option>Target CPU : AnyCPU Target framework(all configurations): .NET Framework 3.5>OK File>Add>New Project>Other Project Types>Setup and Deployment>Setup Project>OK Setup>Properties>Prerequisites>Select Create setup program to install prerequisite components & Windows Installer 3.1 & .NET Framework 3.5 …

Member Avatar for lolafuertes
0
551
Member Avatar for mrickert

Hi- Trying to rename a file using the rename() function. It works, but it appends an '@' to the end of the renamed file. Here's my code: [code=c] char oldname[] ="file1.csv"; char newname[26]; newname[0] = '3'; newname[1] = '1'; newname[2] = '1'; newname[3] = '3'; newname[4] = '3'; newname[5] = …

Member Avatar for Fbody
0
126
Member Avatar for saad749

[B]Aim:[/B] Well, What I am trying to do is to store the names in an array and scores scored in another array. Then Write them into the file. When the program is ran again, I will like to read the stored names and scores, add the new name and score, …

Member Avatar for saad749
0
157
Member Avatar for BastienP

Hello there, I'm currently using a perl scrip that checks if every line in a file 1.csv is present in a file named 2.csv, and writes only the different lines. The output is a file called out.csv. What I'm trying to do is to write only the most recent lines …

Member Avatar for d5e5
0
195
Member Avatar for danholding

[CODE]Traceback (most recent call last): File "C:\Documents and Settings\Administrator\My Documents\textprocessing\test files\keep 6 latest file.py", line 37, in <module> shutil.move(file_name, dst_file) File "C:\Python31\lib\shutil.py", line 278, in move copy2(src, real_dst) File "C:\Python31\lib\shutil.py", line 113, in copy2 copyfile(src, dst) File "C:\Python31\lib\shutil.py", line 66, in copyfile fsrc = open(src, 'rb') IOError: [Errno 2] No …

Member Avatar for danholding
0
421
Member Avatar for sss33

When you have a file with a lot of lines of numbers. I want to know if instead of writing the formula to calculate the numbers for everyline of data. Is there a way to tell it to apply the formula I have made to every line until there are …

Member Avatar for Gribouillis
0
99
Member Avatar for xcarbonx

Hi, im using visual studio 2010, and for my recent assignment i am having difficulty when closing a text file. My program is to read in the data from a text file and then do some calculations and then output the result. My text file Measurements.txt looks like this: 5 …

Member Avatar for codeorder
0
410
Member Avatar for harikrishna439
Member Avatar for buzz-lightyear

Hi, I am just setting up a website for a friend who is a singer/songwriter. He wants to make his music available for purchasing from his website via digital download. However I have never set up a website that makes use of ecommerce, could you please suggest what the best …

Member Avatar for rashida11
0
173
Member Avatar for Nathaniel10

I am doing an exercise from Stroustrup's book. It is the drill from chapter 10 on input and output streams. The program I wrote compiles but crashes when it reaches the prompt for the output file name. My IDE (VC++ Express) simply says there is an unhandled exception yielding a …

Member Avatar for Nathaniel10
0
157
Member Avatar for boos800

I'm beginning a program that needs to read a file given in the command line. My first question is, if my command line looks like: $java mysimulator 5 proc.txt And I want to use proc.txt, which args[i] is it? Right now I'm assuming that the class name is args[0] and …

Member Avatar for boos800
0
4K
Member Avatar for zachattack05

Ok...I spent hours (I know, probably something you pros know already) trying to figure this out. I finally did and thought I would share it with others considering I found nothing (literally) out there on this. Feedback would be much appreciated! Most of the time string data written to a …

Member Avatar for zachattack05
0
677
Member Avatar for abdul_rouf26

Hello Experts, I am Developing A Web Project. I have done the given below Code in which I want to download a (.mp3) File from a folder located on my web server. The given below Code working fine but the problem is that when I run this code on my …

Member Avatar for kvprajapati
0
622
Member Avatar for Peter4n31

Hello. I am debugging a larger project and a tool called Crash Validator keeps pointing line 1 in my code extract:"inline bool SortKnownFiles2 (etc.)" in DirLoader.cpp Error message in Crash Validator is “Cannot create a file when that file already exists.” (in c++ it runs fine, except a few random …

0
77
Member Avatar for ziggystarman

Hello I'm looking to extract jpeg image data from a mjpeg stream, but I'm not sure how to do this in c++ . The code snippet below does the job of connecting to the remote ip camera server & receives the mjpeg stream via tempBuffer variable. [CODE] // Loop and …

Member Avatar for ziggystarman
0
2K
Member Avatar for rajeesh_rsn

Hi friends, What is the correct method of uploading files using php ? Now I am using a simple file upload script and that will upload that file to a directory in my ftp server. And I will make that directory's CHMOD to 777. Is this is the correct way …

Member Avatar for Stefano Mtangoo
0
82
Member Avatar for kumar_k

Hi, Iam in the process of creating a program for converting words in a file to numbers. Am struck at the input file selection gui script. i want to create a GUI to open a file from the open file dialog box and to read the words in the file …

Member Avatar for kumar_k
0
143
Member Avatar for praky

I am writing a code for arithmetic compression. But my problem is i can't open the file 2nd time for reading. code is: [CODE] #include<iostream> #include<fstream> #include<stdio.h> #include<math.h> using namespace std; #define MAX_SYM 255 struct node { char ch; int count; /*public: node() { //cout<<"constructor at work. \n"; count =0; …

Member Avatar for praky
0
91
Member Avatar for Defensor

Hello everyone. I am trying to copy data from a file stream into a char*. I know there are ways to do it with std::string and getline, but I have an assignment where I have to have a class that will take a char* into one of its constructors (which …

Member Avatar for Defensor
0
207
Member Avatar for newbie_java

Hi! I am just a newbie here! I just wanna ask how to do the file handling in java applet? Do I have to do the certain policy/permission to perform it? If so, how would I do it? And another one, how can I close the APPLET WINDOW once I …

Member Avatar for NormR1
0
472
Member Avatar for spiderguy84

I am developing an app for a church. They have the following website [URL="http://www.cpcofc.org/?core=Webpages&page=Newsline"]http://www.cpcofc.org/?core=Webpages&page=Newsline[/URL] On their app, they would like to only show the content embedded (no links, no logo at the top, just stats and news). How could I go about doing that. I will post the source of …

Member Avatar for Dandello
0
115
Member Avatar for rcplguy15

Hi everyone I need to be able to read each character from a text file and store them in an array here is the text file: ********************* Ace of Spades 10 of Spades 3 of Clubs King of Spades 5 of Spades ********************* Queen of Diamonds King of Hearts Queen …

Member Avatar for Lerner
0
171
Member Avatar for Garrett2011

Beforehand I know how to define a macro in a file like header file by using #define directive but I want to know, regarding Visual C++ compiler, is there any kind of file which is specifically used to hold a macro so that we can use it anywhere in our …

Member Avatar for Garrett2011
0
217
Member Avatar for Pari13

Hello Developers, I am not able to get client path on file(image) upload .so i can disply that file(image) in image control on upload file. On my local machine below code worked nicely. [CODE] <img id="imgProductHallmark" name="imgProductHallmark" src="" alt="Image" width="95" height="113" runat="server"/><br /> <input name="ProductHallmarkUploadID" id="ProductHallmarkUploadID" type="file" onchange="LoadImage1()" runat="server" /> …

0
67
Member Avatar for jorgeflorencio

Hello my friends I have a txt file with the follow layout [QUOTE] error1 255 error2 34 error5 111 error3 23 [/QUOTE] and what i'm trying to achieve is, from this text file plot a trend chart with the errors and respective quantity! this is the code that i'm using.... …

Member Avatar for stultuske
0
2K
Member Avatar for suzan.balaa

Hey, My solution has 3 different projects. I have images in one of these projects which I need in the other projects. For example: Project A : contains "kitty.png" Project B: Needs the PHYSICAL PATH of "kitty.png" meaning C:\inetpub\wwwroot\ProjectA\Images\kitty.png Server.MapPath can not help me in this situation since I am …

0
111
Member Avatar for pallen

OK, this is as basic a question as any of you will get on this site. Here's the deal. I have a very basic PHP file saved, of course, as php. I have an HTML page built in Dreamweaver. So, how do I include that file in the HTML so …

Member Avatar for Lsmjudoka
0
231
Member Avatar for emko

Hi, I need to make a program that counts the frequency of characters in a file, then outputs how many times each character appears in it. I am trying to make a class for it, but I am having difficulties figuring out how to do the definitions for each method. …

Member Avatar for mrnutty
0
258
Member Avatar for michael123

I have a file server in the network, I try to search for the file contents based on search keywords (this is not only search for file name), need to search files like ".doc", ".pdf", ".html", is there an easy way to do that? for example I need to list …

Member Avatar for rhandore
0
48
Member Avatar for madmaze
Member Avatar for nv136

Hello everyone, i was a bit stupid installing a theme that required me to replace my explorer.exe in c:\windows.... and explorerframe im c:\windows\system32\ i am running a genuine copy of windows 7 home premium 64 bit. can anyone give me their explorer.exe and explorerframle.dll ? (64bit)

Member Avatar for caperjack
0
155
Member Avatar for chun0216

Hello, I am trying to run a program that uses raw file as an input file and then use a function that requires input file data into uint8_t array type argument. The problem is that when I use the sample input raw file, it works perfect but when I use …

Member Avatar for chun0216
0
138
Member Avatar for bettersaid

helo! can anyone help me in automatically saving files with fixed filename in python? the OUTPUT would be like this: FILE- A01.txt FILE- A02.txt FILE- B01.txt File- B02.txt i was hoping that i could save a file automatically after making some changes in the older version. Thank you, Gene

Member Avatar for bettersaid
0
445
Member Avatar for pawan_sharma777

i make this project what i unable to use file handling[CODE] #include<iostream.h> #include<conio.h> #include<dos.h> #include<stdlib.h> #include<stdio.h> #include<string.h> #include<fstream.h> #include<ctype.h> #include<bios.h> #include<ctype.h> int menu(int,char a[25],char b[25],char c[25],char d[25],char e[25],char sl1[2],char sl2[2],char title[40],char under[2]); void lbyl(char a[50]); void main_menu(); void student_menu(); void mark_menu(); int records=0; void lbyl(char a[50]) { int l,i; l=strlen(a); …

Member Avatar for nbaztec
0
155
Member Avatar for emko

Hi, I would like to get some suggestions on how to change this program from array to vectors. This program reads an ASCII input file and outputs the character frequency into a text file. I got it to work with the arrays, but I can't figure out where to do …

Member Avatar for emko
0
153
Member Avatar for Garrett2011

considering visual C++ compiler, Lets say I've got a file with whatever extension and it contains 100 bytes of data which are exactly the data that I want to initialize an array of char data type with a length of 100 characters with, Now apparently one way is to read …

0
150
Member Avatar for Sky Choi

I'm trying to make program using Google 5gram data to compare with one of English exam called TOEIC. There are 118 files for 4grams and each size of 4grams are approximately 300MB and each files has 10,000,000 lines. So, here is the point. It requires about 4 or 5 seconds …

Member Avatar for TrustyTony
0
632
Member Avatar for k-chi

Need Help to fix this code because I can not find the errors so they can read successfully. Pila SEGMENT STACK ;Segmento de pila DW 64 DUP (?) Pila ENDS Datos SEGMENT ;SEgmento de datos Filename db 'C:\Tasm\BIN\Prue.txt',0 FHndl dw ? msjFrase db 13,10,"Escriba la frase:$" ERRORS db 13,10,"Error con …

Member Avatar for gusano79
0
118
Member Avatar for Peter_morley

Hi at this part of the code at the default constructor codedateInception = 0; dateDeath = NULL: location = 0; I get errors and I know its because they are of a class. I don't know how to set it up to have values. Any help? Header File [code]#ifndef ACTOR_H_ …

Member Avatar for Peter_morley
0
115
Member Avatar for nerdthon123

Hi Daniweb, I'm having a little problem here. I was trying to set up a path correctly (you know the one that's in the environment variables) and i messed it up. I was just wondering if anybody could tell me what should be the value for the Path under system …

Member Avatar for Ancient Dragon
0
141

The End.