I have a custom ActiveX control that is put into a C# Windows Form
Application (VS2008). The ActiveX control sometimes gets bugfixes but
nothing major (IE new methods arn't added, etc).
Q1- Does the AxInterop.XXXlib.dll / Interop.XXXlib.dll need to be
remade each time the XXX.dll is modified (mainly concerned about small
modifications like bug fixes).
If it does, I have a batch script that automatically updates various
files. I'd like to add the two Interop.dll's to it if needed. I call
"AxImp.exe XXX.dll /out:AxInterop.XXXlib.dll" and rename the
"XXXLib.dll" genereated to "Interop.XXXLib.dll" (so it matches what I
already have). This does not work for me. Replacing the two new
Interop.XXXLib.dlls with the old DLLs doesn't let the application open
Q2- Is there a way to know the exact AxImp.exe options VS2008 used to
add the dll to my project, if any? If I recreate the DLL's with
AxImp.exe, does it force me to re-compile my C# application for it to
work? If recompiling is needed, is changing the "/reference:xxx" for
the two DLL's in the csc.exe command sufficent, or is something else
done, that would need to be updated, by VS when I drag the ActiveX
control to the windows form?
Thanks. I'm a little new at this and just curious about what's usally
done in this case.