|
Hi Nibu,
Thanks for your response. I would just like to instantiate on this info that you have provided. Could you please tell me whether my understanding is correct? Sorry to keep bugging you.
Let us assume that there is only one line in stdafx.h and that is #include stdio.h . Now, stdio.h contains a function fopen . Taking fopen just for example. Now, is it true that the pch will contain object code for fopen? If yes, then what will stdafx.obj contain? Will it just be the object version of the line
FILE* fopen(const char* filename, const char* mode) ?
|
|
|
|
|
I think that stdio.obj will contain the object code for fopen function and your stdafx.obj will contain only a reference to that function, if any. Good coding and good luck!
|
|
|
|
|
The PCH file contains a tokenized representation of the contents of all headers that were processed. This means all prototypes, definitions, declarations, enumerations, and macros. There is no object code in it. You can thing of it as the results of what is typically the first two passes of a compiler - the preprocessor and tokenizer.
|
|
|
|
|
Hi Rick,
Thanks a lot. Looks like this is what I was looking out for.
Thanks once again.
|
|
|
|
|
What is the difference between the two below
if( NULL != lpDispatch )
and
if( lpDispatch != NULL )
where LPDISPATCH lpDispatch ;
Thanks..
---
With best regards,
A Manchester United Fan
The Genius of a true fool is that he can mess up a foolproof plan!
|
|
|
|
|
Save My Soul - (SMS) wrote: What is the difference between the two below
if( NULL != lpDispatch )
and
if( lpDispatch != NULL )
where LPDISPATCH lpDispatch ;
Thanks..
To avoid making the following mistake...
if(lpDispath = NULL)
;
But if we use
if(NULL = lpDispath)
;
This is one of a kind of silly but serious bugs. It becomes difficult to trace them. So programmers play safe with this kind of coding. Helps but not always.
Nibu thomas
Software Developer
|
|
|
|
|
No difference in turms of result they both produce. In both cases NULL and IpDispatch are being compared with each other.
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
It's handy to use NULL first sometimes. If you have a fairly long if statement, maybe you are checking the return value of a dialog, sometimes the line will scroll of your page. If you had the NULL at the end, it would be out of view, whereas having it first it is in view.
It simply makes scrolling through your code a little easier.
|
|
|
|
|
I have a (hopefully) simple problem. I want to create a custom control in C++, with or without MFC, that i can compile into a dll and use that control elsewhere eg other MFC apps and a .NET app. Whats the easiest way to do this?
|
|
|
|
|
MrNed wrote: Whats the easiest way to do this?
By Creating an MFC Extension Dll.
Nibu thomas
Software Developer
|
|
|
|
|
But that project creates a CWinApp class. How do I say create a CButton derived class and use that as the custom control elsewhere?
|
|
|
|
|
Is there any way to get the list of favourites items we added to MSDN library installed in System?
(Like storing the book mark in IE?).
This will be useful when we format/reinstall OS
|
|
|
|
|
Well, I saw that the list of favourites from MSDN and the one from IE are the same. Do you have separate lists? Thanks in advance for your answer.
|
|
|
|
|
what i was asked abt to store MSDN( installed on PC) favaourite
IE uses different list!!!
|
|
|
|
|
Hi All,
Can anyone tell me how to set group box text at runtime?
Thanks and Regards,
Anil
|
|
|
|
|
Using SetWindowText(...) .
Nibu thomas
Software Developer
|
|
|
|
|
how can i prevent increasing the system volume above 25%?
JAYARAJ
|
|
|
|
|
Hi
I have used shchangenotifyregister to monitor file system changes. In case of Win2003, I am getting two notifications for each event. Does anyone know the reason why redundant notifications are obtained. Is there any way by which only one notification can be obtained. Thanks in advance
|
|
|
|
|
Hi.
I have a few files (NASM assembly code) that are part of a MSVC project. I have custom build commands that compile the files and that works fine. But I would like to only build these files if a certain preprocessor definition exists. (I already only use the NASM code if "USE_NASM" is defined, so I would only like to build the files in that case.)
Is this possible? Does anyone know how it can be done? Or will I have to create a new project configuration that does not include the custom build commands for those files?
(I'm using MSVC6.)
Thanks in advance.
CambridgeGuy
|
|
|
|
|
how to delete the trayicon started by another app.
I only have the Trayicon App's HWND, and i do not know its uid and callback function ect...
can anyone help me for deleting the trayicon by using my own App.? i appreciate for
if it is deleted, how to restore the trayicon just being deleted
I know the MSN plug-in can hide the trayicon and the windows of the MSN.
It really convenience that officer can use this to hide the MSN when the manager coming when they're using MSN to contact with friends.(because the manager thought MSN was a waste of working time)
I thought [ShellRegisterCallbacks] could do this.
Using this callback function can forward the [Shell_NotifyIcon] function to a custom shell.
But this way can only work when the MSN runs after the app, I don't know how to do this when the MSN has already run.
hi
|
|
|
|
|
Read This[^] article
You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.
|
|
|
|
|
Has anyone ever delved into this?
I have found plenty code on the net but none actually removes the space where the start button was, ie: resize the task buttons area to take up this space. (StartKiller does it properly, somehow)
Thousands of code snippets out there which are all basically
FindWindow "Shell_traynotifY"
findwindowEx "Button"
ShowWindow SW_HIDE
This clearly doesn't work!
If anyone knows anything PLEASE help me out here, im going grey
All your source are belong to us!
|
|
|
|
|
AndrewVos wrote: Thousands of code snippets out there which are all basically
FindWindow "Shell_traynotifY"
findwindowEx "Button"
ShowWindow SW_HIDE
This clearly doesn't work!
If anyone knows anything PLEASE help me out here, im going grey
After you hide the button why don't you try moving other windows to the left.
Nibu thomas
Software Developer
|
|
|
|
|
|