|
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.
|
|
|
|
|
hey i firgured it out, now i feel dumb for asking so don't worry,
Luke
|
|
|
|
|
hey is there a way to make the apps built in vc.net use the last version of MFC not 7.0 or which ever it is that comes with vc.net?
thanks, bye
luke.
|
|
|
|
|
No.
Why would you want to do this? If you don't want to distribute the MFC7 dll's then you can always link MFC as a static lib.
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,
currently I work with a CSocket derived class to poll UDP servers and receive some packets from them. But there's one function CSocket does not seem to provide: A timeout for the receive function. I want my program to wait no longer than 1 second for the server packet receival. Is there a way to accomplish this?
thanks in advance
modified 12-Sep-18 21:01pm.
|
|
|
|
|
You might want to try using CAsyncSocket instead. From the MSDN, it appears to give you more control over blocking.
Another option would be to have a 'watchdog' thread. Each time the receive thread tries to read a packet, it should reset the watchdog timer. The watchdog thread waits for the watchdog timer to expire. If the timer ever expires, the watchdog thread handles the timeout condition, perhaps by terminating the receive thread, closing the socket (which will return an error to the receive thread), or whatever action is appropriate to your application.
Software Zen: delete this;
|
|
|
|