|
can someone tell me where i can get a good and very simple tutorial to create toolbar for IE using atl/com....i quite surprised coz after googling i didnt get one useful tutorial......i need it so that i can have a skeleton to start making mine.....
Thanks A Ton
Ash_VCPP
|
|
|
|
|
Ash_VCPP wrote: i quite surprised coz after googling i didnt get one useful tutorial..
This is the first link i got after googling IE toolbar tutorial [^]
I hope it helps.
Regards,
Sandip.
|
|
|
|
|
hi sandip,
Thanks for the reply....i already saw that one but its too big to understand actually i am looking to get very basic and simple one just for starting...and further coding i will do according to my requirement.
Thanks A Ton
Ash_VCPP
|
|
|
|
|
Codeproject.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
in the fifth edition of Windows via C/C++(written by Jeffery Richter)
in many places i saw this phrase "commit storage", for example in Chapter 17, section "Memory-Mapped Executables and Dlls", there is this note:
" When a process is loaded, the system examines all the file image's pages. The system commits storage in the paging file immediately for pages that would normally be protected with the copy-on-write attribute. These pages are simply committed; they are not touched in any way. When a page in the file image is accessed, the system loads the appropriate page. If that page is never modified, it can be discarded from memory and reloaded when necessary. If the file's page is modified, however, the system swaps the modified page to one of the previously committed pages in the paging file."
what does he mean by "commit storage"? What if a page is committed? What does the system do to commit a page? what does this sentence mean "If the file's page is modified, however, the system swaps the modified page to one of the previously committed pages in the paging file."
Can somebody help me?
Thanks!
Jack
|
|
|
|
|
Committed means the memory that is ready for use. It's at the disposal.
JackPuppy wrote: When a page in the file image is accessed, the system loads the appropriate page. If that page is never modified, it can be discarded from memory and reloaded when necessary.
You should know about Paging to understand these terminologies. That's Bascically about maintaining virtual memory. To trick your process to believe it's got 2GB of address at it's disposal. You might have heard every process in windows is allocated a virtual memory of 2GB for userspace. But they are "virtual". Even you have just 512 KB of virtual memory, your process can use upto 2GB - because of memory gets mapped to virtual memory. Here the chunks of memory are termed as "pages". In the quoted text, what it means is that, until a specific page from your application is not required, it's not loaded into memory. And the pages that the OS predicts to be required would be kept in the page file (VM). If the application searches for a page that is not found the the physical memory(RAM), it searches the page files table & loads the required page. And if the phyiscal memory is full, it does a swapping based on some page replacement algorithms. Ok enough of the story, Search for "Paging" &"virtual memory". May be you can add "win32" if are specific about the OS implementation. byebye.
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
Wow, thanks, a great answer.
After my searching and reading, it should be pointed out that if the application searches for a page that is not found in the RAM, sometimes it will search for exe/dll file somewhere in disk other than page file,for example when the exe/dll file mapped into process address without relocation-that means it doesn't need page files to store relacated pages.
Thanks for your kind!
|
|
|
|
|
I'm handling ::OnSize() of my CView and I want my CListCtrl resize accordingly .
void CMyView::OnSize(UINT nType, int cx, int cy)
{
RECT rc;
POINT p;
p.x = cx;
p.y = cy;
GetClientRect(&rc);
m_cMyList.SetWindowPos(NULL,0,0,rc.right,rc.bottom,1);
}
As you see I tried out damn things [Of course the wrong way!]. Nothing works. Any help?
|
|
|
|
|
Check SetWindowPos[^] documentation.
grassrootkit wrote: m_cMyList.SetWindowPos(NULL,0,0,rc.right,rc.bottom,1);
Here instead of NULL you should specify &CWnd::wndTop because it seems that it is the only control on your dialog.
Also last parameter instead of 1 pass SWP_SHOWWINDOW i am not sure 1 is defined for which constant.
grassrootkit wrote: GetClientRect(&rc);
You do not need this instead you can use cx,cy parameters. I think you doing this because first time when you get the WM_SIZE notification these values are zero. You can simply put a check for that instead of that call.
Also when you resizing the window in OnSize always verify the m_cMylist has valid handle and it is visible. This should be done because WM_SIZE notification is sent multiple times when the main window is being created.
I hope it helps.
Regards,
Sandip.
|
|
|
|
|
SandipG wrote: SWP_SHOWWINDOW
Does the matter. I put 1 just to quickly test the functionality. What a crap. This wasted almost half an hour. Thanks for pointing it out.
|
|
|
|
|
Actually he may specify NULL as the first parameter and use the SWP_NOZORDER flag to indicate he doesn't wish to change the Z-order of the window...
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
Yes.. i forgot about the SWP_NOZORDER
Regards,
Sandip.
|
|
|
|
|
Being forgetful is a common...erm...what's it called...umm...sympthom by programmers, because...umm...erm...what were we talking about again?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
Hello
Actually I want to have a class which supports Fonts along with colors.
For which I have a class Font derived from CFont and a member variable of type COLORREF
class Font1 :public CFont
{
public:
Font1(const Font1& F) ;
Font1(CString FontName = TIMESNEWROMAN,
int FontSize = 15,
bool Bold = false,
bool Italic = false,
bool Underline = false,
COLORREF tFontColor = RGB(0,0,255));
COLORREF FontColor;
bool operator =(const Font1& v) ;
void Heading();
virtual ~Font1();
};
I am not able to write the copy constructor for the class and cannot initialize COLORREF variable
Any ideas how should I go about writing.
Thanks
Prithaa
|
|
|
|
|
I fI were you, I wouldn't inherit from CFont but create my own class which contains a CFont and a COLORREF object. You should also remember the font settings along with the font (face name, font size, italic, ...)
As far as I remember, you won't be able to copy CFont objects because the assignement operator is not public (this was made on purpose to avoid copying CFont objects). So what you could do is only copy the font information and create your CFont object based on those informations.
|
|
|
|
|
|
Hi,
i have an Exe in the server how can i invoke exe which is in server from client....
I guess cinternetsession will do im not sure if possible please let me know....
|
|
|
|
|
Do you want to download a file from HttpServer ??
if yes then CInternetSession,CHttpConnection and CHttpFile will help u to download a file.
|
|
|
|
|
If possible can u please post one sample.....
|
|
|
|
|
Give me ur email id. I will send sample code to u.
|
|
|
|
|
Hi swapnil below is my id please the sample code to that id...
purnapradeep.n.ext@siemens.com
purna2pradeep@gmail.com
purna2_pradeep@yahoo.com
if possible Please send to all the above mail id"s or to the first two id"s....
|
|
|
|
|
If you are just wanting to download the file, use URLDownloadToFile() .
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi All!!!
i'm working on MFC. using Visual studio 80 version.
On a Dialog window i've made it a colored or Bitmap or Image. And Kept Radio Button and Check Box so We need to change the color of the Check Box and Radio Button according to Dialog Displayed.
I've tried with OnCtlColor Event. but it is working for static control but remaining it's not working.
So plz do the needful.
Thanking You
tgm.arjun
|
|
|
|
|
Radio buttons and check boxes are different styles of the button control.
Read the documentation for the WM_CTLCOLORBTN message.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Hi I've impleted OnCtlColor Event. The Back Ground Color and text of the radio button and check box are cheanged in VS 6.0 veersion. But it is not working in VS8.0.
Mallikarjun.TG
|
|
|
|