|
There is no type-checking done on the extra printf() parameters. If you have %f in the format string, it's up to you to actually pass a float variable there. Since you are passing an int , all bets are off.
--Mike--
Thing #9 to say when mad at work: "Therapy is expensive. Popping bubble plastic is cheap. You choose."
Just released - 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
I want to implement a SMTP Gateway that scans e-mails before allowing them to enter the mail server.Does anybody know how is this implemented??
Do I hook on port 25 or Do I make a Mail realy or what??
|
|
|
|
|
i visit the site for around 3 monthes, the site becames worse and worse in the period.
see these questions and replies now, no better than funny.
if keep going in this way, the site will die soon.
includeh10
|
|
|
|
|
i don't see how the owner of the site has much control over the kinds of questions that people ask..
-c
There's one easy way to prove the effectiveness of 'letting the market decide' when it comes to environmental protection. It's spelt 'S-U-V'.
--Holgate, from Plastic
|
|
|
|
|
Two things,
There is no such thing as dumb question, providing the people have done a little bit of investigating first before asking the question.
Secondly, the question forums are only a small part of the CP experience, it is the wealth of articles and information available that make CP stand out from the rest of the crowd.
I bet you are one of the glass is half empty brigade
Michael
Fat bottomed girls
You make the rockin' world go round -- Queen
|
|
|
|
|
I visit the site everyday, I LIKE IT!
I know of no other place to find such a wealth of information.
Kevin
|
|
|
|
|
includeh10 wrote:
if keep going in this way, the site will die soon.
Here's a way to improve the site - leave. I do harbour concerns that CP is getting cliquey, but a bigger problem seems to be the influx of morons who want us to do their homework and don't want to do any work or participate in the site.
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
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
Christian Graus wrote:
bigger problem seems to be the influx of morons
Christian, may be it's time to check out your glasses, as you are seeing morons everywhere....;P
|
|
|
|
|
.S.Rod. wrote:
Christian, may be it's time to check out your glasses, as you are seeing morons everywhere....
*grin* you may have a point. I'm feeling a little worn out at the moment, work has just been boring, home projects seem to have stalled. But life is better today, I've been moved to the ASP.NET project. I'm stoked.
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
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
Please, i have no idea how to do it. Libjpeg is so complicated to use that iam having a troubles with it for over 2hours, imagesource library is not freeware, but i have made it.. i dont have any other idea. please i just need to convert a bmp file to jpg file, with the most short code. not even a library,just a quick code that will be able to do this, or some example of project that uses the jpeglib with compiled lib files ;(( God.., please guys, help me..
|
|
|
|
|
http://www.smalleranimals.com/jpegfile.htm
there is only one MFC usage in it and it's a CString that you can easily replace with const char *.
-c
There's one easy way to prove the effectiveness of 'letting the market decide' when it comes to environmental protection. It's spelt 'S-U-V'.
--Holgate, from Plastic
|
|
|
|
|
How can I stop the X from closing the window?
I don't want to disable it, I just want it to hide the window, not close it.
|
|
|
|
|
Handle the WM_CLOSE message, and call ShowWindow(hwnd, SW_HIDE) in response to it.
--Mike--
Thing #9 to say when mad at work: "Therapy is expensive. Popping bubble plastic is cheap. You choose."
Just released - 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
A problem that I see with this method is that another control could not send a WM_CLOSE message and have the window close, you would either have to set a flag in your WndProc to allow it to close at certain times, you would have to out right destroy the window.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
Hnadle the WM_SYSCOMMAND message. Execute your special processing where the WPARAM is SC_CLOSE.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
does anyone know how i could extract a dialog form so i could use it in another program...
thanks,
grahamoj.
|
|
|
|
|
what do you mean by saying "extracting dialog forms"??
could u explain me so I will know whether I can answer your question or not.
|
|
|
|
|
If you mean that you created a dialog in a given (old) workspace and you wanna have exactly the same dialog in another (new) workspace without typing it in from scratch than do the following:
1. Create a blank dialog in the new workspace, and close this workspace
2. Go to the old workspce (not in VS but in Windows Explorer) and open oldprojectname.rc file for editing (e.g. with notepad)
Copy the dialog's resources to the clipboard
3. Paste the clipboard in newprojectname.rcto the place where your new dialog was created by VS
4. In resource.h of your new workspace define all resources of the old dialog.
5. Launch VS with the new workspace
Bunburry
|
|
|
|
|
The question I ask today is very simple: how do I load icons and text into a ListView control with MFC? I know how to do it in Win32 but as far as I can tell, it's not compatible with MFC ListView control functions.
-- Steve
|
|
|
|
|
|
Thanks! One more question though. How do I get a floating menu to appear when I right-click on the ListView? It always ends up in the top left corner because I have to use ON_NOTIFY(NM_RCLICK...) to give it the message. What do I do?
-- Steve
|
|
|
|
|
Do you mean a simple popup menu? If yes, I can give you some sample code
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Yes, I need a floating menu to appear when I right-click the ListView control. That's it
-- Steve
|
|
|
|
|
here we go:
POINT point;
GetCursorPos(&point);
CMenu menu;
CMenu *submenu;
menu.LoadMenu(IDR_POPUP);
submenu = menu.GetSubMenu(0);
submenu->TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON,point.x,point.y,GetActiveWindow(),NULL);
hope this helps
modified 12-Sep-18 21:01pm.
|
|
|
|
|
How can one determine if the local machine or a machine on the local network is running an SMTP server? I was thinking I could just check to see if a specific port (#25) was open, but it could be set up to use a different one. Is there any way to check?
David Wulff Born and Bred.
|
|
|
|