Hi All,
i belive this is the right forum to post my query.
I was trying to install linux-vmware on windows xp pro. Since the installation didn't complete properly(froze while installing the linux kernel), i deleted all the files relating to linux and clicked 'on new virtual machine' and...
HI! I want to get rid of All Files(*.*)from the type list when i try to open a document in an MFC program.
I had to do the same in the SaveAs which i managed to solve it by calling CFileDialog with the file types in the DOFileSave function.
But there is no DOFileOpen function to open a document...
Thanks for your link. But it didn't work. But i found a code on the net ...to use ActivateFrame() function and it worked like a charm. Not sure why exactly precreate() didn't work.
Thanks anyway.
Hi all,
I think I have a small problem to solve but can't get things done.
I have created multi-document browser style window for my application using the MFC wizard. The thing i forgot to do then is to tick the box which says 'maximise the child window'. Is there any way I can add the code to...
Thanks MarcoMb, the code seems to work well and very simpler than the one i posted. Now my task is to save xml files in text format in the serialise method.
Thanks everyone for you help.
Rach
HI!
I AM working on MFC. I tried creating another ID in the string table with .txt in it(also modifying related places). It works only on 'File open' but not on 'save As'.
I tried to override CDocument::OnFileSave. Added this code with the existing code.
<code>
CString textFilter;
textFilter =...
Thanks for you reply Miros.
Yes, I am trying to add file type in the Save As menu. MSDN documentation says use a semicolon to differentiate each file type. So in the 'String Table' in resources view, i have tried to add *.txt;*.xml but it wouldn't accept. And what i lack is some example to...
Hi All,
I would like to add extensions(more than one) when the user clicks on 'SaveAs' option. At the moment i have only one and i can't find a way to add more. The readme doc says i need to implement in serialize method of doc file. But i have no idea about the code.
Any help?
Thanks
Hi, THanks for you reply.
I tried to use the example from the firstlink you have provided, but i don't seem to understand how i can use it in my query.
This is the example from the msdn site. it first picks up where the orignial.txt file is, then creates a allcaps.txt in the same directory...
I use CFile to create the file and CString to write to the file. If i use CStringA to write to the file, the xml file works fine. I am still trying to learn c++ and xml , so help will be greatly appreciated.
thanks
HI all,
I am trying to create an xml file with wide character string. But the xml file would not open
Error 'invalid character in line 1, 2nd character'.
How do i tell the xml that it needs to accept wide character string?
thanks
HI everyone,
thanks for the reply.
I am not keen on using just _mktemp. All i want to be able to do is create a unique filename(.xml is what i am trying to create) and if the user saves it , i would let the program save it for the user or delete the object.
I tried creating a unique file name...
Can someone help me please?
I have a MFC program , which opens .xml file in IE. When i try to close the IE page, i want to display a message saying would you like to save this file. Can someone tell me if there is already a MFC function available to do that.
Thanks
HI!
I want to create unique file names using _mktemp with extension.
This is a code i picked up from MSDN. But if i add .doc or any other extension in the temp pointer, it throws an error. I tried using another variable and concatenating with the original name,,, no good.
any suggestion? Thanks...
I managed to find out that the code i posted is .net framework which is not what i am using.
Any more help on getting temporary path using just c++?
thanks
HI Thanks for that. Is there any online material available to explain your code? I tried MSDN...no good.
I found this code from codeguru.
<code>
using namespace System::Security;
using namespace System::IO;
...
String tempFolder;
try
{
tempFolder = Path::GetTempPath();
}...
I meant to write 'understand'
And i meant i don't understand the code you posted in reply to my question.
Anyway, the problem i had was solved. So don't worry.
here is my code.... it seemed to work this way. Since i am new to xml, i tend to believe that that's how it has to be done. Sorry i don't under your first reply though.
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="c:/xslfile.xsl"?>
<tape>
- <profile>...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.