473,396 Members | 1,866 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

borland C++ source code to read doc file

6
I have a problem in reading doc file.
I've developed a program whcih can open and read the file.
If the file is doc file it calls directly to the winword.exe that saved under the directory. But if the version that install in the computer is not matched, the problem started.
For instance, I copied winword.exe (xp version). But now i installed office 2007 in my computer.
So, when i click my program to read the file, the error message shown and exit.
How to solve my problem?
Please share your idea/suggestions.
I'm using borland c++ and FLTK GUI toolkit.
Thanks in advance.
Dec 3 '07 #1
3 4952
sicarie
4,677 Expert Mod 4TB
What is the error message?

Are you sure that Office 2007 uses the same exe name and is in the same location?
Dec 3 '07 #2
weaknessforcats
9,208 Expert Mod 8TB
There was a file format change between Office 2003 and Office 2007. I suggest you see if you can open and read your file using Word 2007.

Let me know what you find.
Dec 3 '07 #3
lajet
6
Let me explain more detail with example.
I have c++ project under d:/mytest folder.
So, i copied all application files(ms word application files) including exe under mytest folder to open doc file.(It is xp version)
It runs smoothly.
When i upgrade my computer to office 2007and i tried to open the doc file under mytest folder from my program.
Then, error shows that you want to run this application in safe mode or cancel.
Then, when i click cancel, it quit.
Instead of saving application files under mytest folder, if the program can call the default exe file which installed in the computer, it is better i think.
Because i need to distribute that project to users.
So, when application runs and clicks to read doc file, the program call the default exe(winword..etc ) which installed in user's computer is the good idea.
But i have no idea how to start the code.
If anyone of you can give me some idea/suggestion it would be greatful for me.
Thanks much inadvance.
Dec 4 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Aljo_ | last post by:
Hello! I got a free evaluation copy of Borland's JBuilder9. I also got a book about JAVA, and I am trying to type, compile and run some examples from the book. The following - very simple -...
1
by: Nimmi Srivastav | last post by:
There's a rather nondescript book called "Using Borland C++" by Lee and Mark Atkinson (Que Corporation) which presents an excellent discussion of overloaded new and delete operators. In fact there...
17
by: Ziggi | last post by:
Hi. I want to get a C++ IDE, but I dont know whether to go for Bill Gate's solution or Borland's. Could any kind folks detail the relative strength and weaknesses of both, and also tell me which...
24
by: serdar | last post by:
Hi. Does anybody say that what is better borland c++ or visual c++? Which compiler does have more help?
6
by: Wolfgang Tischer | last post by:
Hello everyone, i'm not very familiar with the insides of c++, i prefer asm... but unfortunately i'm in need for some c-help. (compiler switch, rewritten math.h or something) for the...
0
by: Xproblem | last post by:
FTP Client Engine for C/C++ 2.4 Screenshot - Soft.comFTP Client Engine for C/C++ 2.4. ... System Requirements: Windows C/C++ compiler - Microsoft operating system: Windows 95, Windows 98, Windows...
8
by: chiefbutz | last post by:
I am trying to compile an app that uses the libcurl API. I have the files for that in the correct places. Then I compile I get the following: "Error: Unresolved ecternal '_curl_easy_init'...
17
by: Fabry | last post by:
Hi All, I'm new of this group and I do not know if this is the correct group for my question. I have a DLL with its export library (.lib) wrote in Borland C++ 6. In borland everything is OK and...
7
by: Henry | last post by:
I am looking for a copy of Borland C++ 5.0.1. I have a project at work that was written using this version, and cannot open the project files with a later (or an earlier) version. If you know...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.