|
|
I feel kinda dumb asking this question...
How can I display a bitmap onto a dialog from a file not a resource. All the examples I've been able to find require handles for API. Thanks
-Ken Mazaika
|
|
|
|
|
::LoadImage
Or if it's not a bmp, use CXImage, GDI+, Paintlib, FreeImage, or something like that.
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
|
|
|
|
|
For ::LoadImage what could I put for the HINSTANCE? Thanks
-Ken Mazaika
|
|
|
|
|
I don't recall if NULL will work, if not, in an MFC app there is AfxGetInstance ( or something like that ), in a Win32 app you will have created it, and probably stored it in a global called hInst or something like that.
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
|
|
|
|
|
Thanks, got it to work.
-Ken Mazaika
|
|
|
|
|
Glad to help. I'd recommend looking into CXImage or similar though, unless you need to use .bmp files. jpgs are so much smaller.
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
|
|
|
|
|
|
I have an IP address control on a dialog in my application that works with XP but with Windows 98 the dialog fails to pop up. When I substitute an edit control for the IP control it's ok. Is there something I should include with my program to work on Windows 98? What is the best approach for this problem? P.S. Is it the same situation with all common controls?
|
|
|
|
|
In your app's startup code, call InitCommonControls() or InitCommonControlsEx() . And that is required if you use any of the controls introduced with Win 95 or later (list, tree, calendar, etc.)
--Mike--
"alyson hannigan is so cute it's crazy" -- Googlism
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
|
|
|
|
|
Thanks, can you also please tell the include file and lib file I should link to.
|
|
|
|
|
RTFM
See the docs on those APIs, every API is listed with its header and import lib.
--Mike--
"alyson hannigan is so cute it's crazy" -- Googlism
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
|
|
|
|
|
Hi.
I would like to port a C++ .NET project to C++ .60 so other developers may open it using C++ 6.0. I am working a team project and some of our members do not have C++ .NET.
Thanks,
Kuphryn
|
|
|
|
|
Just ship the .cpp and .h files and then they have to create a new project to compile the code and run it. I don't think Microsoft would make such function that could "downcreate" VC.NET projects to VC6 projects!
Or have they?
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Rickard Andersson wrote:
Just ship the .cpp and .h files and then they have to create a new project to compile the code and run it. I don't think Microsoft would make such function that could "downcreate" VC.NET projects to VC6 projects!
Yes, but a stupid moron spent time on this and published a useful tool for everyone.
|
|
|
|
|
.S.Rod. wrote:
but a stupid moron spent time on this and published a useful tool for everyone.
I didn't liked your attitude!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
|
.S.Rod. wrote:
Yes, but a stupid moron spent time on this and published a useful tool for everyone.
And it works very well. Saved me a couple of headaches in recent weeks when I found that a third party library wouldn't link with VC.NET and I had to go back to using VC6.
Michael
Life’s not a song.
Life isn’t bliss.
Life is just this.
It’s living. -- Buffy the Vampire Slayer: Once more, with feeling
|
|
|
|
|
Hi!
I think there is an project file converter 7.0 --> 6.0 done by S.Rod. here on codeproject.
Haven't tested it though...
Cheers
Martin
"Situation normal - all fu***d up"
Illuminatus!
|
|
|
|
|
|
I've used it and it works very well.
Michael
Life’s not a song.
Life isn’t bliss.
Life is just this.
It’s living. -- Buffy the Vampire Slayer: Once more, with feeling
|
|
|
|
|
i have a control.in the control there is something show.i want save the control's show to BMP file.event when the window be minimized.how can i do that?
|
|
|
|
|
There are heaps of ways to save bmp's, some here on CP, others mentioned in the FAQ. To get the bitmap off the control, you can just use BitBlt, either from the screen DC, or see if it's possible to get a DC from the control ( I think so, but I can't remember ).
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
|
|
|
|
|
you cannot grab the window if it is minimized; the window must be visible and on top of the other.
|
|
|
|
|
hey how do I know which tab is selected? i handle to tab change message but i cant figure out which tab it not active.
thanks in advance
luke.
|
|
|
|