I've got a web service made in C# (WCF) that uses a COM object made in visual basic 6.0. I've followed this way to cast the COM object and use the function i want. The big problem is that the visual basic .dll is constantly changing (because its being developed and adaptaded to the client) and the CLSID is constantly changing.
This is the code. Is simple, I just cast the COM and send to print all the pages:
Printer print = new Printer(); //Where I Cast the COM Library
print.AllPages = 1; //its a parameter but i edited it so you can understand
return print.PrintPdf();
How can i make this code adaptable to changes? Is there any way I can change my code so I dont have to delete the reference, re-add it and rebuild the proyect?
Thanks