 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Bernie Steiert Guest
|
Posted: Fri Apr 28, 2006 8:03 am Post subject: "Access Violation" error |
|
|
Hi All,
We upgraded a project from C++ Builder 5 to C++ Builder 6 which opened a
Microsoft word template and inserted some data.. very simple.
Since the upgrade we are getting an "Access Violation" error every time we
try to open the word doc.
MSWord = CreateOleObject("Word.Basic");
MSWord.Exec (Procedure("ChDefaultDir") << dir.c_str() << 0);
MSWord.Exec (Procedure("FileOpen") << doc.c_str());
The strange thing is that when we run it in full debug mode its okay.
And the project compiles okay.
Any Ideas?
Thanks
Regards Bernie |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|