BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

"Access Violation" error

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Upgrade)
View previous topic :: View next topic  
Author Message
Bernie Steiert
Guest





PostPosted: Fri Apr 28, 2006 8:03 am    Post subject: "Access Violation" error Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Upgrade) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.