Im trying to register dll’s programatically, however so far i’ve only been able to find examples written in C, or examples where you need to know the name of the dll at design time.
I want to be able to pass a dll/ocx with its path to a function which will then register/unregister it (depending on what I specify) and have a return code if it fails, i.e. the example I saw in C returned a -3 when the user ran it and he was then told that the -3 meant the file was in use.
Alternatively, if anyone knows where I can download a dll that already does this could you post the link (it doesnt have to be a free dll).
Any help would be much appreciated as im this ‘ ‘ close to giving it up as a bad job and using regsvr32 in silent mode and ignoring the errors completely – but that would be completely unprofessional of me!