|
No it doesn't that was the problem. Thanks Dave
|
|
|
|
|
if use GetOpenFileName() dialog , you can delete ,rename file or folder via right key menu, how can avoid it? i use C&API, or are there any component to use,like vb's ocx, a dialog have a directory tree box and a file list box ,but how can i invoke ocx?
Help!!!!
urgent!!!!!!!!!!!!!!!
|
|
|
|
|
zhongwenjia wrote: if use GetOpenFileName() dialog , you can delete ,rename file or folder via right key menu, how can avoid it? i use C&API
See the docs for the OPENFILENAME structure Flags member: "If you want the old-style user
interface, omit the OFN_EXPLORER flag and provide a replacement old-style template or hook
procedure. If you want the old style but do not need a custom template or hook procedure, simply
provide a hook procedure that always returns FALSE."
The GetOpenFileName()[^] docs explain how to add the hookproc.
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
See here.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hey DavidCrow - is your link broken or is it just me?
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Mark Salsbery wrote: is your link broken or is it just me?
It's just you me!
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
WIN 32 application crashes while calling a MFC DLL export function, which creates a dialog box using CDialogBox::Create().
What will be the reason?
One more doubt..How can I add MFC support to a WIN 32 Aplication?
Thankx In Advance...
|
|
|
|
|
If the MFC dialog is created on the main application thread then the main application thread needs
to be an MFC UI thread. That means your application needs to be an MFC app.
I think the easiest way to convert a Win32 app to MFC would be to create a new MFC project with
the app wizard. MFC provides the WinMain() function so...
From the Win32 code, take application-wide initialization code and put it in the new app class'
InitInstance() override. Cleanup code goes to an ExitInstance() override.
The Win32 app's main window message handling can be moved to MFC window message-map style
handlers. MFC provides the message loop.
Hope that helps get you started.
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
what is the difference between const and volatile ?
and which can be the cases we use them?
Thank you
KIRAN PINJARLA
|
|
|
|
|
|
|
In brief:
const is a contract between the developer and the compiler: the developer promises not to modify the const -declared identifier and if he/she violates that contract the compiler generates an error.
volatile is used as an instruction to the compiler that the volatile -declared identifier may be modified in the background. The compiler must not optimize and cache it in a register; its memory location has to be read each time the value is requested.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Hi,
const is to say the programm that the value in this variable should not change or be modified. One easy example to use it is when you use a function e.g. SearchObject (const CString szName, const int nID)
here I'm telling that these szName and nID may not being changed inside the run of the function.
About volatile... I can't tell you more than the MSDN help says, I have never used it.
volatile Member data is loaded from memory each time it is accessed; disables certain optimizations.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
|
|
|
|
|
Help !!!!!!!!!!!!!!
1. I use C&WinAPI
2. to show a dialog to select file, but you cannot manipulate it
my imagine :
1. use openfile dialog and hide the right key menu
2. i know a dialog in VB, right of the dialog is a editbox show directory list, when you select any folder in that, the left side show a file list of that folder, but it is ocx, how can i invoke it?
so, how can i do for each way. and are there any other simplest way ?
|
|
|
|
|
Are you inquiring about GetOpenFileName() ?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
if use GetOpenFileName() , you can rename or delete files ,it have no security,i want to avoid it, i just let you select file and cannot do anything other.
Help me!!!!!!!!!!!
|
|
|
|
|
See here (figure 16) and here.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I want to put toolbar on top(upper side) of the desktop.
I don't want to put it over the desktop background or over the icons.
Is there a way to change size of Desktop ?
Is Desktop regular window ?
Thank you
-- modified at 10:25 Friday 11th May, 2007
|
|
|
|
|
This article - while old - is still the reference work for desktop toolbars. Windows automatically shifts the icons out of the way for such toobars, but since the desktop background covers the entire desktop, it is not possible not to cover it (at least partially).
|
|
|
|
|
How to calculate the size of a function?
Software Developer
Sanjay Khapre
|
|
|
|
|
|
lol
Cheers,
Russell
|
|
|
|
|
At run time it is difficult to do, unless you have access to the .obj file. If you do, you can parse the file (see Microsoft Portable Executable and Common Object File Format Specification) and look for the size record for the function you are interested in.
To experiment with this, take a .obj file that contains a single function, and run this from the command line:
dumpdin /all myobj.obj > foo.txt The file foo.txt will contain a complete dump of the file, and you should see a record that looks like
0F2 00000000 SECT27 notype () External | ?GetFontProperties@@YAHPBDPAU_tagFONT_PROPERTIES@@@Z (int __cdecl GetFontProperties(char const *,struct _tagFONT_PROPERTIES *))
tag index 00000106 size 00000C7D lines 0000856D next function 00000111 In this example, I used the XFont.obj from my XFont article. You can see that the size of GetFontProperties() is given as hex 00000C7D.
Note that these sizes are not exact - if you read the PE Format spec, you will find more info.
Just out of curiosity, why do you want to do this?
|
|
|
|
|
hello, I have my code written in visual c++ 2005 and I want to save my results in xml how can I do this?...can you give me a clue? ...please..thanks
lavi
|
|
|
|
|
There are several articles here on CP on how to do this. I have used this one myself.
|
|
|
|