|
Prem,
Though this solution works the flickering it creates is unbearable.
I really just need for the buttons to show there "new" state.
Thanks.
|
|
|
|
|
You need to reduce the amt of times the button is getting updated.
Look at the code and see if you can reduce the amt of times you are updating
and actually allow updation when you actually changed the color
or length of the drawing.(you save the state and compare or
you will call the update only when the state changes)
|
|
|
|
|
I need some help getting a printout of the class view. I'm trying to work through someone else's code, and would like a hard copy list of classes, member functions, variables, etc.
If I can't do this through VS, is there any easy means of getting the info. It doesn't have to look pretty.
Thanks, Brian Welsch
{insert witty/thought-provoking saying here}
|
|
|
|
|
Hi Brian,
I think instead of printing classes you might find this tool better:
http://sources.redhat.com/sourcenav
And it supports printing 'class view' as well.
Martin
|
|
|
|
|
Hi,
I dont know of any way we can do it thru VS ,
but there is another tool which can basically create
class listings, cross refernces in the form of html
pages(it actually almost equal to Browse Info)
and you can take a print out of the html pages.
Here is the link.
http://www.stack.nl/~dimitri/doxygen/download.html
|
|
|
|
|
Has anyone seen this before!
I have an MFC project which when the release EXE is ran, it's fine. But when its ran through the VC++ IDE generate exceptions.
Cheers
Rich
|
|
|
|
|
are you shure that it's not just that the exceptions are caught by the MFC ??
check your IDE settings for stop always, if you set it to stop if unhandled you might get your 'normal' behaviour back
regards
Rutger
|
|
|
|
|
~~~~~~ Bizzare, As you said it. ~~~~
|
|
|
|
|
Hum , I known , this behaviour, it's a VC6++ bug , the remedy is even more bizarre , it have to do with the registry !!! Unfortunately I don't remember how I solved it .
If you don't have SP5 , try to install it .
Cheers,
Joao Vaz
A person who is nice to you, but rude to the waiter, is not a nice person - Natalie Portman (Padme/Amidala of Star Wars)
|
|
|
|
|
Hi
I'm trying to create a simple program that will format a ftp url..
Example:
ftp://user:pass@11.11.11.11:21/dir
Will be converted to:
IP:11.11.11.11
PORT:21
PATH:/dir
USERNAME:user
PASSWORD:pass
How could I do this? What functions might be usefull ??
Thanks
|
|
|
|
|
Use strtok, or you could just parse it yourself
reading character by character, i think most of us would
prefer pasring ourselves since it is pretty straight forward.
|
|
|
|
|
Take a look at the AfxParseURLEx function in the MFC. If you don't want to use MFC, take a look in the source of this function.
Martin
|
|
|
|
|
FYI,
Even if you don't want to use MFC, the ATL class CUrl (VS .NET Only AFAIK) may come handy
Regards,
R.
|
|
|
|
|
You may also want to take a look at the InternetCrackUrl function.
|
|
|
|
|
Hi,
I want to make use of a class derived form CWinapp in my mfc extension dll.Do i need have some write some message loop,If so where it should be written?
Regards
Neha
|
|
|
|
|
Actually, since you are trying to derive from CWinApp
I dont think you need to provide a message loop unless
you want to do any customization.
Of course the Run will be called only if the CWinApp object
is instantiated.
|
|
|
|
|
I have a MFC dialog-based application.
It fails sometimes between OnOK's end and the end of the global DoModal execution:
// code from App::InitInstance
int nResponse = dlg.DoModal();
// fails before reaching this line
if (nResponse == IDOK)
{
}
else if (nResponse == IDCANCEL)
{
}
The error is about reading from a wrong address in memory.
Do you know how should i debug the application to catch the error point?
rechi
|
|
|
|
|
Put a break point in the dlg's OnOK and step thru it.
Other fast track things are objects declared as a part of the
dialog, when getting destroyed must be doing some assertions.
Check out and let me know how you did.
|
|
|
|
|
OnOK goes well.
Indeed there are objects that cause failure when getting destroyed, but they
are so many that it seems almost impossible to debug. There are some working threads also, communicating with the main dialog.
On debuggin' version, it ends with memory leaks.
I'm looking for a faster method to debug the stuff.
rechi
|
|
|
|
|
Hi,
Can I override COleControl' default interface functions? for example, COleControl::XOleInPlaceActiveObject::ResizeBorder
(LPCRECT, LPOLEINPLACEUIWINDOW, BOOL) does nothing, I want to override it. What should I do?
Thank you very much
|
|
|
|
|
I have to create a dialog box where i need to display textboxes dynamically.
I also have to create a scrollable pane so that i can keep the display area of the textboxes constant.Anybody has an idea as to how this could be done.Need suggestion from your side
|
|
|
|
|
Ok, you want to create controls at runtime?
Sure create them and make sure to use ON_COMMAND_RANGE
and the set of ON_XXXX_RANGE message macros
and specify the max id you will deal with.
In the handler you can retrieve the control id and
perform operations on it.
|
|
|
|
|
is the MSVC++ 6.0 STL implementation threadsafe?
The earth is not dying. It is being killed.
|
|
|
|
|
It is threadsafe insomuch as it does not use thread-local-storage and does not have any thread-affinity.
Howvever, it does not provide synchronization for any of its templates. It is up to the programmer to synchronize access to the classes as needed.
|
|
|
|
|
*yuck* but thank you
The earth is not dying. It is being killed.
|
|
|
|