Jump to content

Image of the Day

Everything is fine. 

#screenshotsaturday #indiedev #gamedev https://t.co/98BAKUInyo
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net's newsletters to receive the latest updates and exclusive content.


Sign up now

Anyone can help with this?

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
3 replies to this topic

#1 noatom   Members   

919
Like
0Likes
Like

Posted 25 June 2013 - 03:09 AM

I have a text file stored at a certain url address like:

http://site.com/file

 

I need to open it using that url and store every line in a separate string(using vector<string>)

 

I tried finding my way with wininet but I just got stuck.I don't really know where to start.I found the following functions:

InternetReadFile

InternetOpenUrl

 

But I can't figure out what arguments to use.... Anyone can give a hand with this?



#2 Zaoshi Kaba   Members   

8098
Like
1Likes
Like

Posted 25 June 2013 - 04:37 AM

  1. Do you know how to use TCP? You could send HTTP request manually and receive file.
  2. Use URLDownloadToFile function, then open file normally.


#3 Norman Barrows   Members   

6885
Like
0Likes
Like

Posted 25 June 2013 - 07:38 AM

 

  1. Do you know how to use TCP? You could send HTTP request manually and receive file.
  2. Use URLDownloadToFile function, then open file normally.

 

 

 

definitely DL the data, then parse. fetching strings one at a time is probably not very efficient. and don't forget resume capabilities on that DL!


Norm Barrows

Rockland Software Productions

"Building PC games since 1989"

rocklandsoftware.net

 

PLAY CAVEMAN NOW!

http://rocklandsoftware.net/beta.php

 

 


#4 noatom   Members   

919
Like
0Likes
Like

Posted 25 June 2013 - 09:19 AM

Solved,thanks for the help






Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.