Hello!I write application in C# in Visual Studio 2008. After change on Visual Studio 2010 my old code don't work :shapeElem = msapp.CreateShapeElement1(null, ref points, fillMode);error :"The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))"I try create line, shape and don't work but i can create text.Anyone can help me?
You've changed development tool from Viz Studio 2008 to Viz Studio 2010. What about MicroStation: is the MicroStation version the same?
If the version of MicroStation is the same then you need to investigate how Viz Studio has changed between those two versions. In particular, how does Viz Studio 2010 handle a COM interface? Those are Microsoft rather than MicroStation questions.
Regards, Jon Summers LA Solutions
It is very small piece of code to tell what is the problem.
Did you target your application to correct framework?
Is MicroStation interop loaded correctly or even?
What else is in Exception?
Thank you for your answers. Your comments helped me locate problem. In the settings I changed bentley.interop.microstationDGN.dll Embed Interop Types = false and Specific version = true
My application again works.
Thanks again for your help Dan and John!
I am interesting by how changing the settings in Visual Studio 2010, where do you change :
bentley.interop.microstationDGN.dll Embed Interop Types = false
Specific version = true
regards,
Jérôme