... does anyone know how to fix them?
Visual Studio 2011 Beta, trying to get some of the frameworks prepared for this, and now goes through a limited list of issues.
The code:
String^ pUser = (System::String^) pConnectionStringBuilder["UserName"]; String^ pPass = (System::String^) pConnectionStringBuilder["Password"]; String^ pBroker = (System::String^) pConnectionStringBuilder["Broker"];
pConnectionStringBuilder is an instance of ConnectionStringBuilder.
Errors:
2 IntelliSense: expression must have pointer-to-object or handle-to-CLI-array type c:\Work\Tradex\Source\Tradex.Connectivity.Rithmic\RithmicConnector.cpp 62 39 Tradex.Connectivity.Rithmic 3 IntelliSense: expression must have integral or unscoped enum type c:\Work\Tradex\Source\Tradex.Connectivity.Rithmic\RithmicConnector.cpp 62 64 Tradex.Connectivity.Rithmic 4 IntelliSense: expression must have pointer-to-object or handle-to-CLI-array type c:\Work\Tradex\Source\Tradex.Connectivity.Rithmic\RithmicConnector.cpp 63 39 Tradex.Connectivity.Rithmic 5 IntelliSense: expression must have integral or unscoped enum type c:\Work\Tradex\Source\Tradex.Connectivity.Rithmic\RithmicConnector.cpp 63 64 Tradex.Connectivity.Rithmic 6 IntelliSense: expression must have pointer-to-object or handle-to-CLI-array type c:\Work\Tradex\Source\Tradex.Connectivity.Rithmic\RithmicConnector.cpp 64 41 Tradex.Connectivity.Rithmic 7 IntelliSense: expression must have integral or unscoped enum type c:\Work\Tradex\Source\Tradex.Connectivity.Rithmic\RithmicConnector.cpp 64 66 Tradex.Connectivity.Rithmic 8 IntelliSense: expression must have pointer-to-object or handle-to-CLI-array type c:\Work\Tradex\Source\Tradex.Connectivity.Rithmic\RithmicConnector.cpp 269 6 Tradex.Connectivity.Rithmic 9 IntelliSense: expression must have integral or unscoped enum type c:\Work\Tradex\Source\Tradex.Connectivity.Rithmic\RithmicConnector.cpp 269 32 Tradex.Connectivity.Rithmic
and they just don't make sense at all;)
There are two other warnings, but it is clear that this is not a mistake:
1> Tradex.Connectivity.Rithmic.vcxproj → C: \ Work \ Tradex \ Source \ Debug \ Tradex.Connectivity.Rithmic.dll rithmicconnector.cpp (104): warning: C6001: use of uninitialized memory "oParams". rithmicconnector.cpp (108): warning: C6001: use of uninitialized memory "oLoginParams". 1> Code analysis completed - 0 errors, 0 warnings (s)
It compiles fine.
I tried using pConnectionStringBuilder-> default - guess what;) complains.
2 IntelliSense: class "System::Data::Common::DbConnectionStringBuilder" has no member "default" c:\Work\Tradex\Source\Tradex.Connectivity.Rithmic\RithmicConnector.cpp 62 65 Tradex.Connectivity.Rithmic
which, by the way, is also incorrect and compiles;)
I really prefer not to have Intellisense errors.
source share