Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
V

vgkotha

@vgkotha
About
Posts
19
Topics
16
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to load XSD files using VC++
    V vgkotha

    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

    COM xml question c++ html database

  • bitmap menu
    V vgkotha

    how 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

    C / C++ / MFC question graphics help

  • Table format data
    V vgkotha

    hi 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

    C / C++ / MFC c++ help question

  • please give me guidlines
    V vgkotha

    thank you very much for your valuable information

    C / C++ / MFC tutorial question

  • please give me guidlines
    V vgkotha

    hi 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.

    C / C++ / MFC tutorial question

  • Cursor change
    V vgkotha

    use setcursor() on focus message handler

    C / C++ / MFC question

  • doubt about EnumPrinters()
    V vgkotha

    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:

    C / C++ / MFC help

  • get default printer name
    V vgkotha

    hi 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

    C / C++ / MFC help question

  • setting DEVMODE structure
    V vgkotha

    hi 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

    C / C++ / MFC help question

  • printer properties settings by user
    V vgkotha

    hi 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

    C / C++ / MFC help

  • printer properties setting
    V vgkotha

    hi 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

    C / C++ / MFC help

  • sending data to printer
    V vgkotha

    hi 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 }

    C / C++ / MFC help c++ question

  • particular area data to printer
    V vgkotha

    hi 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

    C / C++ / MFC help question

  • printing particular area data to printer
    V vgkotha

    hi 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

    C / C++ / MFC help question

  • about comboBox limit
    V vgkotha

    hi 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

    C / C++ / MFC c++ help question

  • Displaying a PDF file in my App
    V vgkotha

    hi friend this kind of task solved by my collegue. please send your problem to him. his mail id is gopi@emazines.com

    C / C++ / MFC com adobe help question

  • retrieve the harddisk serial number
    V vgkotha

    hi 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

    C / C++ / MFC c++ help question

  • MFC
    V vgkotha

    hello 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:

    C / C++ / MFC c++ help

  • printing content in the specified position on document to printer
    V vgkotha

    I 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

    C / C++ / MFC com help tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups