|
Me and the monkeys on the same line... Now, that's a honor.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
need 11th?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
As a matter of fact, *I am* the 11th one.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Good!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
CPallini wrote: I need a faster neuron connection
Yeah, because 22 mintues to write a two lines reply is a looooong time
|
|
|
|
|
I didn't get you. Actually I'm still interpreting "Yeah"...
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
No, you need to quit your job so you cna spend all day scanning the CP forums, so you can react the quickest
Do it long enough and you might start posting answers before the questions appear....
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Stuart Dootson wrote: No, you need to quit your job so you cna spend all day scanning the CP forums
Actually that's exactly what I'm doing... (just kidding, boss!).
Stuart Dootson wrote: Do it long enough and you might start posting answers before the questions appear....
Well, that's actually pretty easy, for instance:
- "We don't make homework for you".
- "Please don't use
CString::GetBuffer() ". - "Urgentz questions go immediately at the bottom of the stack"
are already in the ready-answers-for-incoming-questions queue.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
hwta about fast finger
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
There is no such function like PathStripPath () in MFC can you please help me some other similiar function
Thanks
|
|
|
|
|
Well there is in Win32 API [^]. Are you aware MFC applications may actually access Win32 API ?
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
It's an API function and if your compiler says there's no such function, you're probably using a very old SDK.
You can either download the latest SDK, or use PathFindFileName()[^].
Note: You must link to shlwapi.lib and include shlwapi.h to use this function.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
GetModuleFileName [^].
Then you've just to extract the filename from the full path.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
kapardhi wrote: Can i get the name of this .exe programmatically.
within my application.
You can use __argv[0] .
"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
|
|
|
|
|
If yes:
Why?
If no:
1) Why?
2) How to do it
Thank you masters!
modified on Wednesday, April 1, 2009 7:48 AM
|
|
|
|
|
See here.
"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
|
|
|
|
|
Hi,
In my application I am using Active Sync to connect my PC to Mobile(Windows Mobile).I am using CeCreateProcess() function to invoke exe in mobile.I need to abort my application.
For that I have created one button on my dialog.I have added event handler to that.I have added
PostQuitMessage(0);
while running the application If I click on "Abort" button application is not closing at that point.After completion of present running task only application is closing. For example I am executing testcycle.In the middle I need to abort my application.Can anyone help me.
Rekha.
|
|
|
|
|
The clue is in the api command's name.
PostQuitMessage (0) .
It POSTs a WM_QUIT message to the message queue. This is a signal for your message loop to exit.
While you are still in a function, you're not handling messages... so you don't quit.
ie:
void CMyApp:OnSomeButton ()
{
PostQuitMessage (0);
Sleep (10000);
}
will take 10 seconds before it even could quit.
Not knowing what you're doing, that's as helpful as I can be at the moment.
In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!
|
|
|
|
|
Hi,
In my Application I am connecting to Mobile and sending data to Mobile from my computer using socket.And I am receiving information from Mobile.
If I click on Abort button I need to stop Application.I am using MFC.
Can I use PostQuitMessage(0) for this?
|
|
|
|
|
hemlat wrote: Can I use PostQuitMessage(0) for this?
YES.
Now go and read my message again - it won't stop straight away. If you do many other things after the PostQuitMessage command, it will do them first.
Iain.
In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!
|
|
|
|
|
exit [^] instead of PostQuitMessage ?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hi,
exit is not working.I am sending Data from my PC to Mobile.And I am receving data from my Mobile by using socket.I need to abort this operation.
|
|
|
|
|
it seems to dialog based application, why don't your try EndDialog() api!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
I need to close application immediately after clicking the abort button.
|
|
|
|
|
call EndDialog there only!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|