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 TouchToneTommy 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 Kapadia

  1. Kapadia

    Extracting Comments from A Word component.

    Hi JohnFill, Thanks for the reply but the actual problem was with the for loop. The Index Value in VB for every for loop seems to begin with the 1 and not with 0. Since the Word object model is built in VB the VC Compiler Raised Exception when a call was made. And there seemed to be the...
  2. Kapadia

    Getting properties of a word document

    Hi John, there is msword8 object modle available. What u can do is use that modle. Create an Application object that returns the Documents object. From that open single Doument. that document will return u the author and all other details u want. m_ptheApplication = new _Application()...
  3. Kapadia

    Extracting text from Microsoft Organization chart in a ppt file

    Hi, I'm writing a component in VC++ that extracts text from a ppt(PowerPoint) file. I have successfully extracted text from textboxes, charts tables etc. But i don't know how to extract text from a Microsoft Organization chart. Could someone please help me with this problem? Thanks and...
  4. Kapadia

    Pause in Program

    hi, Sorry for being out of touch,Any way using kbHit() one stays in the loop unless a specific key is pressed. Say u want to exit the program or the loop on 'Escape' or 'Enter' key then while((!kbhit()==13)||(!kbhit== 26)) { part of code } or say u want to use[y/n] [yes] or [no] then...
  5. Kapadia

    General Registry Question

    Hi, A very basic thing about use of registry for programs is that when a prg is registered in the registry it is available to any process or any other program that wants to use it. In case of COM and DCOM the components are registered and then can be used by any program which wants that...
  6. Kapadia

    Extracting Comments from A Word component.

    Hi, I am working on a ATL Component that loads a Microsoft Word document and extracts all the text from it. As far as extracting the text is concerned it works fine. But when I extract text from the Comments that one gives in the word document, I can extract the number of comments, Author who...
  7. Kapadia

    Creating a new file dialog

    Hi TO, what I can see from the above Error Discription and the Syntax of GetFileTitle() is that, it returns a CString Object. I guess u have declared nameoffile as char nameoffile[260]. If so, just convert nameoffile declaration to CString nameoffile; and then nameoffile =...
  8. Kapadia

    window subclassing problem

    Hi Will, there are several points to follow while subclassing a window or a control. U can find them in MSDN's Creating a SubClass There r few CWnd class functions that u can use for subclassing like.. 1. SubclassWindow( HWND ) OR 2. SubclassDlgItem( UINT , CWnd* )...
  9. Kapadia

    How to prevent user from stopping program w/ Ctrl-C or Ctrl-Break

    Hi If u r using SDK platform then search for the following in MSDN Console Control handler,HandlerRoutine and Registering a Control Handler Function I guess this will help ur case definately. Hemant.
  10. Kapadia

    exiting a dos based program?

    Hi, I would like to put some light on use of exit(0) with exit(interger>0). 0 passed to exit(0) means normal termination of a program. Also means that the program has successfully exited its termination whereas exit(1) means some error happened in the execution, and the program has forcefully...
  11. Kapadia

    How to prevent user from stopping program w/ Ctrl-C or Ctrl-Break

    Hi, If you are doing this under Windows, the full-proof way is to get the Windows Hook which will allow you to capture all Windows messages including Keyboard messages. You can 'handle' the message before it can be used for anything else. In DOS(or console program in Windows) however you may...
  12. Kapadia

    TRACE macro

    Hi, The TRACE macro is active only in the debug version of the class library. After a program has been debugged, you can build a release version to deactivate all TRACE calls in the program. For this what u need to do is in ur Project Settings menu select from the Settings For: combo on...
  13. Kapadia

    Visual C++ textbook

    Hi Judy, For C++ u have plenty of good books, like 1. The Complete Reference. 2. Thinking in C++. 3. Practical C++ programming by Steve Oualline. 4. C++: The Core Language by Gregory Satir and Doug Brown. These are few good C++ programming books. For more information about few of these...
  14. Kapadia

    Problems with getch()

    Hi, what I would suggest to cout.flush() is similar call i.e. _flushall(), coz there may be problem with other stream buffers too. One just can't say that the problem may exist with cout or output being buffered. _flushall() flushes all streams and clears the buffer. So that might help ur...
  15. Kapadia

    Visual C++ textbook

    Hi, Well as far as my knowledge goes, I doubt there are any good books that provide with exercises at the end of each chapter. But what u can do is, on the codeguru site u get good project based on all the VC++ topics. Basically the projects are complete ones but u can get genral idea from...

Part and Inventory Search

Back
Top