|
DavidCrow wrote:
Which member of the FIXED_INFO structure are you referring to?
Sorry I got confused
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
You know what, I found that in the MSDN help, but I have one problem with it.
I need to include the Iphlpapi.h and my code will not link when I do that.
The web site say:Library -> Link to Iphlpapi.lib.
Where do I add this DLL to my code ?
Shay
|
|
|
|
|
Shay Harel wrote:
The web site say:Library -> Link to Iphlpapi.lib.
you Need PSDK for that, search MSDN.microsoft.com for that
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
The only things that comes up is the Windows server 2003 PSDK and I don't know if I should load this one.
Do you have any specific link ?
Thanks again in advance...
|
|
|
|
|
If you are using VC++ v6, you will need to request the Platform SDK on CD. It is no longer available for download.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
Working with a CDHtmlDialog...almost every 3rd or 4th time I display the dialog the dialog just does not display. It's intermittent and when I step through the code I can't catch what is causing it. InitDialog does not get called when it fails.
Similar to this problem I found here.[^].
Any ideas or suggestions?
ed
~"Watch your thoughts; they become your words. Watch your words they become your actions.
Watch your actions; they become your habits. Watch your habits; they become your character.
Watch your character; it becomes your destiny."
-Frank Outlaw.
|
|
|
|
|
Is there a way to incorporate the standard file copy dialog that Windows uses when you copy files (the animated paper flying from left to right, and an estimated time to finish) in my MFC program? I thought I ran across it once while looking for something else, it said all I had to do was instantiate the class, give it a range for the progress bar to slide, then when a unit of work was done, I'd step it and optionally give some text to display, like a filename if I was copying, or something else. I did some searching on a function I remember called StepIt() and that was just for a progress bar, not the dialog. If nothing like that exists, I'll have to make it but I'd like to know if I could tap into the some existing resource to use the standard dialog and animations in Windows. Thanks in advance.
|
|
|
|
|
|
As Chris has suggested, I'd use SHFileOperation() , but if you are feeling adventurous, you could write your own and use the AVI files located in your C:\Program Files\Microsoft Visual Studio\Common\Graphics\Videos folder.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
Thanks Chris and thank you David. I found the documentation for CAnimateCtrl previously which looks like it'd control the animation itself in the dialog and it mentioned those animations. For now I'd like it to get up and running so I'll probably use SHFileOperation() but once the app becomes more stable, I'll look into customization because I'm a big fan of reinventing wheels.
|
|
|
|
|
|
I looked into the suggestion and it looks like that it can only be used when you copy files. I was looking for something that looks like that but gives me more of a staged progress display. It looks like I will have to write my own dialog but I'm still in the process of conceiving of how I'll do it. I already have an array of events that handle all of the synchronization, I just have to figure out how to show the dialog and enabled it to do handle the events and display progress.
|
|
|
|
|
Anybody know of any code (free or payable) that will take a picture which is fine on screen and smooth it so it looks fine when stretched during printing? Normal stretching just makes everything blocky. Microsoft obviously have the code in Office products. Any ideas welcome!
|
|
|
|
|
|
I've converting to a DIB and using StretchDIBits.
|
|
|
|
|
|
make it at a higher resolution.......
|
|
|
|
|
Set the StretchBltMode to be COLORONCOLOR, that's the best possible quality, assuming you're using GDI. GDI+ has similar quality settings.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
This doesn't seem to make any difference when printing - I'm using StretchDIBits - maybe it's not used by that function? It makes a slight difference if I do the stretch on screen, but HALFTONE mode seems better.
|
|
|
|
|
OK - I'm not sure about StretchDIBits.
Does HALFTONE do enough to fix your problem ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I just inherited some code that includes an activex control hosted in an MFC dialog resource. While the activex control remains in the resource, the property browser is always empty for any control when editing the dialog with the form designer. If I remove it, suddenly all the properties show up for the other controls. The activex control is ours as well. Does anyone know what could cause this to happen? I'm at a loss to debug the problem anymore (I debugged the activex control inside Visual Studio and while the paint messages, etc, are being fired, none of the properties are ever queried).
|
|
|
|
|
Friends,
I've installed VS.NET 2005 beta and i developed a simple VC++ console application (ofcourse unmanaged application). When i try to run it in "Debug" mode, a dialog box appears showing message:
This application has failed to start because MFC80UD.DLL was not found. Re-installing the application may fix this problem.
I am not getting this error in release mode.
Can anyone tell me what is the problem ?
|
|
|
|
|
Amjad Shah wrote:
I am not getting this error in release mode.
No, in release mode, your app will use MFC80U.DLL ( the D is at the end of the debug dlls ). You should have this dll, I'd be inclined to reinstall VC and see if it appears. I certainly am using VC2005 without this error.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hello,
I have a MDI Application using CListView. I only want to change the font in this view, but the Base Class Member ::SetFont(...) doesn't work decent. It doesn't make any difference whether the facename of the CFont Object is "Arial", "System"...
Is there a possibility to set the font for the CListView and CListCtrl respectively or a single item, subitem?
Thanks and best regards.
|
|
|
|
|
I don't know why you're set font isn't working - you can certainly change the font for the whole control to whatever you want. Check the font is being created correctly and also that you're not destroying the font handle.
To set the font individually for a subitem, see -
http://www.codeproject.com/listctrl/lvcustomdraw.asp
|
|
|
|