Hello! Thanx for replying. But, i dun wanna this type of controls. I want a control like XMLEdit view. It should be more or less like the document area of xml Editor. Thanx "If you change then change for the good."
swaapu
Posts
-
Third Party Controls -
Third Party ControlsHello! Could anybody, plz tell me the list of third party controls available, which can be used in an MFC Application. Is there any third party control like XmlEditView? Thanx a lot "If you change then change for the good."
-
Tech InterviewsHello! could anybody tell me some gud sites which have questions on different subjects for preparing for an online Assesment Test/Interviews Thanx "If you change then change for the good."
-
XmlCDataSectionHI!!! 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."
-
XML ParsingHi!! Can anybody tell me . what is IXMLDOMDocument or IXMLDOMDocumentPtr?? And how is it related with xml pARSING. i want to convert my old ini files into xml files by using XML Parsing functions in an MFC SDI application. I had done the conversion by using old C Functions, but how to do it using MFC functions. Thanx "If you change then change for the good."
-
Showing file in edit controlHi!! I have an mfc sdi application. I have a dialog in which , i had put a text box. I want to open some file(text file), entered by user( in another EDIT CONTROL). I want that the Edit Control(for displaying file) to remain invisible, until the user clicks on SHOW FILE BUTTON. Which function should, I use for opening it?? How to do this at button_click?? "If you change then change for the good."
-
MacrosHi! Could anybody suggest me some good books, or free tutorials about MACROS IN vc++. tHANX "If you change then change for the good."
-
setting dialog size at run timeHello!! I want to display text file. Thanx a lot "If you change then change for the good."
-
setting dialog size at run timeHi!! I m working on an mfc sdi application. I hav a dialog in which , i have "SHOW FILE" button. On it`s click event, i want to show the file on the same dialog. But, before clicking the "SHOW FILE" button, i want a small dialog only. Now, I hav two problems: 1. In which control, should I display(show) the file to the user? 2. How to set the dialog size at run time? Thanx a lot "If you change then change for the good."
-
PIDL of a selected fileHi!! Go through Q167834. U will definitely get some hint from there. "If you change then change for the good."
-
Working with INI Related functionsHi!!!!!!!!!!!! Yes, it`s working. Thanx a lot for ur kind support. "If you change then change for the good."
-
FindNextFile( ) not working in 2nd iterationHello! Ur question is not very clear. "If you change then change for the good."
-
PIDL of a selected fileYes, u can get the full path of the file by using this function. to display the full path: SHGetPathFromIDList This function converts an item identifier list to a file system path. WINSHELLAPI BOOL WINAPI SHGetPathFromIDList( LPCITEMIDLIST pidl, LPSTR pszPath ); Parameters pidl [in] Pointer to an item identifier list that specifies a file or directory location relative to the root of the namespace (the desktop). pszPath [out] Pointer to a buffer to receive the file system path. This buffer must be at least MAX_PATH characters in size. Return Values TRUE indicates success. FALSE indicates failure. Remarks If the location specified by the pidl parameter is not part of the file system, this function will fail. "If you change then change for the good."
-
Adding dialog to sdiHello!! I am doing MFC programming after a very long time. I had forgot all the basic concepts. I am working on an mfc sdi application. Could anybody tell me how to add a dialog to it. I want the dialog to be displayd when i click on a specific menu item. Thanx "If you change then change for the good."
-
Working with INI Related functionsHi!! For INI file: [SECTION1] KEY1=500 KEY2=VALUE [SECTION2] KEY3=500 KEY4=100 [SECTION3] KEY5=xyz The corresponding XML file would be: 500 VALUE 500 100 xyz "If you change then change for the good."
-
Working with INI Related functionsHi!! The above code is also not working. Wat to do now? Thanx "If you change then change for the good."
-
Working with INI Related functionsHello Anil!! I m providing u here with a sample ini file and its converted form in XML. For Ini File: [SECTION1] KEY1=500 KEY2=VALUE [SECTION2] KEY3=500 KEY4=100 [SECTION3] KEY5=XYZ This is the XML format: 500 VALUE 500 100 xyz Thanx a lot for ur so kind support.Bye "If you change then change for the good."
-
Working with INI Related functionsHI!! Could u plz tell me how to modify the program , to print all the section names. Thanx "If you change then change for the good."
-
Working with INI Related functionsHello Anil! But, I need more help. Could u Plz tell me how should i write in the file, if with fprintf, it is not possible. I am new to VC++. Thanx a lot "If you change then change for the good."
-
Working with INI Related functionsHi! iam working on an mfc sdi project in which , i hav to read ini file and to change it into its corresponding xml file. I am doing it with the help of GetPrivateProfileSectionNAmes and GetPrivateProfileSection functions. My sample ini file is: [SECTION1] KEY1=500 KEY2=VALUE [SECTION2] key3=500 key4=100 [SECTION3] key5=xyz My code is like dis: void CNewIni2XmlDlg::OnBConvert() { // TODO: Add your control notification handlcode here FILE *fpr,*fpw; CHAR buffer[50]; DWORD nSize=50; LPTSTR lpszReturnBuffer; CHAR buff[50]; fpr = fopen("C:\\users\\SG\\SWATI.INI","r"); fpw = fopen("C:\\users\\SG\\Ss.txt","w"); lpszReturnBuffer = buff; fprintf(fpw,""); GetPrivateProfileSectionNames(buffer,nSize,"C:\\users\\SG\\SWATI.INI"); fprintf(fpw,"\n<%s>",buffer); fflush(fpw); GetPrivateProfileSection(buffer,buff,nSize,"C:\\users\\SG\\SWATI.INI"); fprintf(fpw,"\n%s",buff); fclose(fpr); fclose(fpw); AfxMessageBox("ok"); } Now, the problem is , this method is returning only the SECTION1 and KEY1=500. ##How to get names of all the remaining sections?? ##What should , I do to get all the key value pairs for any section?? Thanx a lot for ur kind support. "If you change then change for the good."