|
Salad Juris wrote: So you mean there is no way that VC++ 6 can display form or dialog as a child.
What do you mean by "as a child?"
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Thanks David,
The answer I am looking for is not difficult, even novice could answer If a mension it in more clear way.
let me make it easier. I want create MFC mdi appliction. The application hosts 4 child windows (Dialog or form view) each contains texts and buttons.
the four child windows shall be called from a menu in the parent window.
Hope it is more clear
|
|
|
|
|
Salad Juris wrote: The answer I am looking for is not difficult...
So does that imply that you know what the answer is since you claim it is not difficult? Asking the right question goes a long way towards receiving the right answer.
Salad Juris wrote: I want create MFC mdi appliction. The application hosts 4 child windows (Dialog or form view) each contains texts and buttons.
Ok, so what part of this is troubling you? Why do you keep mentioning a "dialog?" What you want is one CMDIFrameWnd window that contains four CMDIChildWnd windows. By default, you get one of each. Knowing how the framework creates the initial one should aid you in creating the other three. You'll need to create three more instances of CMultiDocTemplate and call AddDocTemplate (). See here for more.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Many thanks for your help.
|
|
|
|
|
hy
can someone pls tell me what is the correct kernel path for a root directory like c:\
for a folder inside c:\ I use NtOpenFile with this parameter in the oject atritues structure \\Device\\HardDiskVolume1\\name.exe
but if I want a handle to c:\ and if I use \\Device\\HardDiskVolume1 or \\Device\\HardDiskVolume1\\ does not work.
can some one help me telling what is the correct path ?
gabby
|
|
|
|
|
euacela wrote: ...but if I want a handle to c:\ and if I use \\Device\\HardDiskVolume1 or \\Device\\HardDiskVolume1\\ does not work.
can some one help me telling what is the correct path ?
Is it HardDiskVolume0 instead?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
no that is the pb.
HardDiskVolume1 -> c:\
HardDiskVolume2 -> d:\
etc . . .
I saw somewhere something with _root_ but don t know exactly where and don t know exactly how
gabby
|
|
|
|
|
So what is NtOpenFile() returning?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
returns !ERROR_SUCCESS .
Man I am not working with the ddk.
this is an user mode aplication so I can't get extended help.
gabby
|
|
|
|
|
You can get more information about the error by checking status information returned in IoStatusBlock.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
|
Tow FormView translate, each formView has different splitter,how to do it ? How to hide scrollbars from formView? How to not only resize but also hide/show comboBox control in a formView?
I can finish if I think!
I can do it for my best if I love!
music and football and computer and chinese chess of my all!
|
|
|
|
|
for enable or disable Scrollbar use
EnableScrollBar( SB_BOTH,ESB_DISABLE_BOTH);
and I think for show or hide use
ShowScrollBar(SB_BOTH,FALSE);
and you have splitter or you want to create splitter
-- modified at 11:10 Friday 10th March, 2006
|
|
|
|
|
thank you ,if you have ideas others ,please tell me!
I can finish if I think!
I can do it for my best if I love!
music and football and computer and chinese chess of my all!
|
|
|
|
|
you're welcome BigPig.
But whats the question? Splitter or Scrollbar or resize or comobox?
I dont know!?
|
|
|
|
|
can a FOr loop be incremented twice at a time?
such as for(i=1; i<=100;i+2)..
as i need to have only odd numbers. Is it correct?
|
|
|
|
|
chaitanya22 wrote: such as for(i=1; i<=100;i+2)..
should be :
for(int i=1; i<100; i+=2){}
Regards,
Nish
|
|
|
|
|
chaitanya22 wrote: such as for(i=1; i<=100;i+2)..
Hello chaitanya
for(inintializer;condition;incrementer)
Here in place of incrementer you can put any statement regards of assigment statement.
It is not require that you use only a variable that is use in initializer place. C design a very rich for loop as you never seen before.
Divyang Mithaiwala
System Engineer & Software Developer
|
|
|
|
|
You can even have multiple items in your loop, such as:
for (int i = 2, j = 3; i < 5 && j < 10; i++, j+=3)
da Big_R
|
|
|
|
|
or...
int b=0,c=0,q=60,_=q;for(float i=-20,o,O=0,l=0,j,p;j=O*O,p=l*l,
(!_--|(j+p>4)?fputc(b?q+(_/3):10,(i+=!b,p=j=O=l=0,c++,stdout)),
_=q:l=2*O*l+i/20,O=j-p+o),b=c%q,c<2400;o=-2+b*.05);
Cleek | Image Toolkits | Thumbnail maker
|
|
|
|
|
Chris Losinger wrote: int b=0,c=0,q=60,_=q;for(float i=-20,o,O=0,l=0,j,p;j=O*O,p=l*l,(!_--|(j+p>4)?fputc(b?q+(_/3):10,(i+=!b,p=j=O=l=0,c++,stdout)),_=q:l=2*O*l+i/20,O=j-p+o),b=c%q,c<2400;o=-2+b*.05);
Ohh God! What will Happen to parsers
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
If you do not want to make your for loop look anything other than the ordinary, but still want to skip processing the evens, use the continue keyword...
for( i = 1; i <= 100; i++ )<br />
{<br />
if( i % 2 == 0 ) continue;<br />
}
Koushik Biswas
|
|
|
|
|
While this code works, it might not be as intuitive, and more importantly, efficient as:
for (int i = 0; i < 100; i += 2)<br />
{<br />
}
Might not be important for small loops, but an extra if and % op can add up in big loops.
- delete that;
|
|
|
|
|
Hi chaitanya,
I hope the below link helps u.
http://www.its.strath.ac.uk/courses/c/
Chetan.
Helping others satisfies you...
|
|
|
|
|
Hi!
My app used to work fine on another computer when I was using VS2k3 but since I've been using VS2k5-MFC8 my app just won't start!
I used Dependency Walker to see what was going on and I got this error:
Error: The Side-by-Side configuration information in "c:\myapp.EXE"
I did put all the required files in the folder:
mfc80.dll
mfc80u.dll
mfcm80.dll
mfcm80u.dll
msvcr80.dll
I think this is related to the new manifest file used by Windows to know which dll version your app is using but right now I'm really stuck. I also tried to statically link to MFC with no luck.
Anyone can help me?
Luc
|
|
|
|