Depends on what you mean by "loading". The OS loader is going to load a DLL so fast you don't need to show progress. Now if you initialization stuff in the DLL (like running database queries) that you want to show progress for you have to supply an interface for obtaining that progress information.
There is no magical way to show progress because, progress of "what". You have to account for the knowledge of the "what". That is your job as a programmer. It is sometimes referred to as "the domain". Check it out[^]
well my problem is
When i download a file (with a CFTPclient) i cant open it and the same moment.
I dont know how to create and use a thread (for the moment).
so i have to split the read /write in 2 functions and put the CFTPclient commands to download / upload in a OnTimer
Use one of the GraphicsPath::AddLine() overrides to add the points, do not call GraphicsPath::CloseFigure() as that will cause a line to drawn from the last point to the first point. Call Graphics::DrawPath() to draw the lines.
If you don't want to derive your own class and override functions, you can edit the string table in the resource editor. Locate the resource that is associated with your CDocTemplate (like IDR_MAINFRAME).
The string will look something like:
Test Application\n\nMFCTest\n\n\nMFCTest.Document\nMFCTest Document
Change it to:
Test Application\n\nMFCTest\nPliki bmp *.bmp)\n.bmp\nMFCTest.Document\nMFCTest Document<br />
If you need to do anything more complicated, like multiple extensions per doc template, check out this article:
The socket connects but never receives any data. The call to Receive seems to block the thread. I know the server program I am using is working because I can transfer data to other clients without a problem.
I have my own list derived from CListCtrl, i implement DrawItem myself. the list has a style LVS_EX_CHECKBOXES. so in the DrawItem i see if the item is checked i draw a check box in checked style and if it is not checked i draw a check box unchecked.
the list also has a style : single selection, show always, and full row selection.
problem is what i start the application and i try to check the first item. it checks it ok.
then i want to uncheck but nothing happens. in the draw item i still see the status of checked.
also in the OnItemChanging implementation, i see the newstate still checked....the only way to unchecked the item is to try and check an other item...then it uncheck the first item and checked the selected new item. i am not familiar with this behavior, i know that when u check an item, it stays checked until you uncheck it, and not when u check an other item. also if you check an other item , the first item you've checked should stay checked.
can any1 help?
thanks in advanced
Interface basics click here :
Do you know how can I use Windows Media Player ActiveX control under VC++ 2005???
With VC++ 6 it is very simple...
but with VC++ 2005 mfc assignes differrent class to the control and there is no documentation for it.
I have a dialog based application. I want to save the last configuration of the that application. For example if I have a # of selected countries field set to 7 in last configuration, then next time if I open it, it should be saved.