|
certes, mais je portais mon analyse sur un autre aspect de la citation de notre ami... ;P
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
très bon rage!..now i feel so much having my mouth tied j'ai oblie tous la langue.. :(je la manque trop. mais je viendrai encore avec une meilleure langue..
He is like a one-legged man in a bum kicking competition. -Novjot Sidhu
--[v]--
|
|
|
|
|
that's why i keep practising my english here everyday...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Hi guys
I've got a method that is really CPU high expensive and I want to stop it when I click the mouse or press a key but , what's the best way to do this without slow the process?
I've tried with PeekMessage but it takes a lot of time to stop the process after the key pressed then.
Thanks in forwarding
DrPi
|
|
|
|
|
You can try multithreading. You run your CPU expensive code in the second thread and you can kill it from your main (GUI) thread. The best way to do this is to poll regurlaly for the exit command. See here[^] for more information on this.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Thanks guy
I was suposing that "your solution" is the ONLY correct solution.
I'll have to convert my code to a thread.
Dr.pi
|
|
|
|
|
I only know of 2 solutions. This worker-thread solution and the ::PeekMessage() solution. You'll have to choose the one based on your needs. For example if your task is running often or the entire time, you should not even consider the ::PeekMessage() solution.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Hi,
what are good code profilers to use with Visual C/C++ 2003?
|
|
|
|
|
|
|
Thanks to all! Tried the free profiler and it rocks!
|
|
|
|
|
Hello all
I am planning to start making activeX control using MFC.
can you please suggest some good books.
regards
Anil:
|
|
|
|
|
"Understanding ActiveX and OLE" by David Chappell - Microsoft Press
SkyWalker
|
|
|
|
|
Thanks for your quick response
I will have a look at it
|
|
|
|
|
anil wrote: I am planning to start making activeX control using MFC.
Developer's Workshop to COM and ATL 3.0 [^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Thanks for your quick responce.
The book you suggested is on ATL.
MFC based book.
there is something difference between ATL based and MFC based I think.
if not then tell me. I am totaly new to this area.
|
|
|
|
|
If you are going to develop a COM component...
then ATL is an easier way...
the idl files and guids are generated automatically
MFC is basically for win32 program development using API's
if ur developing com components... go for ATL
|
|
|
|
|
have a look at this:
COM and COM+ programming primer
i dont remember the author's name
this will help with ATL and MFC
|
|
|
|
|
hello all,
i am using one of the third patry tool of Microsoft INET (Microsoft Internet Transfer Control) through app wizards for FTP Application. But the problem is most of the parameters are in VARIANT. I worked the same in VisualBasic it worked well and i got the result. When i ported my application to VC++, Its giving some error while using OpenURL() method. In VisualBasic all, 1st parameter of this method is Optional where we need to give the URL. i had given the URL separetly for that.
Could any one plz say me how to use this class? plz.
I did the same application using CInternetSession and CFTPConnection. I got it worked. But i want to use this method.
Plz say how to do.
Thank u all in advance.
regards,
Basheer.
|
|
|
|
|
You MUST provide a valid URL when calling OpenURL(yourURL, icString)
SkyWalker
|
|
|
|
|
But i am giving that URL through separate property. that is there we have SetRemoteHost() through that i am giving the URL such as ftp://.....
and SetUserName() for giving Username and SetPassword() for giving password.
Then why do i need to give the URL. if it is so how do i give?. is it like
ftp://username:password@ftpsite
that means this has to be converted to Variant to transfer this.
is it?. Could u plz check this.
Thanking u.
Basheer.
|
|
|
|
|
You pass the url as a string to the OpenURL() function.
Remember always this: OpenURL 's return value depends on the target of the URL. For example, if the target URL is the directory of the FTP server, the directory will be returned. On the other hand, if the target is a file, the file will be retrieved.
(and not speaking that the url must be a valid one )
|
|
|
|
|
... and check the above (I do not know why it appears under Anonymous, as I was already logged-in) by passing this :
"ftp://ftp.microsoft.com/disclaimer.txt"
SkyWalker
|
|
|
|
|
hey i am having problems displaying integer/long variables in form of exponents....plz help
thanks
|
|
|
|
|
what ... problems?
SkyWalker
|
|
|
|