|
So you saying that if I load the dll for another app it will be another entry in heap for the variables in the class (or globals too)?
Then what if I want several of the control in one app - on eno dialog? My problem is the message handler here. So it will use the same code, but with the current instances variables if I'm understanding clearly.
|
|
|
|
|
If you load a DLL in another app then:
- The globals will be different.
- The heaps will be different.
Steve
|
|
|
|
|
Hi Friends,
I am in need of writing a client application using vc++ which will fetch me "cookie timeout value"
How to retrieve cookie timeout value from the cookie information(data. Any APIs or sample code?
Thanks in advance
poojaaa
|
|
|
|
|
You mean cookies used on the web? Aren't the way cookies are stored specified to the browsers? So IE stores them this way in this format, FireFox stores them that way in that format and so on...?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
Hi ,
im using URLDownloadToFile to download an exe Please let which api i can use to download multiple exe"s and is it possible to check whether the desired exe is present in the web server.....
Thanks,
455
|
|
|
|
|
pradeep455 wrote: possible to check whether the desired exe is present in the web server
IsValidURL()
pradeep455 wrote: which api i can use to download multiple exe"s
I'm not sure if something exists, But why not you multithead?
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
if u don"t mind can u give a sample to achieve this....
|
|
|
|
|
pradeep455 wrote: im using URLDownloadToFile to download an exe Please let which api i can use to download multiple exe"s...
Didn't you just answer your own question?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
1/ Download first file.
2/ Wait till done.
3/ Download second file.
4/ ...
a)
Many webservers will limit the amount of files you can download simultaneously. It's polite to not flood them with requests.
b)
Assuming your connection is going as fast as it can, downloading them in parallel will just make each one take longer - you're still downloading the same amount of data after all!
c)
Package them in a zip file? Then you can download them all in oen big go.
Just a few thoughts,
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
would there be any data member in the CwinThread Object to point it the Process where I want to create the thread
|
|
|
|
|
You want to create a new thread in a remote process with CWinThread ?
As far as I know, this is something which can't be done: you can only create a thread in your own process.
|
|
|
|
|
Actually, it can be done: CreateRemoteThread[^]
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
I didn't know that, I learned something today
But, in which situations is this usefull ?
|
|
|
|
|
Well, where i have seen this being used was here[^], but there might be numerous other uses for it...
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
Cedric Moonen wrote: But, in which situations is this usefull ?
Thread outsourcing
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
That's nice...
- ns ami -
|
|
|
|
|
I guess I have to use the the WIn32 SDK api
|
|
|
|
|
|
was looking for something whtin the CWinThread Class I guess I'll have to stick to WIN32 SDK
seems like the real low level Api's Dont have Objects to suppourt them
|
|
|
|
|
You'd have to code the remote thread using SDK code anyway... So it's not a harsh restriction creating it using SDK code.
Good luck,
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
Hi,
I have a lot of MFC programming experience (mostly used with Stingray Objective Studio extensions), but I don't have any web programming experience. I'd like to start getting up to speed. Can anyone recommend a couple of good books on how to best use my existing experience to develop web apps?
Ideally I'd like to learn how to set up a container in a web browser that has multiple controls (buttons etc) that would be used to manage a canvas where I could do some custom drawing (e.g. CDC-style). What technologies would best support something like that?
Thanks,
Kevin
|
|
|
|
|
PHP should be easy for u.
|
|
|
|
|
Hi
I have a component I would like to embedd in my dialog form, to do this I have to set its "SetParent(int)" with hwnd. Is it possible to convert Hwnd to integer, or must I go around this problem ??
|
|
|
|
|
Define the context of SetParent: which function is this ? Because the win32 SetParent accepts the HWND of the windows. And the CWnd::SetParent function accepts a pointer to another CWnd object.
|
|
|
|
|
Thanks for you reply,
The component is a commercial framgrabber, and has it´s own SetParent function. I have tried to set the components SetParent to hwnd, but then Visual Studio complains (cannot convert parameter 1 from 'HWND' to 'int').
|
|
|
|