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...
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()...
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...
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...
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...
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...
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 =...
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* )...
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.
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...
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...
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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.