I did but that doesn't help me...
EDIT : I run axImp on your dll , and i saw the place where it seem to crash here it is :
Code: Select all
public virtual void GetViewObjectFromName(string name, out int type, out int iD, out string properName) {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("GetViewObjectFromName", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
}
object[] paramArray = new object[] {
name,
type,
iD,
properName,
System.Reflection.Missing.Value};
System.Type typeVar = typeof(PDFXCviewAxLib.IPDFXCview2);
System.Reflection.MethodInfo methodToInvoke = typeVar.GetMethod("GetViewObjectFromName");
methodToInvoke.Invoke(this.ocx, paramArray);
type = ((int)(paramArray[1]));
iD = ((int)(paramArray[2]));
properName = ((string)(paramArray[3]));
}
When i try to put the control on the form or debug the .cs of your dll it say that ID , Type , Propername are not assigned from the method GetViewObjectFromName. I just don't get it why it just don't compile there. It's seem that any of the out reference is generating an error. Maybe u have an idea??
NEW EDIT : I manage to get it work but i would like you guys to fix it properly if you can of course. I just remove all the
out reference of any method that failed to compile.
I put the new dll in my project and with worked. However i can't create it in the design. This is very strange and mean that for some environnement the out reference in parameter generate an error.