Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by pankajkumar

  1. pankajkumar

    Cancel notify menu?

    Please explain in a bit more detail!!! Probable cause may be(I think so..) 1.Might have stuck somehwre in some loop. 2.Resources are not getting free..
  2. pankajkumar

    get tooltip info in MFC

    Hi, I did it on Win32-SDK based programs...Steps are 1.Create tooltip window in WM_INITDIALOG as- hWndToolTip = CreateWindowEx(0, TOOLTIPS_CLASS,NULL, WS_POPUP |TTS_NOPREFIX|TTS_ALWAYSTIP, CW_USEDEFAULT, CW_USEDEFAULT, 10, 10, hDlg, NULL, hIsntance, NULL); Then fill the names of controls in...
  3. pankajkumar

    Putting a bitmap on the button, here is the code for the button...

    I don't have much experience with MFC but sure I can tell you SDK way 1.I loaded bitmap as IDB_YELLOW resource, from a file which has 16 by 16 bitmap. 2.Load Bitmap 16 by 16 using something like this HBITMAP hBitmap; hBitmap = LoadBitmap(hInst,MAKEINTRESOURCE(IDB_YELLOW)) 3.Load bitmap on...
  4. pankajkumar

    How to send messages to the dialog in the other thread?

    Yeah SendMessage will ensure that message is delivered and will not return unless it does its task but nothing such with PostMessage
  5. pankajkumar

    Printing in WinAPI

    After getting your printer name route is straight forward StartDoc StartPage ... TextOut(PrinterDC,x,y,Text,strlen(Text)... ..... EndPage EndDoc .... Hope it helps
  6. pankajkumar

    Printing in WinAPI

    I dealt with printing job fully in my last project....with SDK way.. where it is giving you problem...
  7. pankajkumar

    open a document where path is variable in C++

    Try with FindFirstFile like APIs
  8. pankajkumar

    GetDiskFreeSpaceEx

    Use the examples given in msdn they run pretty fine. except directory name all are out parameters.... Cheers
  9. pankajkumar

    How do I get users input from edit1box and search

    I think apatterno is right... anyway you can use APIs like GetDlgItemText(xx..) and SetDlgItemText(xx...) to read from edit 1 and display that text in edit2... but where exatly are you seraching the text of Edit1 ..in the file or where
  10. pankajkumar

    URGENT! Object Pointer Problem

    Hi thebarslider That error might be coming due to line "delete pointer_to_A;"..stop this line and it will work for you hope it helps
  11. pankajkumar

    Finding the Name of a Remote Computer from the User Name

    A user may be looged in on more than one machine at a time
  12. pankajkumar

    Pointer problems with (char*)

    Hi I think this yours sample is not much clear as even the usage of structure too..But I gave a try with your pointer problem ..Ok i picked up whatever you posted..Akarui is right upto some extent ..pointers are not much helpful if memory location to be used is not much clear..at least i prefer...
  13. pankajkumar

    All Process ID

    This Sample "Enumerating All Processes" given in MSDN will work fine..please check Group Policy snap in then login as admin
  14. pankajkumar

    Transfer array between 2 apps

    You can refer examples given in msdn for Memory Mapping of files too..this example is given in MFC as well as for SDK where interprocess communication is concerned
  15. pankajkumar

    Compiling...

    ok do one thing go in Project->Settings options there modify what complier says about 1.pif.obj : error LNK2001: unresolved external symbol _LogOptions 2.Release_External/Project64.exe : fatal error LNK1120: 1 unresolved externals 1 means settings are looking for switches in Project Options...

Part and Inventory Search

Back
Top