6,015 Topics
![]() | |
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. … | |
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() << ")" << … | |
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. … | |
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 … | |
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() … | |
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 … | |
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 … | |
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] … | |
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 … | |
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"> … | |
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 … | |
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 … | |
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 … | |
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> … | |
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 … | |
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 … | |
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" %> … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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: … | |
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 … | |
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: … | |
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; … | |
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 … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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> … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
: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 … | |
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; … |
The End.