|
Hi all,
I have images of different formats.On Selecting any one of these,
1) I want to see the preview of image(possibly in picture box).
2) i want to print the image on the click of button.
Please Guide how can i do that. A short code snippet will be highly appreciated.
Thanks in anticipation!
Regards,
Ankush Mehta
|
|
|
|
|
Hello.
Check out GDI+
There are lots of samples at MSDN.
Kakan
|
|
|
|
|
I had posted one problem on 1 december 7.48, for which you asked me to attach code.
I have attached the neccessory code in the same problem having date details as 1 december 7.48. Sorry for delay in posting neccessory details.
Regards,
Amol
|
|
|
|
|
hi folks,
I want to Plug new toolbutton into MSN TOOLBAR
how to plug it with 3 rdparty tool ,plse give some suggestions.....
(After signed with microsoft only)
Goodluck
Goodluck
|
|
|
|
|
I have an application that runs from the Task bar. This app is designed so that it can only be closed using the Task Manager (ie end process).
I have a small problem where the program icon remains in the task bar after I 'End Process'....This can be easily fixed by adding a Shell_NotifyIcon(NIM_DELETE,&IconData) in the destructor.
However, the destructor nor any of the other 'closing functions (Destroy etc) appear to be called when EndProcess using the Task manager is called.
Does anybody have any suggestion on how the Task Manager shuts down a program using End Process so that I can catch a message in order to delete this stray icon
Alan Buchanan
|
|
|
|
|
|
I can understand the reasoning behind this but would have thought that my destructors would still be called. How does 'End Process' clean up all my pointers that I create ?
I am still left with this irritating problem of the my program icon remaining in the system tray....A 'mouse over and it disappears. Is there any way to get rid of this ? I assume that it is some bug within Windows as I have seen it happen on other programs occasionally.
Thanks
Alan Buchanan
|
|
|
|
|
The point of TerminateProcess is that it doesn't execute any more code, it's designed as a last resort - ie, the process has stopped responding - not really for every day use to close your program. As far as windows cleaning up after itself, I know it does but don't ask me what type of magic it uses to do it.
Alan Buchanan wrote: I assume that it is some bug within Windows
Why's it a bug because your program isn't cleaning up after itself properly? The system tray doesn't automatically know when your program has closed so it cant remove the icon until the next time it tries to access it.
Why's it so important you cant provide a proper exit option in your app?
Gavin Taylor
w: http://www.gavspace.com
|
|
|
|
|
Thanks Gavin,
The program is installed at about 15 sites and the intention is for the program to run at all times. Its starts when the user logs on. In order to make it 'idiot-proof' I decided not to have an easy way to terminate the program (ie use Task Manager).
Its not really a bug but an irritation that I have noticed when I debug in the compiler more than from Task manager..The destructors aren't called when I close using the debugger either so I was curious to understand what was going on.
Anyway thanks for your help. I understand what is going on (I think) and have a solution if required (ie add an exit button.
Regards,
Alan Buchanan
|
|
|
|
|
Hallo.
Help me please.
I'd like to write a toolkit that would allow to work with fingerprint device. Such functions as getting the finger image from the device, matching with other, save in database atc.
I have a device and driver for it.
Maybe you can give some tips what to do for achieving this.
I've disassembled the driver's "*.dll"s and found functions that might be necessary, but I don't know how to work with them...
Paul Neyman
paulneyman@list.ru
|
|
|
|
|
Its very hard to tell form here, what you need. Bascially most devices comes with there own SDK, and sample programs on how to use it. You should look at the manual of your device or ask the company to help writing programs with their device.
http://www.priyank.in/
|
|
|
|
|
All SDK are not for free... I can't affor that preasure, I need to write it by myself.
|
|
|
|
|
Generally the hardware vendor in India provides it for free, else what will be the use of the hardware.
http://www.priyank.in/
|
|
|
|
|
Hello I French, am sorry for my English. I have create CStaticCtrl class (CStaticCtrl.cpp, CStaticCtrl.h) derive of CStatic. I have just add OnCtrlColor in this new class. This news class functions very well. Now i want add this new class in "Tools Control" in Visual studio 6. I want a button in "Tools control" for drawing this new CStaticCtrl same as CStatic in a dialog. But i don't now. And you ?
Thank
xDiamant
|
|
|
|
|
Hi xDiamant,
I don't think you can get a button for each and every new control you design. But there is the "Custom Control" button that will allow you to use any control you have created, in the resource editor.
This article should help:
Creating Custom Controls
squidev
|
|
|
|
|
Thank for link. For Add a tool control, i think use a ActiveX control (OCX). I search in the Net ....
Thank Bye
|
|
|
|
|
Hi, this is my first time posting in this forum.
I have written a program which solves Sudoku grids, using Visual C++, but it uses black MSDOS boxes.
I would like to make it look better using a windows32 application fashion, but I cant find the way to start from.
I want to learn how to open a file, show its content with the sudoku format and then show the result on screen. (I suppose the algorythms dont have to change, do they?)
When I open a file in my program I use ifstream file ("whatever.sdk")
When I print on the screen I use the well known "cout<<"whatever"<
|
|
|
|
|
Hi
How to set up a single event-handler function for the clicked event on all of the radio button controls.
I have 5 radio button . i would like to add single event handler for this all radio button.
Regards
Rajesh
rajesh
|
|
|
|
|
If you are using MFC, you can use an ON_CONTROL_RANGE message map entry, like this:
afx_msg void OnButton(UINT nID);
BEGIN_MESSAGE_MAP(...)
ON_CONTROL_RANGE(BN_CLICKED,resource_ID_min,resource_ID_max,OnButton)
END_MESSAGE_MAP
CMyDialog::OnButton(UINT nID)
{
} where resource_ID_min is the resource ID for the first radio button in the group, and resource_ID_max is the resource ID for the last. Your handler, OnButton , is called with the resource ID of the button that was clicked. Note that you have to insert this entry manually; the wizards won't do it for you. It's also a good idea that the resource ID's for your radio buttons are sequential. You can manually edit your resource.h file to ensure that's the case.
Software Zen: delete this;
|
|
|
|
|
Can anyone help please?
My VC++ program has 17 property pages and a property sheet with two rows of stacked tabs. I have made no attempt to implement any resizing algorithm as it isn't required for my application. Consequently I have made no use of EnableStackedTabs() as the default is Enabled, which is what I want.
The display is fine on a home PC and non-widescreen laptop, with 2 rows of tabs. However, when running on an Acer Ferrari 4005 widescreen laptop all 17 tabs appear in a long line, going off the end of the screen. I have tried changing screen resolution of the Acer to no avail. The tabs always stay in a long line!
Can anyone suggest what might be wrong and how I could get the display on the Acer back to 2 rows of tabs?
Thanks in advance.
Mark.
|
|
|
|
|
Hello everone!
I found VC++ 1.52! Yay! :P
But now... How do I use it? It's so different from VC++ 6... The help files don't help me, I need a tutorial or something that'll tell me how to create a dialog-based app... Anyone know? Thanks!
Lord Kixdemp
www.SulfurMidis.com
www.SulfurSoft.tk
[ftp://][http://][hotline://]tsfc.ath.cx
|
|
|
|
|
Kixdemp wrote: something that'll tell me how to create a dialog-based app
You're looking for the AppWizard. I don't remember where it's at in the menu structure, unfortunately; it might be under Tools. You'll also need the Class Wizard, which lets you add event handlers and member variables; IIRC, you bring it up with Ctrl-W.
Sorry I can't remember more, but it's been a awfully long time since I used VC1.52 .
Software Zen: delete this;
|
|
|
|
|
> Sorry I can't remember more, but it's been a awfully long time since I used VC1.52
All I remember from that period was "How exactly is MFC supposed to work!?". But then again, I came from a DOS/Borland/TASM environment...
--
Pictures[^] from my Japan trip.
|
|
|
|
|
i advise you not to use it if you expect to be standard compliant !!!
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20]
|
|
|
|
|