|
Thanks Maxwell,
I understand what name-lookup issue is. My question is what is qualified name and unqualified name. And what means qualified name and unqualified name in the context I quoted in the original question.
Actually, I have made some search and study but can not find a definition for them. Any ideas?
BTW: GCC document is fine, is there definition for qualified name and unqualified name?
regards,
George
|
|
|
|
|
Hi Maxwell,
I have just searched for GCC manual for gcc version 4.2.3, no definition for what is qualified name and what is unqualified name.
Any comments?
regards,
George
|
|
|
|
|
George, I saw this time your question falls into the category about template instantiation (as in the quote in the OP).
(I really hate to post URL links at work because my domain server blocks the copy-and-paste function. I have to manually type each alphabets of a URL ... )
Here is the document:
GCC: Name lookup[^].
Do you see the code snippet below in that article?!
int get_i() { return i; }
And I quote the sentence from the article:
" ... the compiler can't really know what i would refer to. If there is no global variable i, ... "
Maxwell Chen
|
|
|
|
|
Hi Maxwell,
I will read the document. And query you any additional issue. Just intereted in your below comments,
Maxwell Chen wrote: because my domain server blocks the copy-and-paste function
how could a server (domain server? DNS?) blocks the IE operation (copy and paste some web pages) on client? curious?
regards,
George
|
|
|
|
|
George_George wrote: how could a server (domain server? DNS?) blocks the IE operation (copy and paste some web pages) on client? curious?
When a Windows workstation gets joined into a domain, the domain policies defined in the domain server override the local policies.
You can view and change the policy settings of your Windows operating system, by:
Win + R to launch the "Run" dialog box,
Input this: gpedit.msc
And you get the Group Policy tool, which manages your local policies.
Many behaviours of IE are configured by the policies. One of the policy relates to allowance or rejection of web pages modifying the clipboard data.
This CP forum post edit control modifies something (for example: < and > ). Therefore it gets blocked.
Maxwell Chen
|
|
|
|
|
Cool, Maxwell!
regards,
George
|
|
|
|
|
Hi Maxwell,
In the GCC manual, it is mentioned the following sample is wrong,
template <typename T> struct Base {
int i;
};
template <typename T> struct Derived : public Base<T> {
int get_i() { return i; }
};
But it can compile without any issues in Visual Studio 2008, without any warnings and even if I select disable language extensions to yes.
Any comments?
regards,
George
|
|
|
|
|
George_George wrote: But it can compile without any issues in Visual Studio 2008, without any warnings and even if I select disable language extensions to yes.
I tried VC++ 2005, and got the same result as you did.
I think we should double-check the ISO doc ...
Maxwell Chen
|
|
|
|
|
Thanks for your virification, Maxwell!
It is interesting question. I will start a new thread.
regards,
George
|
|
|
|
|
What this function cl_login does in MFC?
|
|
|
|
|
Nikesh Jagtap wrote: cl_login
I don't know what version of MFC you have, but there's no "cl_login"
in MFC 9.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
you asked this yesterday[^] already. do you only read the answers ?
and what do you think we are ?
can't you just make a simple google or MSDN Search ?
modified on Friday, March 7, 2008 4:49 AM
|
|
|
|
|
"... is missing debugging information for referencing module; linking object as if no debug info."
Here's what I'm doing:
1) I have a third-party library that I am building as a separate solution. It generates .lib and .pdb files.
2) I have a library that I've written that I use in all my solutions. So, logically, I should be able to take the third-party .lib and .pdb files and add the .lib to my .lib's dependency chain (Properties->Librarian->General->Additional Dependencies) and build and everything should be okay.
But it isn't. For whatever reason, despite specifically generating a unique name for the .pdb file for the third-party .lib, I still get LNK4204 warnings.
Is there a way to get the linker or librarian to include the contents of another .pdb file into another executable/library .pdb file?
|
|
|
|
|
Does the third party lib uses default pdb file name.
|
|
|
|
|
From my original message, "despite specifically generating a unique name for the .pdb file for the third-party .lib, I still get LNK4204 warnings"
If it were that simple I wouldn't be asking.
|
|
|
|
|
Hi,
Can you please let me know how to do the following?
I have a console exe that does something. I call this exe from Dialog based MFC app. I want to add this console exe into MFC resource and then use it in the MFC app. Can this be done? My idea here is to have only one exe instead of two .
Thanks in advance
Vikas
|
|
|
|
|
|
don't reply to some when
1) you didn't read his question
2) you didn't understand his question
3) you don't know the topic
4) you don't know how to solve it
you post is damn useless
|
|
|
|
|
He wants to insert exe in his resource not run an exe file.
|
|
|
|
|
Add it as a custom resource, let's say "BIN" resource. Then use FindResource and LoadResource to access it. I guess you plan to run it, then dump it as a temp file and run it.
I have used similar technique with driver and it works like a charm.
God bless,
Ernest Laurentin
|
|
|
|
|
|
|
It's not supposed to.
If it is showing a hidden window, then it must be true.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I have an app which will have a lot of controls on it, and will probably make it a dialog based app for easy layout of these controls. Are there any limitations/problems of making it dialog-based instead of normal window-based ?
What are the rules on when an app should be dialog-based and when it should be a normal window-based ?
Can a dialog based app have a menu bar and toolbar ?
|
|
|
|
|
Defenestration wrote: What are the rules on when an app should be dialog-based and when it should be a normal window-based ?
I don't know about the rules, but it can be a lot easier to layout many controls
on a dialog resource than it is to create them manually at runtime for a window.
Defenestration wrote: Can a dialog based app have a menu bar and toolbar ?
Yes The menu you can add to the dialog resource.
For toolbars, you can do it manually... for one example, see
DLGCBR32 Sample: Demonstrates Adding a Status Bar and Toolbar to Dialog Boxes[^]
If you use MFC, IMO the easiest method is to use a frame window for the main window and use
a modeless dialog as the client window (or you could even use a CFormView). MFC handles window
decorations like toolbars and status bars and does the layout of the client window - makes it real
easy to code.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|