|
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++
|
|
|
|
|
Defenestration wrote: 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
For that kind of app, I prefer to use a SDI application where the view is a CFormView. The CFormView has an associated dialog resoruce - lay out your controls on that as you would for a dialog. The rest of the framework handles the menus and toolbars and such for you so you get a nice merging of dialog capabilities and "normal" window-based capabilities.
Judy
|
|
|
|
|
I'm still learning C and C++. I found this magical bit of code that will give the number of elements in an array without knowing it's type. Can anyone explain this in terms mere mortals can understand?
In WinNT.h, around lines 939:
extern "C++"
template <typename t,="" size_t="" n=""><br />
char (*RtlpNumberOf( UNALIGNED T (&)[N] ))[N];<br />
<br />
#define RTL_NUMBER_OF_V2(A) (sizeof(*RtlpNumberOf(A)))</typename>
|
|
|
|
|
It works because it knows the size of T at compile time.
The compiler generates a function at compile time which does:
#define RTL_NUMBER_OF_V1(A) (sizeof(A)/sizeof((A)[0]))
So if you call the RTL_NUMBER_OF() macro on objects of several different types, it generates a seperate function for each type.
Best Wishes,
-David Delaune
|
|
|
|