RE:Dll Return Error while post on other form!!Pls Help

sjchin

Member
Joined
Mar 21, 2003
Messages
22
I have make an dll using user control for my project. While i pass to other colleague, sometime the project will appear eror message "Object Reference Not Set to an Instance of An Object", may i know why it appear this error? While i open new project in my own pc(which using for develop dll), it working fine, if my colleague open new project, it wont return error. May i know what this problem is?
 
It means theres an error in your code. If you put exception handling in, you could show a messagebox including a stack trace which will show the line number its occuring on.
 
Sounds like you havent been RegSvr32 ing the control on the other computers, You have to register the ActiveX files before they can be used.
RegSvr32 "C:\MyDLL\MyActiveXDLL.dll"
RegSvr32 "C:\MyDLL\MyActiveXOCX.ocx"
You could create a deployment package for the DLL/OCX so that it is registered during an install
 
AndreRyan, .NET doesnt make ActiveX Dlls. If hes made a dll with a user control in, itll be a .NET assembly.
 
Back
Top