Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > dll help

Reply
Thread Tools

dll help

 
 
Savas Ates
Guest
Posts: n/a
 
      07-27-2004
i wrote this class in VB


Public Function toplama(x, y)
z = x + y
toplama = z

End Function

***********class name= toplama************ and projectname= project1

from file--> make dll and occurred ilim.dll

run cmd regsvr32 ilim.dll i typed and it was registered..(succesfully)


in my asp page

<%
Set objName = Server.CreateObject("Project1.toplama")
objName.toplama x,y

objName.x=10
objName.y=10
response.write objName

%>

Error Type:
Microsoft VBScript runtime (0x800A01B6)
Object doesn't support this property or method: 'objName.x'
/app/dll.asp, line 5


what is the wrong help me. this the first time i use a dll and i think i
have some mistakes..


 
Reply With Quote
 
 
 
 
CJM
Guest
Posts: n/a
 
      07-27-2004

"Savas Ates" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> i wrote this class in VB
>
>
> Public Function toplama(x, y)
> z = x + y
> toplama = z
>
> End Function
>
> ***********class name= toplama************ and projectname= project1
>
> from file--> make dll and occurred ilim.dll
>
> run cmd regsvr32 ilim.dll i typed and it was registered..(succesfully)
>
>
> in my asp page
>
> <%
> Set objName = Server.CreateObject("Project1.toplama")
> objName.toplama x,y
>
> objName.x=10
> objName.y=10
> response.write objName
>
> %>
>
> Error Type:
> Microsoft VBScript runtime (0x800A01B6)
> Object doesn't support this property or method: 'objName.x'
> /app/dll.asp, line 5
>
>
> what is the wrong help me. this the first time i use a dll and i think i
> have some mistakes..
>
>


The error message hits the nail on the head - the object has no property
called 'x'.

Your code should read something like this:

Set objName = Server.CreateObject("Project1.toplama")
Response.Write objName.toplama(10,10)

Or a longer version:

Set objName = Server.CreateObject("Project1.toplama")
x=10
y=10
z=objName.toplama(x,y)
Response.Write z


hth

Chris




 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory Allication (Managed VC++ DLL to Unmanaged DLL) [Second Try] Weston Fryatt ASP .Net 2 01-01-2005 11:31 AM
How to determine if a DLL is a COM DLL or .NET DLL Anushi ASP .Net 5 10-28-2004 01:59 PM
Why does Ruby use both tcl83.dll and tk83.dll (instead of just tk83.dll)? H. Simpson Ruby 4 08-03-2004 04:45 PM
mprapi.dll --> samlib.dll --> ntdll.dll issue. Some1 Computer Support 4 04-05-2004 02:02 AM
msvcrt.dll, msvcirt.dll, msvcrt20.dll and msvcrt40.dll, explanation please! Snoopy NZ Computing 16 08-25-2003 12:34 PM



Advertisments