Форум АНТИЧАТ

Форум АНТИЧАТ (https://forum.antichat.xyz/index.php)
-   С/С++, C#, Delphi, .NET, Asm (https://forum.antichat.xyz/forumdisplay.php?f=24)
-   -   [C++ Builder] Ошибка при использовании метода OLE Add (https://forum.antichat.xyz/showthread.php?t=75364)

AleksP 29.06.2008 14:56

[C++ Builder] Ошибка при использовании метода OLE Add
 
При использовании метода OLE Add в C++ Builder появляется сообщение об ошибке: Project Project1.exe raised exception class EOleSysError with message 'The Add method or property is not available because the license to use this application has expired.' Process stopped. Use Step or Run to continue.

Как можно устранить причину ошибки без переустановки Microsoft Office?

brasco2k 29.06.2008 15:03

Цитата:

Сообщение от AleksP
При использовании метода OLE Add в C++ Builder появляется сообщение об ошибке: Project Project1.exe raised exception class EOleSysError with message 'The Add method or property is not available because the license to use this application has expired.' Process stopped. Use Step or Run to continue.

Как можно устранить причину ошибки без переустановки Microsoft Office?

ЫЫ попробуй найти кейген) или кряк

o_OBallers 29.06.2008 16:12

Используется нежёсткая связка, кажется это так называется.

Пость сюда свой полный исходник может помогу.

AleksP 29.06.2008 16:40

To brasco2k: Это Microsoft Word Standart Edition 2003 for Students and Teachers, кряк к нему уже применен, но, видимо, не до конца. Может нужно еще доустановить или обновить какие-нибудь библиотеки?

To o_OBallers:
Код:

Variant Word, Documents;

Function OleAdd( "Add" );
NamedParm Template( "Template", "Normal" );
NamedParm NewTemplate( "NewTemplate", false );
NamedParm DocumentType( "DocumentType", 0 );
OleAdd << Template << NewTemplate << DocumentType;

Word = CreateOleObject("Word.Application.8");
Word.OlePropertySet("Visible", true);
Documents = Word.OlePropertyGet("Documents");
Documents.Exec( OleAdd );


o_OBallers 30.06.2008 13:47

Documents.Exec( OleAdd );
Проблема в OleAdd, нужно писать что-то другое, поэтому, и происходит ошибка.


Время: 22:39