Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Config
- {
- std::string aye;
- std::string bee;
- std::string sea;
- };
- extern "C" __declspec(dllexport) BridgeBase_I* __stdcall Bridge_GetConfiguredDefaultsImplementationPointer(
- const std::vector<Config> & newConfigs, /**< new configurations to apply **/
- std::string configFolderPath, /**< folder to write config files in **/
- std::string defaultConfigFolderPath, /**< folder to find default config files in **/
- std::string & status /**< output status of config parse **/
- );
- GatewayWrapper::Config bridge;
- std::string configPath("./config");
- std::string defaultPath("./config/default");
- GatewayWrapper::Config gwtransport;
- bridge.aye = "bridged.dll";
- bridge.bee = "1.0";
- bridge.sea = "";
- configs.push_back(bridge);
- _bridge = GatewayWrapper::Bridge_GetConfiguredDefaultsImplementationPointer(configs, configPath, defaultPath, status);
- System::String^ temp
- List<CConfig^>^ configs = gcnew List<CConfig ^>((INT32)newConfigs.size());
- for( int i = 0; i< newConfigs.size(); i++)
- {
- std::cout << newConfigs[i].aye<< std::flush; // prints
- std::cout << newConfigs[i].aye.c_str() << std::flush; // prints
- temp = gcnew System::String(newConfigs[i].aye.c_str());
- System::Console::WriteLine(temp); // prints
- std::cout << "Testing string creation" << std::endl; // prints
- std::cout << newConfigs[i].bee << std::flush; // crashes here
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement