|
I'm not sure but I think you have to map an OnRecieve message in a message map.
- Matt Newman / Windows XP Activist
-Sonork ID: 100.11179:BestSnowman
†
|
|
|
|
|
Hmm... I thought it was just a virtual function...
Adam Clauss
cabadam@tamu.edu
|
|
|
|
|
I'm not sure it has been a while since I have worked with OnReceive.
I just checked it and it is virtual.
There isn't by chance anything running on that port is there?
- Matt Newman / Windows XP Activist
-Sonork ID: 100.11179:BestSnowman
†
|
|
|
|
|
No, I do have a *real* mail server, but I made sure that it was shutdown before I tried this.
And the telnet side can receive, cause I can 'send' text and it is displayed on the telnet window, just doesn't seem to go the other way around...
Adam Clauss
cabadam@tamu.edu
|
|
|
|
|
The OnXXX "events" are part of CAsyncSocket, and are not mapped for CSocket. If you want asyncronous communications, then derive from CAsyncSocket instead.
Jon
Sorry to dissapoint you all with my lack of a witty or poignant signature.
|
|
|
|
|
I am currently working on an program that needs to delete itself when executed. How would I go about achieving this? Is it possible to do while it is executing, and if not (which I expect), how would I go about deleting it and the directory it resides in after the next reboot?
[edit:]
Ravi mentioned that when the app ends, it should add a registry entry (I forget which) requesting Windows to delete it the next time Windows restarts (in a reply to Mazdak's similar question). Does any one know wha tthis is, before I set aside six hours to try and searh MSDN?
Any help will be appreciated!
____________________
David Wulff
Beyond the Staples Center you can see America,
With its tired, poor, avenging disgrace,
Peaceful, loving youth against the brutality,
Of plastic existence.
Pushing little children,
With their fully automatics,
They like to push the weak around,
Pushing little children,
With their fully automatics,
They like to push the weak around.
- Dear
|
|
|
|
|
David Wulff wrote:
How would I go about achieving this? Is it possible to do while it is executing
I asked this question some days before,and I found out it is not possible.
I would be appreciate if you find the answer tell it to mee.
http://www.codeproject.com/script/comments/forums.asp?forumid=1647&select=151289&tid=151289#xx151289xx
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|
|
Well I had guessed as much, in which case I am going to have to stick with the second approach; just how to do it? I can think of two different approaches, but I don't think either is the correct way to do it.
I'll let you know if I find a solution.
____________________
David Wulff
Beyond the Staples Center you can see America,
With its tired, poor, avenging disgrace,
Peaceful, loving youth against the brutality,
Of plastic existence.
Pushing little children,
With their fully automatics,
They like to push the weak around.
- Deer Dance, S.O.A.D.
|
|
|
|
|
It seems that you have better chance than me,some guys tell you the answer
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|
|
I think it must be relative to the time of day.
____________________
David Wulff
Beyond the Staples Center you can see America,
With its tired, poor, avenging disgrace,
Peaceful, loving youth against the brutality,
Of plastic existence.
Pushing little children,
With their fully automatics,
They like to push the weak around.
- Deer Dance, S.O.A.D.
|
|
|
|
|
David Wulff wrote:
I think it must be relative to the time of day.
But I don't think so,If I don't make mistake I THINK one of person that answer me that time was Ravi,but not the same answer. He learn something during these days that he didn't know that day.
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|
|
David Wulff wrote:
Does any one know wha tthis is,
See the help on MoveFileEx() . The flag you want to use is MOVEFILE_DELAY_UNTIL_REBOOT .
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Thanks Ravi, that does the job perfectly.
____________________
David Wulff
Beyond the Staples Center you can see America,
With its tired, poor, avenging disgrace,
Peaceful, loving youth against the brutality,
Of plastic existence.
Pushing little children,
With their fully automatics,
They like to push the weak around.
- Deer Dance, S.O.A.D.
|
|
|
|
|
Check out the article at http://www.microsoft.com/msj/defaulttop.asp?page=/msj/archive/sf9c.htm for a good solution to this problem.
Dave Goodman
dgoodman@infoway.com
www.dkgoodman.com
"Actio sequitur esse."
|
|
|
|
|
Thanks Dave! That's a great link!
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
I can only repeat Ravi's words: thanks, that is a great link!
____________________
David Wulff
Beyond the Staples Center you can see America,
With its tired, poor, avenging disgrace,
Peaceful, loving youth against the brutality,
Of plastic existence.
Pushing little children,
With their fully automatics,
They like to push the weak around.
- Deer Dance, S.O.A.D.
|
|
|
|
|
Depends on the platform. Windows prevents you from deleting files that are running, in DOS though you could have made an application that deleted itself since it goes into RAM on runtime.
Anyway, you could probably edit Autoexec.bat, Win.ini or the registry to make sure it is deleted on the next reboot.
Isaac Sasson,
Lean, mean posting machine!
Sonork ID 100.13704
|
|
|
|
|
I've just started using CreateDIBSection with 8bit bitmaps. I have filled the BITMAPINFO.bmiColors member with my 256 colours, and I select the palette into the DC with SelectPalette, and it all works perfectly. But how do I change the colours in BITMAPINFO.bmiColors after I've called CreateDIBSection, because it seems to be these that the colour of my bitmap relies on - like repaletization - how is it possible?
Thanks for the advice...
With time we live, with money we spend!
Joel Holdsworth
|
|
|
|
|
Hello!
Here's another dumb newbie question for you:
Let's say I have class A that has class B as one of it's members. Is there a function so I can reach class A from class B? You know, as an object.parent or something like that.
thank you all!
marcela bovio
|
|
|
|
|
Nothing built into the language. You can store a pointer to the outer class as a member of the inner class when it is created however, and just use that.
--------
Sip my mind.
|
|
|
|
|
As far as I know you can't do it directly.
But instead of putting one class inside the other you could derive one from the other (inheritence, so it gets the same functions and vars as the first one and you can add more).
Then you set the as "friends" so you can approach one from the other.
Try it, or something like that. I don't remeber how it goes exactly.
Isaac Sasson,
Lean, mean posting machine!
Sonork ID 100.13704
|
|
|
|
|
I made my control using VC++ 6.0.
I want to make another to inherit this control.
what shall i do?
I know that my control is inherited from COleControl. And then It can works that I can make inherited ActiveX control from my custom control.
Isn't it right?
How can i do that?
Thank you!
please contact me via jav@korea.com
|
|
|
|
|
When you create your ActiveX it has a class that name YourActivexCtrl ,I TKINK you can inherit from that class.
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|
|
I thought you couldn't inherit from ActiveX controls like you do a C++ class?
AFAIK you only have 2 options:
1) Containment
2) Aggregation
Or something like that...i'm too lazy to look up ATL books and I rarely program ActiveX controls.
These options fall short of inheriting like MFC classes do.
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Hockey wrote:
1) Containment
2) Aggregation
I don't think that guy uses ATL,He said his contol inherit from COleControl,I think he use MFC.
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|