Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Getting an "Access violation reading location" error for an iTunes plugin Pin
Dustin Henry30-Jun-08 8:34
Dustin Henry30-Jun-08 8:34 
GeneralRe: Getting an "Access violation reading location" error for an iTunes plugin Pin
Grant Hudgens30-Jun-08 10:47
Grant Hudgens30-Jun-08 10:47 
QuestionRestricting access to a file Pin
theCPkid30-Jun-08 5:48
theCPkid30-Jun-08 5:48 
AnswerRe: Restricting access to a file Pin
Saurabh.Garg30-Jun-08 13:50
Saurabh.Garg30-Jun-08 13:50 
QuestionRe: Restricting access to a file Pin
David Crow30-Jun-08 17:22
David Crow30-Jun-08 17:22 
AnswerRe: Restricting access to a file Pin
theCPkid30-Jun-08 18:52
theCPkid30-Jun-08 18:52 
GeneralRe: Restricting access to a file Pin
David Crow1-Jul-08 3:13
David Crow1-Jul-08 3:13 
QuestionPosting data to a webserver using mfc - basic help and infos needed Pin
fish4fun30-Jun-08 4:32
fish4fun30-Jun-08 4:32 
Hello

I have problems with a few "things" and "circumstances" and so need help.

Prologue:
many years ago i learned to create progs in C, later on I tried a bit of "C++",
but i never left my pc-environment. Now, i had to send data to a server - that's
very exciting for me - especially cause i don't know the basic "terms" and "procedures".
Perhaps someone can explain me the following problems:

Problem:
1. Get data out of my existing programm and create a xml-file.
2. Include additional files in this xml-file (like jpg's) and code it in base64-manner.
3. Send this file to a server
4. Get an answer from this server ...
5. ...and work with it further more in my prog.

The items 1, 2 and (soon, i hope)5 are solved, but i can't understand the mechanism of
"talking" to a server out of my c-programm???? I never had to do this in the past,
i'd always opend lokal files or databases via ODBC or other lokal things. When i had to send
files to a server, i used a ftp-software on my desktop, but I have never done this from my code...

I've got a documentation from the server-admin, which tells me the following:
1. create a xml-file, insert all the stuff which is needed and then "...name it xmlpackage..."
what is this? - no extension (perhaps xml) for a file? for me, it seems "unusual" but this
isn't the "real problem" - this looks like a "wrong behaviour" to me...
2. then, use the following address to send the data:
https://www.theservername.com/XML/interface.php?postTheNewData
what does this mean? Is this the adress i had to send my file to?
but: is it right, that the expression after the questionmark is a parameter? so why is it
called "postTheNewData" and not "xmlpackage" like a few lines above?
3. i used the function WpPost of the mfc to try sendng files, and the wizard asked me a lot
of things and at the end - an error occured....(and my file isn't send)
4. and this is only the sending -part - what shall i do for retrieving new data?

Additional Question:
Is it possible to send and retrieve data with the mfc and without using third-party-programms?
How can i get a response after sending - if the sending is ok or not?
Perhaps, someone can help me out of this situation, because after i asked the admin in the
past, the only answer i've got from him, is: "...in every programming - language must be
a function to post data to a server, but i can't help you now - good luck..."

So please, be patient with me. I dont know someone to ask for, so i contact this group because i
will code the answer in "c/c++".

Thanks a lot for an quick answer.
AnswerRe: Posting data to a webserver using mfc - basic help and infos needed PinPopular
led mike30-Jun-08 5:18
led mike30-Jun-08 5:18 
GeneralRe: Posting data to a webserver using mfc - basic help and infos needed Pin
Mark Salsbery30-Jun-08 6:43
Mark Salsbery30-Jun-08 6:43 
GeneralRe: Posting data to a webserver using mfc - basic help and infos needed Pin
fish4fun30-Jun-08 7:20
fish4fun30-Jun-08 7:20 
GeneralRe: Posting data to a webserver using mfc - basic help and infos needed Pin
Mark Salsbery30-Jun-08 7:34
Mark Salsbery30-Jun-08 7:34 
GeneralRe: Posting data to a webserver using mfc - basic help and infos needed Pin
led mike30-Jun-08 10:54
led mike30-Jun-08 10:54 
GeneralRe: Posting data to a webserver using mfc - basic help and infos needed Pin
Mark Salsbery30-Jun-08 10:56
Mark Salsbery30-Jun-08 10:56 
AnswerRe: Posting data to a webserver using mfc - basic help and infos needed Pin
theCPkid30-Jun-08 5:43
theCPkid30-Jun-08 5:43 
QuestionVC++ 2005 Botton Control Click add Event Pin
akira3230-Jun-08 3:03
akira3230-Jun-08 3:03 
AnswerRe: VC++ 2005 Botton Control Click add Event Pin
«_Superman_»30-Jun-08 8:16
professional«_Superman_»30-Jun-08 8:16 
QuestionTo kill a thread Pin
Mushtaque Nizamani30-Jun-08 2:35
Mushtaque Nizamani30-Jun-08 2:35 
AnswerRe: To kill a thread Pin
sashoalm30-Jun-08 2:51
sashoalm30-Jun-08 2:51 
GeneralRe: To kill a thread Pin
Stephen Hewitt30-Jun-08 18:34
Stephen Hewitt30-Jun-08 18:34 
GeneralRe: To kill a thread Pin
Hamid_RT30-Jun-08 23:04
Hamid_RT30-Jun-08 23:04 
GeneralRe: To kill a thread Pin
Stephen Hewitt30-Jun-08 23:10
Stephen Hewitt30-Jun-08 23:10 
GeneralRe: To kill a thread Pin
Hamid_RT30-Jun-08 23:32
Hamid_RT30-Jun-08 23:32 
GeneralRe: To kill a thread Pin
Stephen Hewitt1-Jul-08 13:43
Stephen Hewitt1-Jul-08 13:43 
AnswerRe: To kill a thread PinPopular
JudyL_MD30-Jun-08 3:18
JudyL_MD30-Jun-08 3:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.