|
No need to understnd this.
need to do.
|
|
|
|
|
Then Just do it.
MSN Messenger.
prakashnadar@msn.com
Tip of the day of visual C++ IDE.
"We use it before you do! Visual C++ was developed using Visual C++"
|
|
|
|
|
I asked it at people there.
You only speak much.
Please better not making spam here,
I do not want to loose time to it, (as with your responces).
Dowes someone know how to use HTTP headers?
|
|
|
|
|
Ok you are the boss with the question.
MSN Messenger.
prakashnadar@msn.com
Tip of the day of visual C++ IDE.
"We use it before you do! Visual C++ was developed using Visual C++"
|
|
|
|
|
If you're using FTP, use FtpCommand to send a REST (RESTart) command before calling FtpOpenFile and InternetReadFile to get the data. See RFC 959[^].
If you're using HTTP, you can set the Range header to indicate which part of the document you want to retrieve. See RFC 2616 (HTTP/1.1)[^]. Send headers with HttpSendRequest .
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Can you write C++ method,
even in concide form, to show using that header for http ?
This is my primary purpose for ask.
|
|
|
|
|
vgrigor wrote:
Can you write C++ method
yeah i will write it for you but my rate is $300 / hour and paid in advance.
|
|
|
|
|
How can a VC program detect the site address visited from the IE ?
|
|
|
|
|
I think what you are asking about is a Browser Helper Object (BHO).
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Actually we want a practial example.(i.e. code)
|
|
|
|
|
You can search here at CP, MSDN, and Google. You'll find tons of examples.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Can my program be notified if the address bar in IE is changed ? how?
|
|
|
|
|
How can I detect a Windows application opened/closed from my VC program?
|
|
|
|
|
Look into SetWindowsHookEx using the WH_SHELL hook.
|
|
|
|
|
Could you please explain it with a small example?
I want to continiously monitor the applications opening in Windows.
Thanks
|
|
|
|
|
Yes, I will try to wrie up an article for it.
I am REALLY busy at the moment, so you will have to be patient.
Also, go to the article request message board and post a request there as well.
Someone else might get to it before I do.
And you run and you run to catch up with the sun but it's sinking, coming around to meet you again...
|
|
|
|
|
I'm dumb founded at this.
I can't for the life of me figure out how to find out how much memory is being allocated for a vector.
I mean I want the actual number of bytes it is using in memory.
If anyone can help me with this, I'd be very thankful.
|
|
|
|
|
Anonymous wrote:
I'm dumb founded at this.
I can't for the life of me figure out how to find out how much memory is being allocated for a vector.
I mean I want the actual number of bytes it is using in memory.
If anyone can help me with this, I'd be very thankful.
sizeof() ?
|
|
|
|
|
Anonymous wrote:
I'm dumb founded at this.
I can't for the life of me figure out how to find out how much memory is being allocated for a vector.
I mean I want the actual number of bytes it is using in memory.
If anyone can help me with this, I'd be very thankful.
sizeof(data)*sizeof(vector) ?
|
|
|
|
|
int nSize = sizeof (vMyVector) + sizeof (vMyVector [0]) * vMyVector .capacity;
Please remember that this is TOTALLY implemtation specific and runs a very good chance of being wrong.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
Assuming you mean std::vector then,
template < class T > size_t VectorSize ( std::vector< T >& v )
{
return sizeof ( v ) + sizeof ( T ) * v.capacity () ;
}
should give a good estimate.
std::vector< int > vi ;
std::cout << VectorSize ( vi ) << std::endl ;
vi.resize ( 100 ) ;
std::cout << VectorSize ( vi ) << std::endl ;
This produces,
16
416
on my system.
Does this help? It implies knowing a little about how the container is implemented, and isn't going to work for other than vectors. It's a good estimate for a vector since we know that the array part is contiguous.
Paul
|
|
|
|
|
Is to possible to receive the VC++ threads here as a mailing list and reply by that
mailing list in addition to this nice web based interface?
Thanks,
|
|
|
|
|
Anonymous wrote:
Is to possible to receive the VC++ threads here as a mailing list and reply by that
mailing list in addition to this nice web based interface?
No. This is a web only forum.
Michael
But you know when the truth is told,
That you can get what you want or you can just get old,
Your're going to kick off before you even get halfway through.
When will you realise... Vienna waits for you? - "The Stranger," Billy Joel
|
|
|
|
|
i know how to get the command GetCursorPos working in vcpp but im having troubles porting to to borland cpp builder 6, it is giving me 2 odd errors. a simple example should do.
thank you
---------------------
And Like The Wind Our Hero Vanishes Off Into The Distance...
|
|
|
|
|
o nm, it was just a stupid clash of varibles, i was using "Mouse" for my point. So as to help others, i will post what i did
POINT MousePos;
GetCursorPos(&MousePos);
PopupMenu1->Popup(MousePos.x,MousePos.y);
Remember that this is for borland cpp builder and not vcpp, although it is basically the same...
ty
---------------------
And Like The Wind Our Hero Vanishes Off Into The Distance...
|
|
|
|