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
JohnH
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
HandleCSettings(x)
else if typeof x is DSettings then
HandleDSettings(x)
else
HandleDefaultSettings(x)
end if
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.