-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: Vijayan
Message 3 in Discussion
Hi, Try the following code................... DECLARE @object int
DECLARE @hr int
DECLARE @src varchar(255), @desc varchar(255)
EXEC @hr = sp_OACreate 'proSPandCOM.clsSPandCOM',
@object OUT
IF @hr <> 0
BEGIN
EXEC sp_OAGetErrorInfo @object, @src OUT, @desc OUT
SELECT hr=convert(varbinary(4),@hr), [EMAIL PROTECTED],
[EMAIL PROTECTED]
RETURN
END
declare @outp varchar(20)
EXEC @hr = sp_OAMethod @object, 'storeprocandcom',
@outp out 'Note: [storeprocandcom] is a DLL Name..........
select @outp
IF @hr <> 0
BEGIN
EXEC sp_OAGetErrorInfo @object
RETURN
END
EXEC sp_OADestroy @object '------------------------- class file
contains.............. Public Function storeprocandcom()
storeprocandcom = "i am from COMponent"
End Function Regards, Vijayakumar Malaysia
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]