|
First create a view class by class wizard.
Add a CDocTemplate class member(pointer) to your App class.
lets say m_newView.
Now at InitInstance()
m_newView = new CMultiDocTemplate(
ID,
RUNTIME_CLASS(Document class),
RUNTIME_CLASS(Frame Class),
RUNTIME_CLASS(View class));
AddDocTemplate(m_newView);
for more detail just search in this site you will get lot many examples.
Regards
Anil
|
|
|
|
|
HI!!!
Could anybody tell me the usage XmlCDataSection.
Is this can be used in mfc application, in windows xp environment. Wat for is this used?? How to use it?? or can anybody provide me with an example of it, for reference.
Thanx
"If you change then change for the good."
|
|
|
|
|
This is one exmaple why the CDATA element type is used...
We use CDATA sections in our XML files so our product's scripting language can be embedded within the XML without freaking the XML parsers.
For example, we might have a script line like this:
iTag001 <> 10;
If you don't put that in CDATA and and XML parseer tries to interpret it, you will have trouble.
So, now we have a node like this:
<ONHIDE>
<SCRIPT>
<![CDATA[
IF iTag001 <> 10 THEN
iTag001 = 10;
ENDIF;
]]>
</SCRIPT>
</ONHIDE>
Instead of like this:
<ONHIDE
SCRIPT = '
IF iTag001 <> 10 THEN
iTag001 = 10;
ENDIF;
'>
</ONHIDE>
We use the straight XML COM calls and interface pointers to process the XML, so I can't help you directly with the XmlCDataSection.
People that start writing code immediately are programmers (or hackers), people that ask questions first are Software Engineers - Graham Shanks
|
|
|
|
|
I created a SDI app. project.Now i want to add one more window to display the graph..in my project.
How can i do this???
|
|
|
|
|
Hi..I created a project in SDI..But i have to plot a graph,so i need a new window in my project.
How can i add a new view window to my project?
Can anybody help me???
|
|
|
|
|
|
How do i make use of automation to extract the text of a word document already open by automation?
|
|
|
|
|
I have one more problem actually my class view of project work space is not showing all the classes in my folder. In my project there are around more than 200 classes. In the old directory i where my code is there i can see all the classes but when i move the code to any other directory or rename the original directory i am able to see only one class. Can any one please help me in this regard.
|
|
|
|
|
[Close project(solution)] --> [delete *.ncb file] --> [re-open project].
Maxwell Chen
|
|
|
|
|
Max/Anil,
Gr8 dudes. I deleted the .ncb file and reopened. It's really working. Can you people please send me your personal ids i have a real problem that needs a bit more explanation. Please do me a favou by sending your ids i need your help badly. Again thanks a lot for your valuable suggestions.
|
|
|
|
|
why don't you post your message here only.
That way you will get more response and more explanations.
any way you can mail any member by the mail option below.
Regards
Anil
|
|
|
|
|
Hey Anil,
I have sent a mail to your gmail account. Please have a look when you are free.
|
|
|
|
|
BiswaR wrote: I have sent a mail to your gmail account
please, stop this ASAP. if you come on a forum to ask for help, we assume that it is for sharing (which is the fundamentals of a technical forum). if you don't want this, don't ask your problem there, and find someone in your nears who can help you
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]
|
|
|
|
|
close your workspace.
delete the .clw, .opt, .plg file.
then open the project workspace again.
the other reason that class view getting lost is that .ncb file gets read only attribute. Make sure that this file has read/write attrib.try deleting .ncb file too
Last method is
Make a Copy to another directory, but copy only the source (*.c, *.cpp, *.h, *.dsw, *.dsp and the resource directory)
When you open again the project you will have class info, if dont, then push class wizard button.
Regards
Anil
|
|
|
|
|
As we knew that the Microsoft WinSCard library (came from Visual Studio and from MS Platform SDK) supports the "contact-based" smart card (ISO 7816).
I have the questions below:
1) Does WinSCard library support also the "contactless"-based smart card (ISO 10536, 14443, and(or) 15693)?
2) If (1) is yes, is there any reference guide for implementing contactless smart card applications?
3) If (1) is no, is there any other SDK or library to do that, which is for Visual C++ and targeting WinXP?
Thank you.
Maxwell Chen
|
|
|
|
|
How can I (cleanly) close a modal dialog when I notice something goes wrong in OnInitDialog?
(It's an ATL dialog btw.)
Some of us walk the memory lane, others plummet into a rabbit hole
Tree<t> in C# || Fold With Us! || sighist
|
|
|
|
|
Please try if this method meets your need.
BOOL CMyDlg::OnInitDialog()
{
if(error) {
PostQuitMessage(0);
}
}
Maxwell Chen
|
|
|
|
|
|
toxcct wrote: don't this->EndDialog(nReturn);
Hai.. Tox,
Don't do that, it will result in crash probably, you can try!
"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
|
|
|
|
|
ThatsAlok wrote: Don't do that, it will result in crash probably, you can try!
ok, ity was just a guess, i didn't try (i do not have VC++ at work).
but tell me why it doen't work ?
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]
|
|
|
|
|
toxcct wrote: but tell me why it doen't work ?
I am sorry, it does work:-
here is what MSDN says about EndDialog :-
A dialog box procedure can call EndDialog at any time, even during the processing of the WM_INITDIALOG message. If your application calls the function while WM_INITDIALOG is being processed, the dialog box is destroyed before it is shown and before the input focus is set.
EndDialog does not destroy the dialog box immediately. Instead, it sets a flag and allows the dialog box procedure to return control to the system. The system checks the flag before attempting to retrieve the next message from the application queue. If the flag is set, the system ends the message loop, destroys the dialog box, and uses the value in nResult as the return value from the function that created the dialog box.
"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
|
|
|
|
|
ThatsAlok wrote: A dialog box procedure can call EndDialog at any time, even during the processing of the WM_INITDIALOG message
no problem so...?!
typing mistake ?
yeah i know, i could check msdn...
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]
|
|
|
|
|
toxcct wrote: no problem so...?!
I already apologied to you on my mistake buddy!
"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
|
|
|
|
|
|
toxcct wrote: keep it cool man, week-end's coming soon
Week End is over now
"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
|
|
|
|