473,848 Members | 1,801 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

InternetReadFil e stuffing up downloaded files

When I download the files using InternetReadFil e, they seem to lose the
formating all the spaces gets removed, and thus I can't open the file.

Here is the file (it a doc fie)



Using InternetReadFil e it makes the file like this..
ÐÏࡱáapplied to subsequent systems, and is crucial to a software
organization's business strategy.
The Software A...
it removing so much of the formatting

I am saving the internet files like this

std::string m_strContents1s dp;
if ( hFile2 )
CHAR buffersdp1[1024];
DWORD dwReadsdp1;
while ( InternetReadFil e( hFile2, buffersdp1, 1023,
&dwReadsdp1 ) )\
if ( dwReadsdp1 == 0 )
buffersdp1[dwReadsdp1] = 0;
m_strContents1s dp += buffersdp1;
InternetCloseHa ndle( hFile2 );

//outsdp.open(fil ename.c_str(), ios::out | ios::binary);
outsdp.open(fil ename.c_str());
outsdp << m_strContents1s dp << endl;
_______________ ______-
Jul 22 '05 #1
1 6375
ree wrote:
When I download the files using InternetReadFil e, they seem to lose the
formating all the spaces gets removed, and thus I can't open the file.

You need to ask in platform specific newsgroup. The C++ standard
language, which is discussed in this newsgroup, does not have any
function named InternetReadFil e(). See the FAQ and Welcome.txt
links below for more appropriate newsgroups.

Thomas Matthews

C++ newsgroup welcome message:
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.l earn.c-c++ faq:
Other sites:
http://www.josuttis.com -- C++ STL Library book

Jul 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Joshua | last post by:
Is there a way to set up Apache to invoke a PHP equest when a file (a image for example) is downloaded? Say, then, that http://www.foo.com/downloads/app1.zip is downloaded, Id like to have Apache in turn invoke a PHP script which may be used to write a log. Thanks, Joshua
by: Chad | last post by:
I have COM component embedded on html page. It has version (by default). I have converted it in cab file. Code of html is something like: <HTML><HEAD></HEAD><BODY><OBJECT CLASSID="CLSID:D3BEF9B9-F7B5-4C24-B247-32257F37FDB6" CODEBASE="COM.CAB#version=1,0,0,1"></OBJECT></HTML> As per my understanding if client access this page for the first time the cab file will be downloaded, unzipped and the COM component should be registered on the...
by: Ruskin | last post by:
I have a wee issue, where I have two different web sites; http://dev/home.htm http://live/home.htm On both sites, there is a custom OCX file being used. However, it may be a different version on the dev versus the live sites, because I am working on it... This is fine, as I have a routine that downloads the OCX file, but MS standard only downloads a later version. Hence, if I work in the dev site, then switch to live, it still uses the...
by: kelly_sellers | last post by:
I teach Access online, which means I'm constantly downloading databases from the Internet in order to grade and/or troubleshoot them: 54 database files per week, minimum. I'm running Windows XP, which I THINK is the source of my having to go in and unblock each downloaded database before I'm allowed to work with it. Or perhaps there's something in Access I haven't been able to track down. In either case, I'm growing weary of being thusly...
by: sarath1111 | last post by:
hi, I have to perform BIT STUFFING in C Language. I have to get data from the user and stuff the data and then transmit it. I have to destuff it at the other end. I have very less knowledge of performing this in C(As this should be done at bit level). How can we perform operations at bit level in C?. Please help me how to get started with this. Thanks in advance. SARATH
by: Cheri Reed | last post by:
Hello, I've looked through several newsgroups and have yet to find help with this problem. We have a device we can access through IE, using a URL, that returns an XML string. For example, typing "" into IE returns this XML String: <?xml version="1.0" ?>
by: marfi95 | last post by:
Is there a way to make the internetreadfile function read records that are terminated by newlines instead of reading into a buffer. It would make it much easier for me to process. I suppose I could read the whole file and split into an arry, but how do I split on a CRLF ? Mark
by: =?Utf-8?B?UnVzc2VsbA==?= | last post by:
Some sage tech told me, in an online discussion on how to keep my computer clean and working smoothly, that it was ok to delete all of the "downloaded program files" that reside in that internet options, browsing history, settings, view objects, place....(i have IE7, so to get to them is a little different than IE6, etc.). Anyway, I took his "wise and sage" advice and deleted all of my DOWNLOADED PROGRAM FILES, while I was doing my other...
by: beary | last post by:
I need some advice re permissions etc. Here's the situation: at my workplace, I have a website which sits in a folder created by the IT manager, and given certain permissions (I'm not even yet sure how to determine what the permissions are). Whenever I'm at my workplace I just copy and paste files from my local machine to the web folder and it's on the web. Easy! But at home, I have dialup access and needed to upload files to the same folder....
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.