1,605 Topics
![]() | |
[B]so foar I've done this much[/B] using namespace std; int main() { //1.Declares an input stream variable named inFile ifstream inFile; //2.Opens "indata.txt" inFile.open("indata.txt"); //3. If input file was not opened Prints "Input file not found" if (inFile.fail()) { cout << "Could not open file!" << endl; return 1; } … | |
hi plz help me overcome a few errors in my encryption project.... thanks [CODE]#include <iostream.h> #include <stdlib.h> #include <fstream.h> #include <stdio.h> #include <string.h> #include <dos.h> #include <conio.h> char passwrd[6]="",pw[7]; char pass[7],code; void genpassword(); void getpassword(); void doCrypt(char *cool) { int cryp; //the main int this function uses char x; //to … | |
[COLOR="Green"][B][I]Hello All: Can anyone tell me why I can't play MP3 or WAV files with the Windows Mobile 5 media player control when the filename is a URL? Even with the Media Player application on Windows Mobile 5 it doesn't work. If the files I want to play are stored … | |
Hello,everybody! I'm writing a LAN communication programming,and I need to transport a file between different host computer. I know that the TCP is a kind of stream-oriented connection.But look at the fallowing codes: [code=cplusplus] void TripPlanner::sendRequest() { QByteArray block; QDataStream out(&block, QIODevice::WriteOnly); out.setVersion(QDataStream::Qt_4_1); out << quint16(0) << quint8('S') << fromComboBox->currentText() … | |
Hi I am new in Visual C++ and I want to know how to get all the > information in the listView to textBox/String > variable/ to a binary file /Serialization maybe? > > So if on the listView is consists of: > > Company | Name | Address | … | |
Hello ppl, I am working on a site these days, which is coded in JSP and based on J2EE technology.I have a requirement where i have to play a WAV/MP3 file on the JSP webpage. The file is saved in a database repository and is loaded in the output stream … | |
I have a simple php file for example: [CODE] <? header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=file123.xls"); header("Pragma: no-cache"); header("Expires: 0"); print "test"; ?> [/CODE] What I want to do is export php result and save it in excel file. If I run this from web browser like IE,firefox, I have no … | |
I am just preparing to take a quiz and he said some examples will be kind of like this and I was just tryin to get some input on if these answers I have are the right ones.. he said just do what the statement says, no further work, just … | |
Greetings, I've posted this question in other news groups (msdn and a few others) without any response.:sad: I hope I don't get into any trouble for posting this question here, but I reach out for your help.:confused: I have an excel file stored in a data base table as an … | |
>I disagree. You have to have all kinds of special code to get scanf() to work properly. Only if you aren't using scanf for what it was designed in the first place. When you have to write workaround code to get a function to work, you're using the wrong tool … | |
I have this program for computing an individual's cable bill, then summing each column of values and calculating the average of each column. I got a 100 on the assignment, the program works fine, but this time we have to use functions. I created my functions and the program, again, … | |
Hi all, I want to read a stream of bites/bytes as a String. Here's what I have done up to now. Using a buffer I found that number of bytes, which include a text message from a binary file. Now what I want is to read those bytes stream as … | |
ok so i made a code that makes something compatible with a never version ( it is not important). This is my code: [CODE]#include <iostream> #include <fstream> #include <string> using namespace std; int main () { char File[150], re[4]; string line[5000]; string response; int counter=0; size_t found; string strtofind[]={"oolean1", "oolean2", … | |
I want to make a code that searches a text file and finds a certain string, and then changes that string to another string. First im going to have it input the whole file, and i am couting it too, so that i can make sure it worked. But it … | |
wondering how this script might work please. [code]<link rel="alternate" type="application/rss+xml" title="CHUCK WHATEVER YOU WANT IN HERE" href="http://thecodingzone.com/if_rss.php?input=YOUR BOARD URL&title=FEED TITLE HERE REMEMBERING THE FACT YOU HAVE TO ENCODE SPACES IN URLS" />[/code] the rss.php part [code] - <rss version="0.91"> - <channel> <title>Feed generated by TCZ</title> <link>http://thecodingzone.com/</link> <description>Nearly 400 IF codes … | |
Hey guys trying to compile code, and heres the error I receive. im fairly new to python programming so any help would be appreciated. thanks in advance. ms7538@ms:~/Desktop$ ./test.py Traceback (most recent call last): File "./test.py", line 10, in <module> class Panel1(wx.Panel): File "./test.py", line 22, in Panel1 bmp = … | |
Well, I'm not sure how other people do it, but eh, for some reason VB makes my task excessively difficult, because it is so inter-dependent and integrated. Now, HTMLDocument, is a Document interface for...go figure...an Html Document. However, I can't use it. I can only get to it via a … | |
I'll explain my issue in this way. I've use a structure to get some data of a byte stream as follows. [CODE] 1. struct pac_cont 2. { 3. unsigned int des_list ; 4. unsigned int mem_ID ; 5. unsigned char dm_con ; 6. unsigned char ser_ID ; 7. unsigned short … | |
Hi all, I want to use a function to write some values to a text file. That function is called from the main function. Every time when I can that function from main, the perviously written value is overwrite. That's true, it wont work. So what I have done is … | |
Hai.... To print Html page using PrintDialog and Print Document i am created one windows appication.. the windows application have many pages in my booking page i have two buttons one btnprint,btnclose i am go to click btnprint button and corresponding i reader one html file . then in local … | |
Just wanted to know if anyone can helpl. Just installed Medieval 2 total war, ran fine for the first hour then CTD. After that every time i try running the game the intro flickers, is distorted and generally messed up. I've spent the past 2 days trying everything, all my … | |
I have a binary file, contain set of stream, and I want to find some information there. What I have done up to now is read the file, open it and count the number of streams three. I'm stuck now. Just consider one stream. I want to skip first 4 … | |
Greetings. I'm currently doing a project on Traveling Salesman Problem. But I'm not asking for answers for the whole project. I just started my programming lessons so I hope can get some help from all of you. About this project: Initially you have to read 2 input files, Input1.txt and … ![]() | |
i have this code: include('DB_connection.php'); $result = mysql_query('select * from login'); $count = mysql_num_fields($result); for ($i = 0; $i < $count; $i++){ $header .= mysql_field_name($result, $i)."\t"; } while($row = mysql_fetch_row($result)){ $line = ''; foreach($row as $value){ if(!isset($value) || $value == ""){ $value = "\t"; }else{ # important to escape any … | |
Hi all, I've written a configuration file parser, which is just basically gets a bunch of rules, each ended by ';' To get the rules I use a loop: [CODE] ifstream cfgFile; for (int iI = 0; iI < iMAX_MONITORS; iI ++) { ... cfgFile >> someFloat; // test for … ![]() | |
While I am Downloading ,One Dialogbox will open.When user will be saving file name...that time I want to restrict user to change the file name ..I have written code below for downloading file. Dim fs As System.IO.FileStream = Nothing fs = File.Open(Server.MapPath("TextFiles/Branch/" + filenam + ".txt"), System.IO.FileMode.Open) Dim btFile(fs.Length) As … | |
I hate supporting Excel97. I have a spreadsheet that has X number of worksheets. The gridline value for each sheet has been turned off and I need to turn them back on before ftp-ing the file off the server (we don’t have Excel on the server) and I cannot ask … | |
i have a site at [URL="http://cometorate.com/"]http://cometorate.com/[/URL] i tried todo a cPanel move to my server here. [URL="http://66.196.43.131/~cometora/"]http://66.196.43.131/~cometora/[/URL] on the new server above i keep getting the errors below. i just dont know what any of this means. can anyone help? Warning: fopen(/usr/local/apache/htdocs/online.txt) [function.fopen]: failed to open stream: Permission denied in … | |
Logfile of HijackThis v1.99.1 Scan saved at 3:42:17 AM, on 8/21/2007 Platform: Windows XP SP2 (WinNT 5.01.2600) MSIE: Internet Explorer v7.00 (7.00.6000.16512) Running processes: C:\WINDOWS\System32\smss.exe C:\WINDOWS\system32\winlogon.exe C:\WINDOWS\system32\services.exe C:\WINDOWS\system32\lsass.exe C:\WINDOWS\system32\Ati2evxx.exe C:\WINDOWS\system32\svchost.exe C:\WINDOWS\System32\svchost.exe C:\WINDOWS\system32\Ati2evxx.exe C:\WINDOWS\system32\spoolsv.exe C:\WINDOWS\Explorer.EXE C:\PROGRA~1\Grisoft\AVG7\avgamsvr.exe C:\PROGRA~1\Grisoft\AVG7\avgupsvc.exe C:\PROGRA~1\Grisoft\AVG7\avgemc.exe C:\Program Files\Alias\Maya7.0\docs\wrapper.exe C:\Program Files\Alias\Maya7.0\docs\jre\bin\java.exe C:\WINDOWS\System32\svchost.exe C:\Program Files\ATI Technologies\ATI.ACE\cli.exe C:\PROGRA~1\Grisoft\AVG7\avgcc.exe C:\Program Files\ATI Technologies\ATI.ACE\cli.exe C:\Program … | |
hey all, I'm new to this forum, and really start to like it :). Here we go. I have some trouble helping a "tute" of mine (I normally give physics tuitions) with one of his assginments on C++. As I did C++ years ago, I was feeling confident with it. … ![]() | |
Hi Everyone, I have to read data from a file into an array. I have that part figured out. I can't get my function to work. I have to write a sumArray, avgSales, highSales, and lowSales. Here is what I got so far. Could someone please help me with one … | |
After my poor showing yesterday I was ready to quit, but I decided this morning I would rather feel dumb than feel like a quitter, so here I am. I coded this last night thinking if it worked great, if not then I would just drop it. Well it worked … | |
I have written software that creates a text file, the text file contains colums of data. When I view and print the text file using notepad all the colums line up correctly. I am now trying to print the text file using a button on my form but every time … | |
Hi, as is about to become entirely apparent, I'm a newbie programmer and I'm having some problems with what should be simple operations. I'm having some trouble writing to file and no matter what method I use I can't seem to get it to work as I hope it to. … | |
The copyList function here is not working working. Anyone have any ideas? // header file [CODE] #ifndef H_orderedLinkedList #define H_orderedLinkedList #include <list> #include <iostream> using namespace std; struct coordinates { int xValue; //variable to hold x coordinate int yValue; //variable to hold y coordinate }; struct node { coordinates info; … | |
Hi, I am working on a program that reads through a file, gets the words, and finds all the anagrams in the file. For example if the input is Pans stop pots pots Sits it's snap I have no trouble reading the words from the file. I create a signature … ![]() | |
Hello[U],[/U] In VB.NET 1.1 and using WinForms, I am exporting the data displayed in a listview to a CSV file but I am specifying the filename and location while conversion. I need a dialog box where the user can choose the location to save the file. I know I have … ![]() | |
I have been having a bit of trouble with my users trying to install my program, I will list the error messages first and then let you know what my settings are for the click-once deployment. I don't see any errors when I install it on the computer I have … | |
I am unable to access any of my desktop icons, it also affects my active desktop. Please help people, I have downloaded hijackthis and done a scan. Logfile of Trend Micro HijackThis v2.0.0 (BETA) Scan saved at 09:00:41, on 08/06/2007 Platform: Windows XP SP2 (WinNT 5.01.2600) Boot mode: Normal Running … | |
Making a "hello" world program in VC++ 6.0 is cool, as I got a very happy feeling when i completed it... but reading alot of books to learn "a round about" way in something isn't me. I'm objective oriented. What materials should I, could I, get my hands onto learn … | |
This time I was trying to download a tool for my wife, turned out to be the wrong tool. Every so often, about every 15-20 minutes I will get and IE browser popup for sites, which I'm sure are phishing sites, like buy.ebay.com/free, drivecleaner.com/freeware and monstermarketplace.com. Those three are the … | |
h[I]i all ,[/I] [I]i have a program that read its input from a file in binary mode![/I] [I]now i nead to store this data and to compare it with another data.[/I] [I]which datataype can my input take.[/I] [I]also, the comapred stream is in this form 0004a4900[/I] [I]i made this stream … | |
Hiya.. i posted before but heres the prob in more detail.. I'm making a JSP page where (ideally) you select files to upload, each selected file is added to a listbox. The form is submit, (along with some other parameters), and the files are uploaded. They arent uploaded (written) tradionally … | |
Can someone please help me with this? When I turn on my laptop I get the popup that says: Microsoft Visual C++ runtime library Buffer overrun detected! Program:C:\WINDOWS\EXPLORER.EXE A buffer overrun has been detected which has corrupted the programs internal state. The program can not safely continue execution and must … | |
Im trying to handle .tar files with the PEAR Archive_Tar library, so i added the library directly to my lib directory on the website im developing and i copied a script to make a test which is the following [code=php] <?php include_once('../lib/Tar.php'); $tar_object = new Archive_Tar("../files/tarFiles/test.tar"); if (($v_list = $tar_object->listContent()) … | |
I have a text file setup called client.txt inside it has Halusa Decorations|Streamers|455892|$3.50 Kellys Floral|Frangipani|270272|$2.00 - Im using Listview in Report mode i was wondering how to grab each item e.g company|item|productid|cost into and put them into the Columnheaders [U]| Company Name | Product | Product ID | Price |[/U] … | |
Hi, I am writing a program that has some functions in it to open, read and then search through lines in a file. It will be a txt file. Currently I am trying to find a way to pass the Open file to the ReadFileLine function, so that it can … | |
[code=c] #include<stdio.h> #include<string.h> #include<stdlib.h> #define MAX 20 //struct team_info typedef struct { char team[16]; int played; int won; int drawn; int lost; int goalsf; int goalsa; int goald; int points; int ID; }team_info; team_info arrdetails[12]; int print_header(); void draw_table (); int take_team_input(); int take_team_name(); int save_table(); int read_table(); int sort_table(); … | |
I have apache in this dir C:\Program Files\Apache Software Foundation\Apache2.2\ and Mail.php and PEAR.php are in this dir C:\php\PEAR\pear When I add the files to the dir the log file is complaining about below, the wiki spits out the following: [code] Could not send confirmation mail. Check address for invalid … | |
Hi, I have seen quite a few of these threads but now it's my problem I guess. I get this message both on my IE and Netscape browers. Any help is greatly appreciated. I ran HijackThis v1.99.1 and here is the logfile: Logfile of HijackThis v1.99.1 Scan saved at 11:54:39 … |
The End.