|
I have tried this but this warning is not displayed
I am using Sun Studio 9 C++ compiler 5.6
Please tell me any workaround for this
Regards... Ankur
|
|
|
|
|
AnkurGupta_1981 wrote: I am using Sun Studio 9 C++ compiler 5.6
pffffff, poor boy... did you only know you where on a Visual C++ forum ?
good luck !!!
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
What is the relationship between Doc and View
1)One to Many
2)One to One
3)Many to Many
4)Many to One
Choose the Correct One ? ( This is TCS Interview Question)
Praveen .C
|
|
|
|
|
a document and a view are the same. a Frame can contain several Docs/Views...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
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.
|
|
|
|