Using Excel 2007 and Visual Studio 2003
This function throws a target invocation exception
Private Function ExcelNewSeries(ByVal sercol As Excel.SeriesCollection) As Excel.Series
Dim series As Excel.Series
series = CType(sercol, Object).GetType.InvokeMember("NewSeries"...
What are you actually trying to achieve?
Are you talking about generating every possible 14 character string using a set of 36 characters (26 letters and 10 digits) with at least one letter and one number in each because thats a lot of strings (36^12)*26*10
I finally uncovered the cause; I had a refence to a project set to copy-local.
For some reason it was changing the signature of the copied dll which was causing the
typeof comparison to return false when it should have returned true
thanks for your help and input.
Thanks for that
I am using VS 2003 on some legacy code. I did as you suggested and it worked but ...
I got clean code out and recompiled it and got the same error back.
This time deleting the obj and bin folders hasn't resolved the problem.
Any further thoughts?
I have a function that takes a generic interface ISettings.
I want to treat it differently depending on a more specific type so I use
if typeof x is CSettings then
else if typeof x is DSettings then
When I pass...
I am trying to write a macro to reconfigure my project.
Specifically I want to be able to close up all the projects in the solution explorer and change the single startup project.
I would be grateful for any pointers