|
led mike wrote: Do you know how to perform an HTTP POST request?
No, this is what I need to know.
led mike wrote: Do you know what the POST data requirements are for the page?
Yes. I have monitored an IE session and trapped the outgoing HTTP post.
led mike wrote: Do you know how to form __VIEWSTATE data?
Yes, the viewstate will not change, so I will be sending it back as the server sent it out.
led mike wrote: Do you know if the site requires a session cookie? If it does do you know how to manage the cookie?
It does not require a session cookie.
So, to be more specific with my question:
How do I perform a HTTP POST request in C++?
|
|
|
|
|
There are a number of classes (MFC WinInet library / Socket classes) and/or API's (WinInet API) all the way down to just using the Winsock API.
Of course all of these classes and API's are well documented on the MSDN Web site.
When using any of these solutions knowledge of the HTTP protocol[^] could prove valuable, but that's up to you.
Last modified: after originally posted -- sorry about the forum mix up, my bad
led mike
|
|
|
|
|
Hi,
I m a beginner to vc wit MFC libs..
My display gets troubled wen i use GetSystemMetrics(SM_CXSCREEN) fn
to retrieve the resolution of the screen..
wen i decrease the resolution my controls placed at the right end of
the dialog s not displayed..and, wen i try to increase my resolution,
the control placed on the right edge of the dialog s placed in center..
but i ve to use the GetSystemMetrics()to retrieve my resolution and get my screens
updated accordingly..
Do suggest be wit the solution require..
Regards
Gita
|
|
|
|
|
Please don't write everything in italics.
For your problem: the only solution is to replace all your controls through code. There are some articles here[^] that might do the trick for you (you have to search a little bit). The first one looks promising.
|
|
|
|
|
Are you wanting the controls on the dialog to move and resize themselves based on the size of the dialog?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
ya.. accordin to the updations made in the resolution of the monitor,
my dialog s to be replaced wit its controls positioned as such during
designing..
but wen i design dialogs in lower resolution an view it in higher,
my contols r mis-placed to some mid-part of the dialog durin run-time.
same wen i try to design it in higher an run the same in lower,
controls placed in right edge of the dialog culdnt' be seen..
Hope my query s clear nw..
Gita
|
|
|
|
|
If I understand you correctly, I show a way to do this near the end of this article.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
dear all
why numbers exceed 150 here below code? here numbers = num[0]+num[1]+num[2]..why it exceed 150....i checked c[10[150[3],d[10][150]...any problem? thanks
for (int j = 0; j <10; j++)
{
for (int j=0; j<3; j++)
{
sum[j]=0; num[j]=0;
}
for (int k = 0; k<150; k++)
{
for ( int n=0; n<3; n++)
{
if (d[j][k] == c[j][k][n])
{
sum[n] += d[j][k];
num[n] = num[n] +1;
}
}
}
}
Li Zhiyuan
|
|
|
|
|
Well I think it is a bit dependent on d and c array values.
BTW have you the debugger at hand, haven't you?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
yes, i debugged it by hand...
c and d arrays have no problem...
for (int ii = 0; ii< 10; ii++)
{
for ( int m = 0; m <150; m++)
{
for ( int v = 0; v <3; v++)
c[ii][m][v] = sqrt(pow((x[ii][v][0]-b[m][0]),2)+pow((x[ii][v][1]-b[m][1]),2)+pow((x[ii][v][2]-b[m][2]),2)+pow((x[ii][v][3]-b[m][3]),2));
d[ii][m] = minDis(c[ii][m][0],c[ii][m][1],c[ii][m][2]);
if ( minDis(c[ii][m][0],c[ii][m][1],c[ii][m][2]) == c[ii][m][0])
h[ii][m] = f[0];
if ( minDis(c[ii][m][0],c[ii][m][1],c[ii][m][2]) == c[ii][m][1])
h[ii][m] = f[1];
if ( minDis(c[ii][m][0],c[ii][m][1],c[ii][m][2]) == c[ii][m][2])
h[ii][m] = f[2];
}
any problem here?
Li Zhiyuan
|
|
|
|
|
But, you're kidding, aren't you?
c , d are, in turn, dependent on x , b array values and on midDis function (or macro).
Could you please explain what the code is intended to do (and possibly post all initialization details)?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
li zhiyuan wrote: yes, i debugged it by hand...
Which obviously did you no good. Use VS's debugger instead.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
DavidCrow wrote: Which obviously did you no good. Use VS's debugger instead.
Nice one.
|
|
|
|
|
Please tell me How did you debug the code By hand.
The last time I did that was in 1977, I was (by Grace) given a Printout of my code), In those days Code was entered via Punchcards. We were expected to sort through thousands of them, and find the offending line!
In those days you had to be a senior post grad student before they let you near to a live terminal at all. Today things are different. You can run your debugging tools, set breakpoints, etc.
Regards
Bram van Kampen
|
|
|
|
|
I can't read the code - it makes my eyes bleed.
So is this the same question every day? A week to master arrays
should usually be sufficient. Is this another bot?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: Is this another bot?
Maybe, moreover it looks like a previous model.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
CPallini wrote: moreover it looks like a previous model
Indeed!
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Please read the posting guidelines at the top of the forum !!!!!! (it seems that we need to put a lot of exclamation marks in order to communicate).
|
|
|
|
|
i think it is not a problem..if you are busy, please take your time...thanks
Li Zhiyuan
|
|
|
|
|
1/ The posting guidelines are to help YOU get an answer. If you can't be bothered to post politely, why do you expect any replies at all?
2/ This looks a lot like a question you asked within the last few days.
3/ If you read the guidelines, it would tell you about using the pre tag, which preserves indenting, so we can read your code without pain.
4/ You use int j twice. You might get away with it, but if you're struggling to read your own code, then you should make life as easy as possible for yourself.
5/ If you use the debugger, you'll be able to answer your own question. Put a break point on the first line, put all the variables in the watch window.
6/ We can't debug your code for you, as we have no idea what's in your array.
I wish you good luck, and have a good learning experience with your debugger.
Iain.
|
|
|
|
|
Well said but I think you're wasting your time. This person has ignored the posting guidelines since 2006 no matter how many times he/she was told to abide by them.
|
|
|
|
|
"Ignoring guidelines since 2006" sounds like a motto on the side of a builder's van...
He's now on my ignore list, and it may be time to retire from the C++ board for a few days...
Maybe I could take up C# and become a question on their board/
OMGZ HOW DO POINTER WRK ON IN CHARP?
URGENT!!!!!! PROFESSOR WALKING TO ME!!!!
Iain.
|
|
|
|
|
|
Iain Clarke wrote: "Ignoring guidelines since 2006" sounds like a motto on the side of a builder's van...
Iain Clarke wrote: it may be time to retire from the C++ board for a few days...
Please, please don't do that.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|