Hi, How can I load XML Schema using VC++ 6.0. I'm trying to do this usning MSXML4.0, DOM APIs but I'm not able to read complex XSDs. Would anybody plz help me to do this. How can I use ISchema, ISchemaElementPtr etc... SOM APIs? Thanks Srinivas
vgkotha
Posts
-
How to load XSD files using VC++ -
bitmap menuhow can i enlarge bitmap size on menu? i am trying byusing below code. but i am not getting . please help me to solve this task. m->LoadMenu(IDR_MENU1); m->CreatePopupMenu(); cbmp.LoadBitmap(IDB_BITMAP1); m->InsertMenu(0,MF_BYPOSITION | MF_STRING,100,"&Connect \t CTRL+C"); m->SetMenuItemBitmaps(0,MF_BYPOSITION | MF_BITMAP,&cbmp,&cbmp); dbmp.LoadBitmap(IDB_BITMAP2); m->InsertMenu(1,MF_BYPOSITION | MF_STRING,100,"&Disonnect\t CTRL+D"); m->SetMenuItemBitmaps(1,MF_BYPOSITION,&dbmp,&dbmp); SetMenu(m); thanks alot for your help
-
Table format datahi i like to implement tables in my vc++ application like msword->Insert->Table option. Please help me how can i implement this. thank you in advance from venugopal
-
please give me guidlinesthank you very much for your valuable information
-
please give me guidlineshi i am doing a sample project for my knowledge purpose. i am doing a text editor like ms-word. i am not using CEdit control i like to write my own class for displaying text. how can i change the font size and fontface . please guide me.
-
Cursor changeuse setcursor() on focus message handler
-
doubt about EnumPrinters()hi i am using EnumPrinters() function in my project. this is working fine. in msdn help they given if EnumPrinters() successfully executed it returns nonzero value otherwise zero value. but i am getting zero value for successful working of EnumPrinters(). so which one is right please clarify my doubt thank you:confused:
-
get default printer namehi i like to get the default printer name on windowsNT/2000/xp systems. how can i acheive it actually i am using EnumPrinters() like below "EnumPrinters(PRINTER_ENUM_DEFAULT,NULL,5,(LPBYTE)pinfo5,dwBytesNeeded,&dwBytesNeeded,&dwReturned);" but the above function is working on win95/98 its not supporting please help how can i achieve. thank you from venu
-
setting DEVMODE structurehi i am writing my own dialogbox for printsetup. i have the problem to set "dmFields" member in the DEVMODE structure for orientation and copies.how can i assign my values to these memebers. please help me. if i give pDevMode->dmFields=DM_ORIENTATION pDevMode->dmFields=m_orientation.(m_orientation contains either 1 or 0); but it's not setting with my value please give help thank you
-
printer properties settings by userhi i am wiritng my own print dialogbox. on that i place the controls for setting properties. i like to set that properties to selected printer. i wrote below code. but printer doesn't set the user selected properties . please correct the code where i am wrong. otherwise please give guidence Thank you void CmyPrintSetup::OnButPrint() { // TODO: Add your control notification handler code here unsigned char temp[32]; DEVMODE *devout,*devin; DWORD dwNeeded,dwRet; DEVMODE* pDevMode; if(!OpenPrinter(printername,&hprinter,NULL)) MessageBox("Printer can't be opened","error",MB_OK); dwNeeded=DocumentProperties(NULL,hprinter,printername,NULL,NULL,0); pDevMode=(DEVMODE*)malloc(dwNeeded); dwRet=DocumentProperties (NULL,hprinter,printername,pDevMode,NULL,DM_OUT_BUFFER); if (dwRet != IDOK) { /* If failure, cleanup and return failure. */ free(pDevMode); ClosePrinter(hprinter); } pDevMode->dmOrientation=m_orientation; pDevMode->dmCopies=m_copies; dwRet=DocumentProperties (NULL,hprinter,printername,pDevMode,pDevMode,DM_IN_BUFFER|DM_OUT_BUFFER); if(dwRet!=IDOK) { MessageBox("properties initialization error","error",MB_OK); } } please help it's urgent
-
printer properties settinghi i am wiritng my own print dialogbox. on that i place the controls for setting properties. i like to set that properties to selected printer. i wrote below code. but printer doesn't set the user selected properties . please correct the code where i am wrong. otherwise please give guidence Thank you void CmyPrintSetup::OnButPrint() { // TODO: Add your control notification handler code here unsigned char temp[32]; DEVMODE *devout,*devin; DWORD dwNeeded,dwRet; DEVMODE* pDevMode; if(!OpenPrinter(printername,&hprinter,NULL)) MessageBox("Printer can't be opened","error",MB_OK); dwNeeded=DocumentProperties(NULL,hprinter,printername,NULL,NULL,0); pDevMode=(DEVMODE*)malloc(dwNeeded); dwRet=DocumentProperties (NULL,hprinter,printername,pDevMode,NULL,DM_OUT_BUFFER); if (dwRet != IDOK) { /* If failure, cleanup and return failure. */ free(pDevMode); ClosePrinter(hprinter); } pDevMode->dmOrientation=m_orientation; pDevMode->dmCopies=m_copies; dwRet=DocumentProperties (NULL,hprinter,printername,pDevMode,pDevMode,DM_IN_BUFFER|DM_OUT_BUFFER); if(dwRet!=IDOK) { MessageBox("properties initialization error","error",MB_OK); } } please help it's urgent
-
sending data to printerhi i am writng my own printsetup dailog box in mfc. i selected all properties and when i give print the printer is not signaling . i am providing my code below please correct where the mistake. if my code is wrong please give guidence how can i send data to printer. my intention is not displaying windows printdialog box. what are the functionality we did on printdialog we can carry on our dialogbox. It's urgent. please help thank you void CMyPrintSetup::OnButPrint() { // TODO: Add your control notification handler code here unsigned char temp[32]; DEVMODE *devout,*devin; DWORD dwNeeded,dwRet; DEVMODE* pDevMode; /**********************getting printer handle**********************/ if(!OpenPrinter(printername,&hprinter,NULL)) //for getting handle for printer MessageBox("Printer can't be opened","emazines",MB_OK); /*******get the size of the buffer for specified printer****************/ dwNeeded=DocumentProperties(NULL,hprinter,printername,NULL,NULL,0); pDevMode=(DEVMODE*)malloc(dwNeeded); /**get the default DEVMODE for the printer and modify if your needs*********/ dwRet=DocumentProperties (NULL,hprinter,printername,pDevMode,NULL,DM_OUT_BUFFER); if (dwRet != IDOK) { /* If failure, cleanup and return failure. */ free(pDevMode); ClosePrinter(hprinter); } pDevMode->dmOrientation=m_orientation; pDevMode->dmCopies=m_copies; /***********set the new values to printer****************/ dwRet=DocumentProperties (NULL,hprinter,printername,pDevMode,pDevMode,DM_IN_BUFFER|DM_OUT_BUFFER); if(dwRet!=IDOK) { MessageBox("properties initialization error","emazines",MB_OK); } /*********************** code for printing *************************/ CDC dc; //creating a DC object AfxMessageBox(printername); HDC hdc=CreateDC(NULL,printername,NULL,NULL); dc.Attach(hdc); dc.Rectangle(100,100,200,200); dc.TextOut(50,50,"Emazines Software Private Limited"); dc.DeleteDC(); /*********************End of the code for printing*********************/ CDialog::OnOK();//for closing window }
-
particular area data to printerhi i need a help in printing. in my project my window certain area i like to print not the entire client area. how can i print the data containing in the particular area on the window to printer. thanks alot from venu
-
printing particular area data to printerhi i need a help in printing. in my project my window certain area i like to print not the entire client area. how can i print the data containing in the particular area on the window to printer. thanks alot from venu
-
about comboBox limithi i like to use combobox for storing items in vc++. but the problem is it can't store more than 32,735 items because of integer datatype limit is 32735. But in MFC int lenght is around -2 crores to +2crores. even it accepts only 32735 items only.why? please explain how can i add items into combobox more than 32,735. how can i overcome this limit please help about this thank you from venu
-
Displaying a PDF file in my Apphi friend this kind of task solved by my collegue. please send your problem to him. his mail id is gopi@emazines.com
-
retrieve the harddisk serial numberhi how can i fetch the harddisk serial number not harddisk volume serial number using MFC, WIN32API,C,C++ program. And where it is stored in the system. any professionals know please help me thank you from venu
-
MFChello I am very confusing to understand the difference between SetWindowOrg(),SetViewportOrg() and SetViewportExt(),SetWindowExt(). and in what situation we use what function. if any expert please help me urgently. my task is based on these functions. actually my task is printing the data contained in the particular area on the view Thanks you from venu:confused:
-
printing content in the specified position on document to printerI want to print a page which has predefined area, so that the printer prints the content which is in the defined area.Say for example, a document usually has 32x13 inches ruler. we predefine the size to 8x11 inches area of the document. we actually need to print the content of the 8x11 inches? any help will be greatly appreciated. i desperately need this info. please send reply to vgkotha@rediffmail.com thanks in advance, from venu:confused