Thread View: borland.public.cppbuilder.upgrade
1 messages
1 total messages
Started by Bernie Steiert
Fri, 28 Apr 2006 06:47
"Access Violation" error
Author: Bernie Steiert
Date: Fri, 28 Apr 2006 06:47
Date: Fri, 28 Apr 2006 06:47
17 lines
1483 bytes
1483 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads