|
I got a POP3/SMTP server (MerakMail) running here. What i want is that whenever mail arrive at POP 3 server, i get notified i.e some external application automatically starts or event gets generated e.t.c.
Any idea?? Do i nedd to trap port 110?? do i need to design a hook app or something else ??
|
|
|
|
|
I don't know if MerakMail has an API for this, but a generic solution could be creating a "proxy" server that listens on port 110 and forwards all data to other machine. This way you could generate events to notify other applications of mail arriving in an unobtrusive way.
lazy isn't my middle name.. its my first.. people just keep calling me Mel cause that's what they put on my drivers license. - Mel Feik
|
|
|
|
|
When notifying a person, the check granularity is not so fine as to preclude simply running a program that connects to the POP server and queries for the UIDLs, sending notification when new email is found. This is nice because it can be used on your machine if you can get email from there at all-- it doesn't depend upon many particulars.
Just check every few minutes or so right?
|
|
|
|
|
Hi All,I wrote a screensaver ,I want to debug it,How can I do that?
thanx for any hints.
|
|
|
|
|
Don't suppose you have a 2nd machine ? If not, depending on what you want to debug, you could write log files and check your assumptions there.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Thank Christian Graus.
I dont have 2nd machine, But,if I have a 2nd monitor,can I debug it without writing log files? Could you give me more hints?
|
|
|
|
|
Either use remote debugging, via a second machine, or make the debug version display at a smaller resolution than the screen (say 600x400), not topmost, and not dismissable via mouse/keyboard/active window/etc.
Regards, Larry Antram
Stardust Software
"Those who choose to sacrifice freedom in order to gain security shall not have, nor do they deserve, either one"
-- Benjamin Franklin
|
|
|
|
|
Thank you advanced for your cue;)!!
|
|
|
|
|
If you do some painting in your Screensaver than you can 'OutputText' there.
Try it @ home. (~B&B)
|
|
|
|
|
Let's say I have a view, and I make some checking in CView::OnInitialUpdate() and found out it can't load some resources for some reason, so I decide to destroy the view and try to reopen the view.
How to close the view and then recreate a new view, all happening inside OnInitialUpdate() ? (is it possible?)
Thanx in advance...
|
|
|
|
|
|
|
Hi
I have recently had a problem with my application which uses direct x. On the latest detinator drivers when I create my window it dosn't display.. All I get is a small icon on the bottom of the task bar (almost like a window button but it only displays the icon)..
if I use the older nvidia drivers (40.42) it works fine..
can anybody point me in the right direction with a forum to go to or some documentation to read.
I am still using the DX7 api..
Many Thanks
Chris Leathley
|
|
|
|
|
Have you verified that the window exists, and called ShowWindow(SW_SHOW) on it ? Checked the return from ::IsWindowVisible or GetWindowPos ?
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Yes.. the window is valid. (I checked showwindow() and it is all ok).. I can can hear the window working (it makes noise when i press a key) and the pause dialog is displaying ok so its processing message..
Its just not rendering.. It only does it on the latest detinator drivers.. 100% ok on all the older ones..
|
|
|
|
|
and the GetWindowPos value was ? I'm thinking you may have an offscreen window, or a 1 pixel one.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
I used GetWindowRect and it all looks ok..
I changed the output render size to smaller than the desktop and i can see the window in the right place but DX is not drawing anything..
I checked the DX init and all the surfaces are being created (its all error trapped anyway)
I need to find out whats going on, or there are going to be 16000 not happy people looking at me (the program is Visual Pinball if you have heard of it..)
Chris
|
|
|
|
|
If you run some of the Direct X demo stuff that comes with the SDK, does it display OK ? How much of your code can you comment out without it doing nothing at all ? I'd try other code first, then I'd try to turn off stuff to see if I could find which bit is breaking it. Then I'd blame the driver. :P
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
The problem is about Drivers, not about your code.
The DirectX run-time should only run certified display device drivers. But in practice, a lot of the drivers are not certified at all.
I have started a business 4 years ago with a DirectShow-based program, and I had so many such issues so I stopped everything.
DirectX is a joke.
Now I wish you good luck.
Back to real work : D-19.
|
|
|
|
|
I want a MDI child window to be resizeable not less than 200 not bigger than 500 pix for example, and only height.
When you size the window less than that 200 pix the application should make the window 200 height, when you size to 300 pix won´t do anything, and when it will be bigger than 500 size to 500.
I think it should be done on OnSize function but i dont know how.
Other option is let sizing window in this interval 200-500 and when reach it 200 or 500 stop sizing.
help would be appreciate, thanks.
|
|
|
|
|
you better handle WM_GETMINMAXINFO message.
|
|
|
|
|
And here's some example...
void <Some View or Dialog etc.>::OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI)
{
// TODO: Add your message handler code here and/or call default
if (m_bInit) // Make sure the view is initiated
{
lpMMI->ptMinTrackSize.x = <min_horizontal_size>;
lpMMI->ptMinTrackSize.y = <min_vertical_size>;
}
<Base Class>::OnGetMinMaxInfo(lpMMI);
}
|
|
|
|
|
If you handle the message you should not call BaseClass::OnGetMinMaxInfo(lpMMI) right?
|
|
|
|
|
Thanks, I handle WM_GETMINMAXINFO in CChildFrame::OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI){
// TODO: .....
lpMMI->ptMinTrackSize.x = 200;
lpMMI->ptMaxTrackSize.x = 500;
}
it works but now i have a problem , I size the window to the min pixel size I choose, all ok, but then I try to make the window bigger traking it the traking border of the window not appear. why this problem? I use XP.
|
|
|
|
|
Especially when I want to transport only part of a file. For example, in a VOD system, transfer only a special part of a movie. How?
Is there any similar example project?
Kindly help me. Thank you.
|
|
|
|