Re: Protecting against type mismatch errors

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"Armin Zingler" <az.nospam@xxxxxxxxxx> wrote in message
news:Ol$wGMZeFHA.4040@xxxxxxxxxxxxxxxxxxxxxxx
> I think, resolving the problem at compile time helps to avoid runtime
> errors. That's why I mainly referred to strict typing.

Yes, but the code would be in a DLL and the class would be called from Word
VBA, so there's no possibility of controlling the calling code. When Office
is fully .NET-ized, maybe this will change.

In the case in question, I am making it (nearly) impossible to use the DLL,
other than by calling it from a Word template that I am supplying.

Even tho the VBA project in that template will be password protected, which
really is not secure anyway, I want to protect the DLL from somebody passing
in incorrect types.


.



Relevant Pages

  • Re: Making Functions in a DLL visible to the outside world
    ... How can I make the functions visible/callable outside the DLL? ... the function became visible in the Globals part of the Object browser. ... I decided to cheat and define my UDF simply in the VBA ... Calling procs in a DLL is allowed, but the VBA project requires a ref to the DLL be set in the 'Tools, References' dialog. ...
    (microsoft.public.excel.programming)
  • Re: Could not load file or assembly
    ... If my calling code is a WinForms app, this code works as long as the DLL is ... even if the relevant dll is in the bin directory of the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Word VBA obfuscation?
    ... It is all too easy to get around the VBA project password "protection". ... without a password cracker. ... Write code that installs the DLL, ...
    (microsoft.public.word.vba.general)
  • Re: Getting at VBA
    ... I register the dll that I create. ... The only way to know for sure is to check your references in the VBA ... some of the DLL modules into your VBA project, ... The registry will point to the actual DLL file that's "registered." ...
    (microsoft.public.word.vba.general)
  • Re: Word VBA obfuscation?
    ... You would need to purchase VB 6 and create the DLL in V B 6. ... >> It is all too easy to get around the VBA project password "protection". ... >> Takes less than 5 minutes, without a password cracker. ... >>> for free) tools that support obfuscation on Word VBA. ...
    (microsoft.public.word.vba.general)