Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello friends,

I created a sample dll namely SimpleCalculator.dll using VB6, and i registered and I tested the same dll using sample_testpage.asp. It works good in asp classic page.

Now I want to use the same dll in another vb project. For that

I created a new project and added a reference through project-->reference--> browsed the dll file.

The methods that i added in dll class files are popping up successfully.

But when i ran the project, error is raised as "Object variable or With block variable
not set".

I do not know where i am lacking.

kindly advise.

With regards

R.K.PRABAKAR
Posted

You didn't post your code, anyway check the below link for the solution(s)

Object variable or With block variable not set (Error 91) - Visual Basic for Applications Reference[^]
 
Share this answer
 
Comments
♥…ЯҠ…♥ 5-Jun-12 2:22am    
Thanks buddy........
I just tried to create an object just like

Dim Obj as Class1

it throws that error, then i tried the following code for object creation then it works fine

Dim Obj as new Class1

Thanks folks !!!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900