|
are you certain ? a document is not contained in a frame, it's a data class.
In the Doc-View Architecture, a view is the representation of the data in the document.
A document can have multiple views attached to it, in as many frame window as you wish.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
did i misundertood this ?
"A frame-based application uses a concept known as the Document/View Architecture.
This allows the frame to serve as a place holder for other parts of an application
(such as the document and the view)."
TOXCCT >>> GEII power [toxcct][VisualCalc]
-- modified at 9:24 Wednesday 26th October, 2005
|
|
|
|
|
you've really misunderstood the "/".
He is like a one-legged man in a bum kicking competition. -Novjot Sidhu
--[v]--
|
|
|
|
|
cant a document have multiple views??, for example, a data that is available in the DOC can be viewed as a chart in one view and in another view the same can be viewed as graph. right??
He is like a one-legged man in a bum kicking competition. -Novjot Sidhu
--[v]--
|
|
|
|
|
yes - A single document can have many views open on it simultaneously. Not all views need to be the same type for any given document. I can have 'spread sheet' document, but a view with a spreadsheet, a view with some charts, and another view with statistics all open on the 'spread sheet' document's data.
|
|
|
|
|
one Doc can have many views
one View can be associated with only one doc
one App can have many docs.
If the app is SDI, can display only one view of one doc at a time
If the app is MDI, can display many views of many docs at a time
|
|
|
|
|
georgemarios wrote: If the app is SDI, can display only one view of one doc at a time
Are you sure about this point ? I think that in a SDI the limitation is that you can have only one document but several views can be used to display the document... Am I wrong ?
|
|
|
|
|
ooops, my mistake
certainly, you can have several views of the same doc in SDI at the same time (using splitters for example)
|
|
|
|
|
Blast! And right after I gave you a 5 for your very short and very precise answer.
SDI: Single view, Single document.
Using splitters does not change that, each split reprsents a seperate view. Which would make it an MDI.
Of course there are ways around that minor detail.
INTP
Every thing is relative...
|
|
|
|
|
thanks for the 5
well, think of a 3d modeler like 3dmax
you have the same doc shown in 4 diferent views (top, left, front and perspective). Its still the same document.
Many views at the same time doesn't make the app MDI, MDI=multi-doc interface....
A splitter can be used in both SDI and MDI. The difference is that in SDI you put it in CMainFrame whereas in MDI you putit in CMDIChildWnd.
Still, I may be wrong. Please, somebody correct me...
|
|
|
|
|
Alright, you are correct!
I was thinking in terms of how MFC uses it (thru the wizards), I sort of spaced on the fact that we still have to add those other views manualy and can show them via splitters (the tricks I mension earlier).
SDI realy means a single document at time, not necessarily a single view.
I was thincking in terms of having mutiple views in multiple windows, which SDI does not support.
Thanks for the readjustment!
INTP
Every thing is relative...
|
|
|
|
|
so what are the other questions??
He is like a one-legged man in a bum kicking competition. -Novjot Sidhu
--[v]--
|
|
|
|
|
Hi to all,
I am having one table having 2 BLOB fields and one varchar2 field in Oracle. i am implementing my code vc++ using ADO to connect to Oracle. i am using Stored procedure to retrieve BLOB data from Oracle.
I am able to store BLOB data with Insert Command. but there is problem while using stored procedure to retrive image data.
This is my code how i am using ADO
paramUserid= pCommand->CreateParameter("p_UserID",adVarChar,adParamInput,50,_bstr_t(userid));
pCommand->Parameters->Append(paramUserid);
paramLICODE= pCommand->CreateParameter("leftcode",adLongVarBinary,adParamOutput,retLsize+5);
pCommand->Parameters->Append(paramLICODE);
paramRICODE= pCommand->CreateParameter("rightcode",adLongVarBinary,adParamOutput,retRsize+5);
pCommand->Parameters->Append(paramRICODE);
pCommand->ActiveConnection=m_pConn;
pCommand->CommandType = adCmdText;
pCommand->CommandText="{ Call getIrisCodes(?,?,?) }";
pCommand->Execute(NULL,NULL,adCmdText);
It is giving error like "Syntax error or Access violation"
I have tried that stored procedure in Oracle. it works fine. because i am able to get the length of the images. but unable to get the image data.
What should i do. Can anybody help me. Its very urgent. My whole project depends on this only.
Thanks in advance.
|
|
|
|
|
sir,
i am using edit control in my program .i want it is work as Time contol so i want to resrict it so it take only integers value and colon( ,how it is possible
|
|
|
|
|
|
if its only for integers, then check the 'Number' property in 'style' tab of the control's properties .
He is like a one-legged man in a bum kicking competition. -Novjot Sidhu
--[v]--
|
|
|
|
|
Then why not use a control that is specifically designed for this?
CDateTimeCtrl
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
|
GetVolumeNameForVolumeMountPoint() is available on Windows 2000. What makes you think otherwise?
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
Hi
I have an application which i run it as a service in win2003 . But I am able to terminate the application from the task manager . Is there anyway by which this can be prevented
Thanks
|
|
|
|
|
Hi,
In my SDI appplication, I have a dialog window which is a child of the view.
The dialog is working perfect, except that the caption is never painted activated. Why this might be so??
"Do first things first, and second things not at all."
— Peter Drucker.
|
|
|
|
|
Very strange! Try recreating the problem, in as few lines of code as possible and then posting it.
INTP
Every thing is relative...
|
|
|
|
|
Hi,
This is what i'm doing, in VS .net 2003:
1. Create an SDI application.
2. Add a dialog to resource named IDD_DIALOG1 and make the Style as Child.
3. Add a Dialog class from that resource, say CDlgTest .
4. Add a member variable, say m_dlgTest to the View class of the application.
5. In the WM_CREATE message handler of the view class, I add the following two lines,
m_dlgTest.Create( IDD_DIALOG1, this );
m_dlgTest.ShowWindow( SW_SHOW );
The dialog window which shows up is never painted as activated. In my application, I'm having several such windows, so there is no way for the user to know which window is he working upon?
Please help.
Thanks in advance.
"Do first things first, and second things not at all."
— Peter Drucker.
|
|
|
|
|
Does anybody know where I can find information on the
IImageDecodeEventSink and the IImageDecodeFilter interfaces that are declared in ocmm.h ?
Best regards
Carsten
|
|
|
|
|
I am developing an application which explicitly loads a .dll (using LoadLibrary) and ideally I would like to access a static class member in the loading .exe from code in the dll.
The static member appears to be there, but is at a different address and is uninitialised.
Directly accessing the static data from within the .dll causes an exception.
It looks like the problem is the address space that the .exe and the .dll occupy - I'm presuming that it's the same if the .dll is implicitly load, but not if explicitly loaded
is there any way of calling from the .dll back into the .exe ?
any help appreciated
|
|
|
|