PDA

Click to See Complete Forum and Search --> : Question on returning data from ActiveX DLL (Resolved)


Imanta
Mar 28th, 2004, 02:26 AM
I have been looking at a lot of samples and I have some code working where I call a Function within my DLL from ASP and return something, but I would like to know how to get it to return multiple items under various properties.

For example, how can I do:


Set obj = Server.CreateObject("ServerTalk.clsGetInfo")
Set res = obj.ServerTalk(SomeItem)

Response.Write res.FirstName
Response.Write res.LastName
Response.Write res.City

Set obj = Nothing


Where FirstName, LastName, City are all variables inside my ActiveX DLL.

Essentially, I called a function in my DLL and it returns data, but I want to break it into separate properties a developer can call into.

Any ideas?

NicoNel2000
Mar 31st, 2004, 02:39 AM
Hi,

I've written a small app with sample code for you that I think will help.


cheers

Nico

Imanta
Mar 31st, 2004, 01:43 PM
What can I say but thanks!!