B
brochor
Unregistered / Unconfirmed
GUEST, unregistred user!
主程序是这样的:
Form2就是封面,Form2中含有一个flash activex控件。
运行后就提示:
Project flashstart.exe raised exception class EOleSysError with message"尚未调用CoInitialize".Process stopped.Use Step or Run to continue.
用步进运行的话运行到 Form2:=TForm2.Create(Application);这句就提示同样的信息。
[red]请教高手,这个问题怎么解决啊?[?][?][/red]
代码:
program flashstart;
uses
Forms,
Windows,
Messages,
SysUtils,
Dialogs,
comobj, ActiveX,
ShockwaveFlashObjects_TLB,
flashstart1 in 'flashstart1.pas' {Form1},
flashstart2 in 'flashstart2.pas' {Form2};
{$R *.res}
begin
Form2:=TForm2.Create(Application);
Form2.Show;
Form2.Update;
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Form2.Hide;
Form2.Free;
Application.Run;
end.
运行后就提示:
Project flashstart.exe raised exception class EOleSysError with message"尚未调用CoInitialize".Process stopped.Use Step or Run to continue.
用步进运行的话运行到 Form2:=TForm2.Create(Application);这句就提示同样的信息。
[red]请教高手,这个问题怎么解决啊?[?][?][/red]