|
Is possible to rebuild IntelliSense ASC stores found in <msvs-root>\Common\MSDev98\Bin (Win32.ncb, Mfcatl.ncb and Crt.ncb) ? Simply deleting them only disables code editor's IntelliSense features
I'd needed to recreate them because they contains in some instances improper data, f.E. incorrect number of function parameters, wrong return type etc. - it could be very confusing.
Does anybody know how to solve this problem or knows something about internal format of .ncb files ? I know there is a good replacement called Visual Assist from WholeTomato software but it isn't free
Thx
Cernd
|
|
|
|
|
In my SDI MFC app there's a CMainFrame, and I don't want it to be resizable. How I can do that? Thanks for the help
|
|
|
|
|
Remove the WS_THICKFRAME style
Nish
|
|
|
|
|
Where can I find it??? in the CREATESTRUCT cs??? In the MSDN there isn't any help for the CREATESTRUCT
|
|
|
|
|
Hi,
I need to know that whether its possible to have server based on WinSock and Client based on CAsyncSocket?
I tried so but did not succeed.. Before i put my full efforts i need to nkow if it is possible or not..
If there is something special work needed to be done to make it work, then do specify it..
Thanking u in advance
RawCoder
|
|
|
|
|
|
If you have a network (LAN), go to your network connections in Control Panel and right click on the Local Area Connection (or whatever you have there). You can make it "Enable" or "Disable" (connect or disconnect). Now my question is how to do this programmatically in Windows 2000? I was looking in MSDN and didn't find nothing.... Change user info, get domains.... all what you want but not something like Connect or Login.
IF someone knows the answer, please tell me
Thanx
Philip Patrick
|
|
|
|
|
- Can you help?
- Regards,
Maer
|
|
|
|
|
if you are asking about #ifndef then the main difference is the #if form permits complex expressions such as :
#if( !define(THIS) && !define(THAT) && !(THE_OTHER_THING) )
I don't believe that #ifndef supports this type of expression. It may but I have never seen any.
|
|
|
|
|
- Thanks pal!
- I think the statement "#if( !define(THIS) && !define(THAT) && !(THE_OTHER_THING) )" should be
#if( !define(THIS) && !define(THAT) && !define(THE_OTHER_THING) )
- Am I right?
- Regards,
BigMouth
|
|
|
|
|
Yep, I missed that last define.
I was just testing you.
Actually, they should all say defined but your compiler would tell you that soon enough.
Good Luck.
|
|
|
|
|
- Thanks pal!
- I think you are smart and warm-hearted.
- Regards,
BigMouth
|
|
|
|
|
- Can you help?
- Regards,
Maer
|
|
|
|
|
_DEBUG is the standard definition that VC++ uses when performing a debug build. I don't know about DEBUG. I couldn't find it in the docs.
|
|
|
|
|
|
- Can you help?
- Regards,
Maer
|
|
|
|
|
It is used to prevent a header file from being included more than one time.
|
|
|
|
|
|
- I still have a question. I think we can use the statement "#if !defined ... #define" to do the same task. I think the use of "#pragma once" is a redundance. Am I right? (For example, in MainFrm.h of a MDI app)
- Can you help?
- Regards,
BigMouth
|
|
|
|
|
In most cases that I have seen it used it is redundant.
There are two ways to go about the issue of multiple include prevention. You can benignly allow it and protect against it in the header (like the AppWiz does) or you can require the includers to insure that they haven't seen it yet which is what I usually do.
I use this kind of thing :
#ifndef _THISHEADER_H
#define _THISHEADER_H
#else
#error repeated include of this file
#endif
Then in the source files I do this :
#ifndef _THISHEADER_H
#include "ThisHeader.h"
#endif
This insures that the header is included once and only once.
FWIW, I learned this from checking out the SDK headers. I added the error check so that I would find the cases where I missed the ifndefs.
|
|
|
|
|
- Thanks pal!
- I still have a question. I think the statement "#error repeated include of this file" should be #error _THISHEADER_H has already defined". I think in the header file we can only see whether the variable "_THISHEADER_H" has been defined. We can not see whether the header file has been include twice. Am I right?
- Can you help me out?
- Regards,
BigMouth
|
|
|
|
|
The reason I did it that way is that when the error message is displayed it tells you the line number and file name where it occurred.
Of course, you can make the error message say whatever you like.
|
|
|
|
|
- Thanks pal!
- I stll have a question. What means "allow it and protect against it in the header (like the AppWiz does)" in your reply? Can you give me an example?
- Regards,
BigMouth
|
|
|
|
|
What the AppWiz does is make headers like this :
#ifndef AFX_THISHEADER_H_a_whole_bunch_of_random_numbers_here
#define AFX_THISHEADER_H_a_whole_bunch_of_random_numbers_here
// contents of header go here
#endif // AFX_THISHEADER_H_a_whole_bunch_of_random_numbers_here
This style will let you repeatedly include the file because it is protected but it will not warn you about it. I like to know about and prevent against repeated inclusion.
As I said previously, this is mostly a personal preference but M$ does it also in several of the windoze headers and, in my opinion, they should because they have lots of 100K+ headers.
Many people take a bit more relaxed approach than me (including M$) and only do the #ifndef thing inside other headers when they are being nested (includes inside headers.) That's fine but I am just a bit more obssessive about it.
|
|
|
|
|
I have an intersting problem to solve that has been causing much caffeine intake over the past few hours...
Say I have a CWnd derivied class, which we'll call CBaseWnd. Now, CBaseWnd can have multiple children, which in turn can have multiple children, though only one of the first level children can be visible at a time, with any number of second...third... level children optionaly visible as you work down all branches of the family tree.
CBaseWnd has an attribute and appropriate accessor that stores whether or not the base window (itself) or any of the child windows has the focus.
Now to my question: How can I determine from within CBaseWnd if it or any of it's children, grandchildren, great grandchildren, etc, currently has the focus? I've tried all the [to me] obvious approaches, but they all cause problems when the focus is given to one of the windows in the tree from one outside it (e.g. the desktop). Why is beyond me.
There must be a way to walk through a window's children and then repeat the process for each child, etc, surely?
Any help would be greatly appreciated as I have now run out of coffee and will have to start taking coke intravenously...
P.S. Sorry about the title, but I am more used to posting the the lounge!
________________
David Wulff
http://www.davidwulff.co.uk
"I loathe people who keep dogs. They are cowards who haven't got the guts to bite people themselves" - August Strindberg
|
|
|
|