|
Jarrah_12 wrote: But for the CDialog if I create it it appears out side the MDI I want it inside it like MDI child
Then you could use a CMDIChildWnd with a CFormView client.
Or, derive a class from CMDIChildWnd, override OnCreateClient(), and in
the override, create a client window which is a modeless dialog.
The point is, a CMDIChildWnd is the type window you want to use as an MDI
child window.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Well, you could use a CFormView instead of a CDialog inside your MDI project.
Or you can simply usr a SDI project with a CFormView or more simple just use a CDialog as your project type.
Without more details, we cannot help you much; if you want to break the Doc/View architecture, be ready to do a lot of work by yourself.
|
|
|
|
|
Thanks guys , I got your Idea Im ready to do my project wish me good luck.
Best regards,
J. a.
|
|
|
|
|
or you can use a mix of all (as I did)
if you need to mix view types and have more than one view (they have more functionality than dialogs) in your app, take a look into this message[^] and follow the links; i explained how to do it in different places.
Greetings.
--------
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 me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
draw and drop operation in a tree control leads to the crash of the application. Please can anyone help me.
Thanks in Advance
satyanarayana
|
|
|
|
|
(i.e. maximumu help I can afford with the info you gave me)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Where is the crash located?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I think he hit a tree.
|
|
|
|
|
he would have used his helmet or seatbelt atleast.;P
|
|
|
|
|
Can you show code that it makes error?
|
|
|
|
|
Hi guys. I am using the function
void CPortConnectDlg::OnBsend3()
{
_outp(0x378,0x3); //The function to connect to the port
}
When i compile the project, it has no error but, when i try to send the data to the parallel port, it is not working, instead, windows gives me an error i can't really understand. Please can anyone help me.
Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|
|
What Windows version? Maybe this will help....
"Because these functions write directly to an I/O port, they cannot be used in user code in Windows NT,
Windows 2000, Windows XP, and Windows Server 2003. For information about using I/O ports in these
operating systems, search for "Serial Communications in Win32" at MSDN."
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: What Windows version
I am using windows XP and 2000 interchangable
Mark Salsbery wrote: For information about using I/O ports in these
operating systems, search for "Serial Communications in Win32" at MSDN."
Does this mean that i have to send the message using serial port and not Parellel ports? If so, please offer some advice since i really needed to connect to the printer(parallel port).
Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|
|
Wamuti wrote: Does this mean that i have to send the message using serial port and not Parellel ports?
No.
It means a long time ago, direct hardware access was no longer allowed by the operating system.
Maybe check this out: Code Project Parallel Port Articles (C++/MFC)[^]
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks. I am going through it right now.
Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|
|
Wamuti wrote: windows gives me an error i can't really understand.
Well certainly someone here can understand it, especially if you don't post it because it's easier to understand if you can't see it
|
|
|
|
|
:-> Sorry for that,The error is
"The exception Privileged instruction.
(0xc0000096) occured in the application at location 0x1022cc4b"
Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|
|
Wamuti wrote: ...it is not working, instead, windows gives me an error...
That's because Windows' HAL is prohibiting direct access to the port from user-mode code.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
DavidCrow wrote: ...That's because Windows' HAL...
What is windows HAL?
DavidCrow wrote: ...is prohibiting direct access to the port from user-mode code.
What can i do about it. I was reading this code from codeproject http://www.codeproject.com/system/AsefPortAccess.asp[^]
but the source code is also giving me the same error.(Ofcourse i can trouble the author with lots of questions;)) Please help
Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|
|
Wamuti wrote: What is windows HAL?
See here.
Wamuti wrote: What can i do about it.
Change to kernel mode (ring 0) and write a device driver.
Wamuti wrote: I was reading this code from codeproject http://www.codeproject.com/system/AsefPortAccess.asp[^]
but the source code is also giving me the same error.
Are you using the included device driver file?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Some grids should be merged ,which may put picture in.
http://botu.bokee.com/photodata1/2007-11-16/000/201/057/11971045/11971045_h.jpg[^]
I try to use MSFlexgrid ,but it can't put pic in merged grids .
And it is best if it can put multi-line text in one grid .
-- modified at 7:14 Friday 16th November, 2007
===========================
http://begtostudy.blogspot.com/
email:begtostudy@gmail.com
MSN:begtostudy@gmail.com
|
|
|
|
|
Take a look in http://www.codeproject.com/listctrl/[^] you will find some things that can help you, maybe not a complete example, but you can use different parts on each article to get what you want. I recommend you to start with the XListCtrl of Hans Dietrich
Greetings.
--------
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 me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
Thanks a lot .
But ,I didn't see which tool can merge grids ,especially column grids .It's a big problem ,i think .
-- modified at 21:23 Friday 16th November, 2007
===========================
http://begtostudy.blogspot.com/
email:begtostudy@gmail.com
MSN:begtostudy@gmail.com
|
|
|
|
|
Sorry, im not english speaker, can you repeat in other words? I didnt understand what you wanted to say.
Greetings.
--------
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 me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
OK.
In other words ,how can I put multi-line text or a image in one grid which is merged by several grids .
===========================
http://begtostudy.blogspot.com/
email:begtostudy@gmail.com
MSN:begtostudy@gmail.com
|
|
|
|