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

sjchin

Newcomer
Joined
Mar 21, 2003
Messages
22
RE:Dll Return Error while post on other form!!Pls Help

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 won't return error. May i know what this problem is?
 
It means there's 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 it's occuring on.
 
Sounds like you haven't 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 doesn't make ActiveX Dlls. If he's made a dll with a user control in, it'll be a .NET assembly.
 
Back
Top