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 

Problem creating an ASP object

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi ActiveX Controls Development
View previous topic :: View next topic  
Author Message
Pep
Guest





PostPosted: Thu Mar 04, 2004 4:25 pm    Post subject: Problem creating an ASP object Reply with quote



Hi

I need to create an ASP object to access databases. I've a class that
does this work pretty well. So I decided to build a wrapper to use it
on ASP pages.
I made the class library, the Active Server Object, with its methods
and properties, compiles well, register... and not works :(

this is the class

type
TEntitatSimple = class(TASPObject, IEntitatSimple)
protected
ec: TEntitatCom;
procedure OnEndPage; safecall;
procedure OnStartPage(const AScriptingContext:IUnknown); safecall;
procedure HelloWorld; safecall;
procedure Carregar(const strTaula, strConnexio: WideString);
safecall;
end;

When I create the ec in the OnStartPage, simply it raises
'catastrophic error 8000ffff'. I removed the ec declaration and
creation and all works... I can call the HelloWorld method from the
asp test page.
The TEntitatCom class, on a traditional form, works fine. BTW, it
descdens from a TObject.
Any ideas? What's wrong?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi ActiveX Controls Development 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.