[fdo-users] Convert std::string to FDOString?

nav navin.pro at gmail.com
Thu May 23 04:13:03 PDT 2013


Okay managed to do it like this. 
*     int RegisterProvider(std::string strProviderName)
    {
        std::wstring widestr = std::wstring(strProviderName.begin(),
strProviderName.end());
	    FdoPtr<FdoProviderRegistry> m_pRegistry = (FdoProviderRegistry*)
FdoFeatureAccessManager::GetProviderRegistry();

	        m_pRegistry->RegisterProvider(widestr.c_str(), ...blah
*
String conversion is a torture really :-)



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Convert-std-string-to-FDOString-tp5055148p5055211.html
Sent from the FDO Users mailing list archive at Nabble.com.


More information about the fdo-users mailing list