6,015 Topics

Member Avatar for
Member Avatar for TheBattlizer

I'm trying to declare a structure definition in a header file so I can use the structure in other files, however I get the error: error C2011: 'Points' : 'struct' type redefinition from the file where the structure definition is declared. The structure is only defined in that header file. …

Member Avatar for ArkM
0
2K
Member Avatar for ttqtrang146

I've got code sections which write and read binary files. But when I print data reading from file. It appears unnecessary characters. [code=cplusplus] int WriteFile(const char* file_name) { fstream file(file_name,ios.out|ios.binary); if(file.is_open()) { string data_block="I don't understand!\nAdd one line"; file.write(data_block.c_str(),data_block.length()); file.close(); cout << data_block << "(" << data_block.length() << ")" << …

Member Avatar for ttqtrang146
0
182
Member Avatar for jdm

I working on part of a code for a much larger project. I understand how to write a program for a password in the simplest form, but I want to have it let the user guess the password up to 5 times and then not let them run a command. …

Member Avatar for jdm
0
226
Member Avatar for Virux

I have been testing a application I made, which is a simple swing interface with a checkbox. I am using custom icons for my checkbox, for checked, checked and mouse-over, unchecked, and unchecked mouse-over. I am using the eclipse IDE. Eclipse creates your application in the workspace file, so the …

Member Avatar for JamesCherrill
0
85
Member Avatar for livedereh

Im a beginner to c++ after looking over this code you will be able to tell the outfile code seems to work fine no errors but any feedback will be nice the infile code is the one i have problems with [CODE] #include<iostream> #include<string> #include<fstream> using namespace std; int main() …

Member Avatar for livedereh
0
117
Member Avatar for lecotti

Hello everybody, ive only been learning C for about a month so please forgive me if my code is messy or unclear! I have written a simple program which creates a text file, reads from it and then writes the output backwards to another file; it seems to work apart …

Member Avatar for BestJewSinceJC
0
107
Member Avatar for Ameerah

Hi for ever can any one help me [COLOR="Red"]only give me idea[/COLOR] of this question Write a program that reads from a file list of unsorted names and sort the names automatically and then asks the user whether he/she would like to print the names in the output screen or …

Member Avatar for ArkM
0
198
Member Avatar for elanch

Dear All, I have done a project in VBasic 10.0 for our product Design. Unfortunately the program was deleted while re-installing the OS. However we have managed to retrieve the files by using File Recovery software. [U]But now the .EXE file is working but the Vb program file is corrupted.[/U] …

Member Avatar for Jupiter 2
0
163
Member Avatar for anil.dwivedi

Hi Guys, I want to convert .pptx/.pptm file into .ppsm file using VB6. As like we do Save as functionality in Microsoft Office PowerPoint Application. In PowerPoint, we open .pptx/.pptm files and then save as this file in .ppsm type. Now this file converted as .ppsm type and functional as …

Member Avatar for vb5prgrmr
0
185
Member Avatar for gujjar19

Hi, I am new to python. I am working on parsing text from a smi file . I want to extract only dialogues and want to ignore the timestamps (lines starting with <SYNC) for one case, e.g. Below is part of smi file <SAMI> <HEAD> <Title>ÁŠžñÀ» ÀûŸî ÁÖŒŒ¿ä.</Title> <Style TYPE="text/css"> …

Member Avatar for gujjar19
0
3K
Member Avatar for anil.dwivedi

Hi all, I want to run .ppsm file in slideshow window using c# in web based application without opening presentaion in powerpoint. I was given anchor link like following - <a href="CD-12 Open Value Module EMEA and Latam BlackWhite.ppsm"> Open/Save </a> When I open html page in IE8 and click …

Member Avatar for anil.dwivedi
0
356
Member Avatar for tummalavishwana

Could any one you help me in resolving this issue. I want to write the content to a file line by line. I have done the following in my java class. I have to append the some content into an xml file. For this I am reading an xml file …

Member Avatar for kvprajapati
0
95
Member Avatar for sonya_sml

Hi, Can someone please help me. I am getting error: The process cannot access the file 'c:\reports\PaymentDetailReport.xml' because it is being used by another process. in following function. This method is suppose to be called couple of times. but at second time, it throws the error. I have even closed …

Member Avatar for Alxandr
0
160
Member Avatar for brightsolar

my code so far...... [code=cplusplus] // ProjectDevelopment.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> // This libary allows standard input and output operations. #include <string> // strings are used as tempory storage - for the input to a text based file #include <vector> …

Member Avatar for brightsolar
0
238
Member Avatar for lucky_multani

Ok what i'm trying to do in this program is first create an empty binary file of size 31 records. Records includes studid & gpa. and then I insert valid record into the binary file with h(k) = key% 29..and then read this binary file sequentially and write the records …

Member Avatar for Ancient Dragon
0
97
Member Avatar for headacheinC

Hi everyone, I get stuck with this homework. May be someone here can help me. I must combine two txt file, line by line. My first datafile contain 1 column, contain float numbers and the other contain many columns, also float numbers (Here i attached both the txt files). For …

Member Avatar for headacheinC
0
590
Member Avatar for freshfitz

Can anyone put a quick patch on this script I want it to send the email even if a file does not exist right now I get an error if I try to send it with no file [CODE]<%@ Page Language="C#" %> <%@ Import Namespace="System.Web.Mail" %> <%@ Import Namespace="System.IO" %> …

Member Avatar for kvprajapati
0
154
Member Avatar for gretty

[B]What would be the best way of doing this?..... [/B] I have a text file containing a list of music songs that shows the artist, song title & song duration. So I'm writing a program that opens the text file & reads the duration of each song, adds each song …

Member Avatar for Raven6666
0
313
Member Avatar for anzaan

hii ppl... i want to open an excel file stored in c:\ drive. i have a link in JSP file. i want to open the excel file when a user clicks on link. the problem is while running the application on server, i m not able to open the any …

Member Avatar for kvprajapati
0
158
Member Avatar for K'rul

Alright i am trying to read from a file so that it opens into the array temp_array. the idea is to have the data previously added to the file open into the array so i can search it and sort it this is giving me alot of stress it is …

Member Avatar for szcfama
0
241
Member Avatar for lalchetian

when excecuted it gives an error 424 object required what i intend to do is download a pdf file to a location in my pc [code= vb]DoEvents If DownloadFile(ie3.locationurl, App.Path) Then MsgBox "Download Complete", _ vbOKOnly Or vbInformation, _ "Done" End If ' Download a file. Return True if we …

Member Avatar for lalchetian
0
167
Member Avatar for daniwebseenu

we have static ip address. i need code(vb.net) to send and receive a file from static ip. is it possible in vb.net? if it is possible, what are the basic things are required for it.How to transfer files? Please help me. thanks in advance.

Member Avatar for Salem
0
94
Member Avatar for ZuluRouge

I was tring to help my friend with his computer. I cant open the new downloaded security software, cant open Internet Exploreer, and now it says Security Center Alert Win32.Brontok? Any help would be greatly appreciated. Logfile of Trend Micro HijackThis v2.0.2 Scan saved at 9:02:54 AM, on 5/23/2009 Platform: …

Member Avatar for jholland1964
0
129
Member Avatar for vasek

Hello, I am happy to find this forum. I was trying to read a file to matrix matice. The input file looks like this: 7 1 4 5 6 9 3 2 2 0 7 6 8 6 1 2 4 2 9 1 7 2 3 8 [code=c++] #include …

Member Avatar for homeryansta
1
132
Member Avatar for suse17

Hi This is my ldif file: dn: cn=Manager,dc=test,dc=com dc: test description: This is my Wonderful company as much text as you want to put in this line upto 32 K objectClass: top objectClass: dcObject objectClass: person objectClass: organization objectClass: inetOrgPerson #First Level Hierarchy dn: cn=Manager,ou=people,dc=test,dc=com dc: test ou: people description: …

0
85
Member Avatar for K'rul

Can anyone help me fix these?Program displaying and writing symbols to my file... And also after calculating GPA , when choose function read or display all it is illustrated as null....help plz [code=cplusplus] # include <stdio.h> # include <string.h> # include <iostream> # include <fstream> #include <stdlib.h> using namespace std; …

Member Avatar for K'rul
0
101
Member Avatar for lolwtf

I working on a personal project of mine and got stuck. The program is a simple quiz in which the user answers some questions, and their results are saved into a text file. Reading and writing to text files is easy so I don't need help with that. On my …

Member Avatar for lolwtf
0
1K
Member Avatar for Vidya Bhama

Hi, I call a vbscript file from my batch file. I need to pass a variable from this vbscript file to batch file. can anyone please let me now how to do this. batch file looks like this cmd.bat ------------ @ECHO OFF cscript "D:\samp.vbs " isql -S sername -d dbname …

Member Avatar for Vidya Bhama
0
210
Member Avatar for tizzo233

[code] // s2.cpp : Defines the entry point for the console application. // Project Stage 2.cpp : Defines the entry point for the console application. /* Algorithm Menu() Choose option Create a new expense Enter the initial amount of money in bank or to add money to bank from paycheck …

Member Avatar for tizzo233
0
154
Member Avatar for madtorahtut

Hello! I am rather new to c, and I am having a parsing problem. What I am trying to accomplish: I have a file filled with assignment statements such as: [CODE]var1=5 var2=80[/CODE]...etc. I want to parse through the file and then do a check to see if the variables exist …

Member Avatar for Narue
0
97
Member Avatar for johnny_b_30

I write a program in C but i have not the right to use the standard library. I want to open a file so i use an assembly procedure that i have write, open_file. Here is what i mean: At C code part:[code] int fp; int open_file(char* filename); .... fp …

Member Avatar for johnny_b_30
0
83
Member Avatar for dolly37

I have to read a bin file in perl/tk. I have been able to read and open the file, but the read in file only has every other line from the original file. I am using following to open the file. my @contents; open(FILE,"example_data4.bin") or die"cant open file: $!"; @contents …

Member Avatar for crb3
0
127
Member Avatar for Liszt

I try to change the icon for the application file in the debug folder. In the properties, there is no choise where you can do this but if I create a shortcut of this application file, then it is possible. Is there a method to create an icon on the …

Member Avatar for Ancient Dragon
0
92
Member Avatar for csurage

Hi, I was creating a Gui for one of my classes and I hit a major bump. I am trying to take words from a text file and just display it in the text box. I know how to read files, what I don't know is how to change the …

Member Avatar for csurage
0
254
Member Avatar for QuintellaRosa

I have a file format for storing text of any sort. It's a file format from a company, so I can't change it. Basically, in the beginning of the file, a series of "string starts on char#", "string length equals" values determines the "address" where a string starts and how …

Member Avatar for ArkM
0
255
Member Avatar for aford7

I've been working on my final paper for a class of mine, and this morning I sent it to the recycling bin and then emptied my bin! I don't know what I was thinking... I downloaded the Restoration program and I think I may have found it on there, but …

Member Avatar for Xlphos
0
112
Member Avatar for HunterFish

How to sort an xml file or a text file using gtkmm? This is the sample of the file that I want to sort. <LIST> <name> Example </name> <country> <name> Country </name> <pop> <desc> Japan </desc> <uri> 100 </uri> </pop> <pop> <desc> China </desc> <uri> 108 </uri> </pop> <pop> <desc> …

Member Avatar for HunterFish
0
205
Member Avatar for Deme

Alright, so i'm trying to make a type of database using file i/o where you type in a username and password and it writes it to database.txt... The issue is, i'm trying to find a correct and clean way of reading, or 'searching' for the username and password and compares …

Member Avatar for valtikz
0
988
Member Avatar for stephen lowry

hi guys im working on a project which i have almost compleated, which saves the data onto a text file (semi colon delimited ) however the second part requires me to import this file into access database by clicking a button on my projects gui, i already know how to …

Member Avatar for Teme64
0
317
Member Avatar for TheEvilRoot

I want to download a file from website with authentification system. Ok, maybe ill do some explanation. First of all, i open the site using webbrowser control. Then i logon, using following code: WebBrowser1.Document.DomDocument.All("uid").Value = "User" WebBrowser1.Document.DomDocument.All("pwd").Value = "Password" ButtonClick(("login"), WebBrowser1) //ButtonClick is predefined function Everything is ok, webbrowser loads …

0
59
Member Avatar for bernadlosini

i have to read input from .sql file .but that file name should be read from command line instead of cin.how to do that command? if my file t.sql ,how it would be? i tried like this but i couldnt get the output int main(int argc, char* argv[]) which file …

Member Avatar for tux4life
0
156
Member Avatar for teddycow

I'm having some problems with my code: [CODE] int a, b,x, c, d, cdnr ; char songname[4][3000][30]; char sok[4], avsok[30], cdtitel[4][30], r[30], i; { ifstream array2; array2.open ("array.txt"); array2 >> i; for(a=1;a<=i;a++){ array2>>cdtitel[a]; array2>>r[a]; for(b=1;b<=r[a];b++) array2>>songname[a][b]; } array2.close(); } for(a=1;a<=i;a++){ cout<<cdtitel[a]<<endl<<endl; for(b=1;b<=r[a];b++) cout<<songname[a][b]<<endl; }[/CODE] My text file: [CODE]3 AAAAAAAA 2 …

Member Avatar for tux4life
0
105
Member Avatar for Playtner

Hi, I've been trying to create program that can access a binary file with a vector in it without first saving it to the file. If I just try to read from the file without saving something, the vector will have information in it but when I output it to …

Member Avatar for Playtner
0
93
Member Avatar for tasosa

[code=language] #include <string.h> #include <stdlib.h> #include <stdio.h> /* uni() function takes an array an thier size.and it produce an array which is include unique element */ int uni(char *arr[],int size) { int unique = 0; /* The length of dst after removing duplicates */ int n=size; char *dst[n]; /* The …

Member Avatar for BestJewSinceJC
0
109
Member Avatar for norulez43

Hello, I have a program that splits up a single .txt file into separate files (one per sales rep). The original text file has a layout that used to be printed on wide tractor feed paper. I am saving these output files as .doc's. My only problem is that, when …

Member Avatar for ArkM
0
161
Member Avatar for Jyncus

I'm attempting to read in various numbers and chars from a text file using ifstream. I've read through a lot of C++ File IO and can't see why my two int variables, numOfVars and numOfCNFs, aren't getting assigned in the Parser::BuildCQF() method. The code below shows my Parser.h, Parser.cpp, the …

Member Avatar for MrSpigot
0
114
Member Avatar for dotnetnoobie

Hi, I have a problem creating an XMLTextReader from a file on disk. Its an ASP.NET application written in VS 2005. When the application is deployed to IIS6 it runs fine but when run from visual studio the XMLTextReader is not populated from the file on the disk. I've checked …

0
51
Member Avatar for Eager_Beever

I have an ASP. Net 2.0 website with C# 2005 as the programming language. I am using CSS for the layout. Currently I am using a plain/static .Gif image as my header. I would like to enhance the look by using some animation in the header. I used some flash …

Member Avatar for jbisono
0
79
Member Avatar for sajithkahawatta

:sad: :sad: my web page C#.net is work properly in my iis .but when i publish in another server it give errers.i used vs2005 and ms word 2003. but in the server there is no vs2005 or word installed. it has only .net frame work installed.folowing the error, Parser Error …

Member Avatar for hermsen
0
765
Member Avatar for emanmae

So i have this homework assignment and im having a problem figuring out how to get the numbers from this file and finding the agerages. heres what i got so far. [CODE]#include <iostream> #include <iomanip> #include <fstream> #include <string> using namespace std; int main () { // Declarations string reply; …

Member Avatar for emanmae
0
187

The End.