|
Hi,
with the SHGetFileInfo i retrieve the icon of a application. I want store the icon in a CBitmap object. How can i do this?
tommy
|
|
|
|
|
Use GetIconInfo() which will return the image and mask bitmaps (hbmColor and hbmMask members of the ICONINFO structure) and the use CBitmap::FromHandle() or CBitmap::Attach() to convert to a CBitmap.
Hope this helps,
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
I have an application that prints the contents of the screen on a printer. The user has the option to select some scaling factors for the print out. (E.g. fit to page, etc...)
I am using the same printing function, which draws in a DC for the screen output and for the printer output.
On NT, 2000 and XP am using the SetWorldTransform function before painting to the printer DC in order to scale the output. This works fine.
But since SetWorldTransform does not work on 95/98 or ME, I am searching for a replacement of the SetWorldTransform function. Of course I only need the scaling ability of the SetWorldTransform function with constant factors for x an y.
I am painting in the MM_TEXT mode so I thought that I could use the MM_ISOTROPIC instead to scale the viewport extends. So I need the same features (coordinate directions, origin) like in MM_TEXT mode but with scaled viewport extends!?
How can I do that (SetWindowExt, SetViewportExt,...)? I already tried some things but without any results.
Thanks in advance.
|
|
|
|
|
In a past project, I used MM_TEXT for screen drawing and MM_ANISOTROPIC for scaled printer output. Worked fine.
onwards and upwards...
|
|
|
|
|
|
Hi, here i have an urgent question, can anyone please advise?
I have an existing workable stand-alone visual c++ application and wish to put it on the web so that people can access its functionality through internet/intranet with webpage browser.
I am not clear at all which way I should follow because I don't have much experience on web application with vc++.
so far, some words are popped up in my mind, such as asp, cgi, jni... is there a simple way to do so?
I cannot get visual studio.net easily. probably .net is not a good solution to me.
Thanks again
|
|
|
|
|
One solution is ActiveX. Create an ActiveX control, which will enable users to access it via HTTP. The control can spawns the stand-alone exe and get data from and to the exe. There are other solutions too such as redesigning the exe as an in-proc COM server.
Kuphryn
|
|
|
|
|
|
|
You haven't got any macros or add-ins that have crashed? I know that sometimes stuffs up my copy of VC6 when I've been using it for a while.
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
No, it's a clean install (just tried re-installing today), without any add-ins or macros
Paul
That's better! It looks like radioactive waste now. - Ryan Binns
modified 18-Jul-18 11:59am.
|
|
|
|
|
Service Pack 5 installed as well?
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
Well, I had it installed before I re-installed VS today (it was doing the same thing then, with SP5), and I'm busy downloading it now to see if it will do anything different....
80%...
*twiddles thumbs*
Paul
That's better! It looks like radioactive waste now. - Ryan Binns
modified 18-Jul-18 11:59am.
|
|
|
|
|
The only other thing which really annoys me is Norton Antivirus, which seems to want to hog my files when I try to start building, and won't let them be autosaved before the compile begins.
Maybe a virus scanner problem? Some of the threads in the lounge today were about virus scanners that would ignore development directories.
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
Good idea - busy installing the SP now, and if that doesn't help I'll try disabling NAV. In fact the more I think of it the more I think that's the problem, because more and more I've learned to suspect Norton first...
Paul
That's better! It looks like radioactive waste now. - Ryan Binns
modified 18-Jul-18 11:59am.
|
|
|
|
|
Well even without disabling NAV it's compiling now
Weird, because I had SP5 installed previously and it wasn't working then either. Oh well.
Paul
That's better! It looks like radioactive waste now. - Ryan Binns
modified 18-Jul-18 11:59am.
|
|
|
|
|
The problem is that winoldap.exe crashes. I can't remember how I fixed it though
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Hmmm... I'll check that out, but it's now compiling again
Better not say that too loud or it'll hear me
Paul
That's better! It looks like radioactive waste now. - Ryan Binns
modified 18-Jul-18 11:59am.
|
|
|
|
|
What version of Windows are you running? I had the same problem on Win98, but never with Win95 or ME/XP.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
At the moment XP. From what I see I'm not sure how well WinXP and VS6 like each other - but I might be wrong.
Paul
That's better! It looks like radioactive waste now. - Ryan Binns
modified 18-Jul-18 11:59am.
|
|
|
|
|
Paul van der Walt wrote:
From what I see I'm not sure how well WinXP and VS6 like each other - but I might be wrong
I've never had any problems - I've been using that combination for over a year
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Weird... Maybe it's my bad Karma
Paul
That's better! It looks like radioactive waste now. - Ryan Binns
modified 18-Jul-18 11:59am.
|
|
|
|
|
Paul van der Walt wrote:
Weird... Maybe it's my bad Karma
Nope. Try touching your left ear-lobe with your right big toe just as you hit the compile button, at the same time as putting your left hand on your head.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
|
Paul van der Walt wrote:
tries it
Are you a contortionist? I couldn't do all that...
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|