A
Arpan
I created a simple DLL in VB 6.0 & successfully registered it with the
following command at the Command Prompt:
regsvr32 c:\Inetpub\wwwroot\FetchRecords.dll
I am accessing the DLL in an ASP page with the following code:
<%
Dim strProduct
strProduct=Request.QueryString("product")
Dim objProduct
Set objProduct=Server.CreateObject("FETCH.RECORDS")
objProduct.setString(strProduct)
Response.Write("Price of " & strProduct & " is $")
Response.Write(objProduct.retrieveRecords())
Set objProduct=Nothing
%>
But the above code, when executed, throws a "Invalid ProgID" error.
Where am I going wrong? Please note that registering the DLL using
regsvr32 throws a
DllRegisterServer in c:\Inetpub\wwwroot\FetchRecords.dll succeeded.
message implying that the DLL has registered successfully. In order to
ensure that the component has really been installed in my system, I
executed the following script:
<%
If(IsObject(Server.CreateObject("FETCH.RECORDS"))) Then
Response.Write("Component Installed!")
Else
Response.Write("Component Not Installed!")
End If
%>
but strangely, the above script also generates the "Invalid ProgID"
error. Why so though the DLL has registered successfully (as the DOS
message suggests)?
Lastly, can DLLs be created using VS.NET 7.0 in the same way as they
can be created using VB 6.0?
Thanks,
Arpan
following command at the Command Prompt:
regsvr32 c:\Inetpub\wwwroot\FetchRecords.dll
I am accessing the DLL in an ASP page with the following code:
<%
Dim strProduct
strProduct=Request.QueryString("product")
Dim objProduct
Set objProduct=Server.CreateObject("FETCH.RECORDS")
objProduct.setString(strProduct)
Response.Write("Price of " & strProduct & " is $")
Response.Write(objProduct.retrieveRecords())
Set objProduct=Nothing
%>
But the above code, when executed, throws a "Invalid ProgID" error.
Where am I going wrong? Please note that registering the DLL using
regsvr32 throws a
DllRegisterServer in c:\Inetpub\wwwroot\FetchRecords.dll succeeded.
message implying that the DLL has registered successfully. In order to
ensure that the component has really been installed in my system, I
executed the following script:
<%
If(IsObject(Server.CreateObject("FETCH.RECORDS"))) Then
Response.Write("Component Installed!")
Else
Response.Write("Component Not Installed!")
End If
%>
but strangely, the above script also generates the "Invalid ProgID"
error. Why so though the DLL has registered successfully (as the DOS
message suggests)?
Lastly, can DLLs be created using VS.NET 7.0 in the same way as they
can be created using VB 6.0?
Thanks,
Arpan