|
Hi Everybody,
Thanks a lot. I have solved the problem with EnumWindows and IsWindowsVisible APIs.
Thank you once again
P.Somasundaram
|
|
|
|
|
Hello everyone,
I have searched web, wikipedia and some books. But can not find a exact definition for what is qualified name and unqualified name. Here is a small part from Bjarne's book, for example.
I think qualified name means names with namespace qualifier in this context? Unqualified name means no namespace qualifier ahead of a name? Correct or not?
--------------------
Not can an unqualified name used in a template ever be bound to a local name. Finally, even if a template is first used within a class, unqualified names used in the template will not be bound to members of that class. Ignoring lcoal names is essential to prevent a lot of nasty macro-like behavior.
section C.18.3.3 Point of Instantiation Binding
--------------------
thanks in advance,
George
|
|
|
|
|
Your post this time is highly related with the name-lookup issue last time. Please read that GCC document again.
Maxwell Chen
|
|
|
|
|
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
|
|
|
|
|
|