No announcements
Found 429827 threads
-
0 Votes
Convert IMap to std::map
You don't want to convert that way.Answered | 3 Replies | 3571 Views | Created by amshinde - Tuesday, February 28, 2012 10:27 PM | Last reply by Lucas Stankiewicz - Wednesday, November 28, 2012 9:23 PM -
1 Votes
Convert std::map to IMap
Platform::Map<K, V> implements WFC::IMap<K, V> (actually IObservableMap) and is directly constructible from std::map<K, V> (both copy and move).Answered | 5 Replies | 3313 Views | Created by SALX - Tuesday, September 27, 2011 9:49 AM | Last reply by Stephan T. Lavavej - MSFT - Wednesday, September 28, 2011 7:24 PM -
3 Votes
Issue with std::unique_ptr in a map
This isn't __declspec(dllexport)'s fault, you get the same error if you do this: #include <map> #include <memory> class myclass { ...Answered | 10 Replies | 6864 Views | Created by Uralsib - Wednesday, September 9, 2015 4:36 PM | Last reply by Mike Danes - Thursday, September 10, 2015 11:22 AM -
0 Votes
Initializing static std::map
. :) I'm trying to initialize a static std::map like so (This is in the header but I've had luck initilizing statics here before even though my gut feeling says it ...Answered | 2 Replies | 1301 Views | Created by sbrothy - Thursday, January 17, 2019 12:40 PM | Last reply by Jack Zhang - AAA - Friday, January 18, 2019 1:44 AM -
0 Votes
Puzzled by std::map initializers combined with std::vector.
But FWIW, if I build your code (unchanged except for _tmain/_TCHAR) with G++ (MinGW32 4.6.2) using -std=c++0x I get these ...Answered | 2 Replies | 2738 Views | Created by Andrew7Webb - Tuesday, September 17, 2013 3:37 AM | Last reply by Andrew7Webb - Tuesday, September 17, 2013 11:50 AM -
1 Votes
Convert std::wstring to UCHAR*
#include "stdafx.h" #include <wchar.h> #include <iostream> #include <stdlib.h> #include <stdio.h> #define ...Answered | 6 Replies | 4234 Views | Created by its_me_here - Sunday, October 20, 2013 6:18 PM | Last reply by its_me_here - Wednesday, October 30, 2013 5:41 AM -
1 Votes
convert std::vector to c#
The equivalent of std::vector is System.Collections.Generic.List so List<Ray> rays = new List<Ray>(); Ray r; I'm not sure ...Answered | 1 Replies | 8030 Views | Created by nirmal.91 - Sunday, September 9, 2012 2:51 PM | Last reply by Mike Danes - Sunday, September 9, 2012 3:01 PM -
0 Votes
Synchronization issues with std::map
Also make sure you do not assign a different map to the iterator.Answered | 11 Replies | 1130 Views | Created by Jy_13 - Wednesday, May 4, 2016 12:46 PM | Last reply by Jy_13 - Thursday, May 19, 2016 7:02 AM -
1 Votes
Convert std::string to char[]
Your function would need to be more like: void stringConvertToChar(string const& str,char arr[], size_t arrSize) //To convert ...Answered | 5 Replies | 9639 Views | Created by astral-blade - Thursday, July 11, 2013 8:02 AM | Last reply by David Ching - Saturday, July 13, 2013 4:36 PM -
0 Votes
Convert std::string to TCHAR*
Hi, I am trying to convert std::string value to TCHAR*.Answered | 1 Replies | 9670 Views | Created by nikogamulin - Thursday, August 21, 2008 10:06 AM | Last reply by einaros - Thursday, August 21, 2008 10:15 AM -
3 Votes
How to convert CStringA to std::string?
It is declaring a function named ss1 which accepts an argument of CStringA named cs1 and returns std::string, which the compiler cannot convert to std::string.Answered | 9 Replies | 7715 Views | Created by Norman Diamond - Friday, July 31, 2009 2:30 AM | Last reply by Norman Diamond - Sunday, August 2, 2009 11:03 PM -
3 Votes
Converting System::String^ into std::string...
std::basic_string<char,std::char_traits<char>,std::allocator<char> >::assign(char* _Ptr) Line 930 C++ clrtest01.exe!Answered | 10 Replies | 6573 Views | Created by Povilas Sid - Tuesday, February 21, 2012 8:17 PM | Last reply by Povilas Sid - Tuesday, February 28, 2012 5:47 PM -
1 Votes
std::map find() occasionally crash in Release build
I think this is a specific issue on your code side but not a general problem with std::map.Answered | 6 Replies | 8106 Views | Created by Xander Harris - Wednesday, July 14, 2010 2:24 AM | Last reply by Yi Feng Li - Tuesday, August 3, 2010 3:14 AM -
18 Votes
Convert std::string to LPCWSTR (best way in c++)
Whereas with ANSI apps, you have to rewrite the entire project to convert it to unicode, with TCHAR apps, you just need to define UNICODE.Answered | 15 Replies | 175764 Views | Created by FabioDeSantis - Thursday, April 6, 2006 12:58 PM | Last reply by simonor - Thursday, February 11, 2010 7:17 PM -
1 Votes
convert std::wstring to unsigned short * in c++ ?
hobnobz wrote: anyone know how to convert std::wstring to unsigned short * ?Answered | 3 Replies | 3516 Views | Created by hobnobz - Tuesday, January 24, 2012 2:12 PM | Last reply by Igor Tandetnik - Tuesday, January 24, 2012 2:42 PM -
1 Votes
error C2664: 'std::basic_istringstream<_Elem,_Traits,_Alloc>::basic_istringstream(std::basic_istringstream<_Elem,_Traits,_Alloc> &&)' : cannot convert parameter 1 from 'std::string' to 'std::basic_istringstream<_Elem,_Traits,_Alloc> &&'_
On 4/23/2012 7:10 PM, MFC coder wrote: std::istringstream Runtime::read(const std::string&command) { ...Answered | 3 Replies | 2674 Views | Created by MFC coder - Monday, April 23, 2012 10:58 PM | Last reply by Igor Tandetnik - Monday, April 23, 2012 11:21 PM -
2 Votes
Convert std::istream to Com IStream
In some circumstances, you can create an IStream using CreateStreamOnHGlobal or SHMemCreateStream, then transfer all of the bytes from std::istream, then seek the pointer to the ...Answered | 4 Replies | 1650 Views | Created by utsav_popli - Friday, July 4, 2014 5:42 AM | Last reply by utsav_popli - Monday, July 14, 2014 9:33 PM -
0 Votes
Error C2664 : cannot convert argument 1 from 'std::string' to 'LPTVINSERTSTRUCTW'
Hi, I use the string "projectName" is used in the ifsteam class, and can not be converted to a wstring.Answered | 16 Replies | 10059 Views | Created by Daniel Dawson - Saturday, September 21, 2013 12:03 PM | Last reply by - Thursday, September 26, 2013 1:08 PM -
0 Votes
Copy-construction inside std::map::operator[]
You wouldn't tend to be adding lots of things to maps each frame.Answered | 8 Replies | 3824 Views | Created by Andrew McDonald - Wednesday, August 25, 2010 5:26 PM | Last reply by Andrew McDonald - Tuesday, August 31, 2010 10:07 AM -
1 Votes
Converting Datetime in String in map
The best place to do this is usually a Map and in a Scripting Functoid.Answered | 6 Replies | 1826 Views | Created by Nitin Surya - Tuesday, September 23, 2014 7:36 AM | Last reply by Pushpendra K Singh - Wednesday, September 24, 2014 5:11 PM - Items 1 to 20 of 429827 Next ›
No announcements