Type library exporter encountered generic type Error Meaning

When building my VSTO project I got the following error: ”
Warning Type library exporter warning processing ‘HplAddinAGSL.Agslo.GetFilesToOpen(#0), HplAddinAGSL’. Warning: Type library exporter encountered a generic type instance in a signature. Generic code may not be exported to COM. AGSLo ”

This stems making the VSTO COM visible and the type being using for this function was from systems.collection. In the function with the error I am using List<string> which may not be exported to COM. More research is needed at this point to correct the warning.

How to register your tlb file for VBA use on a destination machine AND have VSTO running. SUCCESS.

It took HOURs to figure all this out and the answer!? (see older post) The issue that we are having is that  the VSTO would work initated from the ribbon, but the VBA when you added a “reference” to the .tlb file would tell you that it could not create an ActiveX object or other message saying “what!?”. Solution:  to run from the command line:  

[c]regasm /codebase &amp;amp;amp;amp;lt;pathToMyDll&amp;amp;amp;amp;gt; /tlb:&amp;amp;amp;amp;lt;pathToMyTlb&amp;amp;amp;amp;gt;[/c]

But that command too could not “just run”. Here is a guy doing the exact same thing as me, except I found this article last – or at least I stopped looking. It is the key. Making VSTO things and wanting to use them in the “old world” and the new. This confirms all I have learned. Lots of links at the bottom about CLSID’s, regasm etc. COM====ActiveX in case you run into ActiveX – it is 100% the same. I used RegShot to see the registry items to learn what to google next

Continue reading

3 computer crashes/rebuilds in 3 years – same machine – I finally snapped and did the VM thing

OK – so 1.5 days down without pay. That stinks and is not going to happen to me again. I have always wanted to make a VM and run Windows inside my VM. 2 machines later and 3 crashes – I finally snapped and did it. I don’t have a blog with many links, but here is what I did… and it works. Again , I wrecked many a VM on purpose – fiddling and knew how quick a restore could be – so why am I not working like this on purpose for my own disaster recovery? A whole weekend went down the drain – but never again … here’s how… Continue reading

How to start a Company (Corp or Sole Proprietor) in Alberta

What route to choose. There are really only 2 options

  1. Sole Proprietership (also called Trade Name) and Incorporated. Here is how to choose. You do not want any of the other options due to the risk involved.
    • click on the sub-links and it has all the how to steps on getting things done
  2. Canada Government resources
  3. Book Keeping 101
    • tips
    • online calculators
    • some basic spreadsheets for
      • stuff you spend $$ on
      • splitting out
        • the GST (basically it is a running total. How much GST to collect, how much stuff did you expense that you can take off that GST)
        • categories
      • stuff you can claim (eg. $500 for gift cards in some instances, meals is 50% deductible, computer is 100% but over X years etc. etc.)
      • automobile – miles or $$ and %driven
    • reading

Visual Studio Crashed and my .cs file for a windows form was corrupted

So my visual studio ended up crashing due to my hard drive dying. Unfortunately the work I had completed yesterday to my form was corrupted. Luckily I had a backup and then performed a beyond compare on the designer.cs file. I took all of the new buttons and then had to fix any errors when I opened the file due to the code in the .cs file not being there. Also to be noted I could not use the original .cs file since I was full of nulls. I just took in the old one.