No announcements
Found 2978491 threads
-
0 Votes
CDialogEX vector of arrays -- CObject error trying to access private data
Array of objects).Answered | 3 Replies | 3900 Views | Created by Ctank02 - Wednesday, April 20, 2011 2:23 AM | Last reply by Ctank02 - Wednesday, April 20, 2011 1:46 PM -
0 Votes
error C2248: 'CObject::operator =' : cannot access private member declared in class
typedef std::vector<CString> StringArray; Unlike the MFC CStringArray, this StringArray class ...Answered | 2 Replies | 5902 Views | Created by Sateesh Villa - Saturday, June 9, 2012 11:21 AM | Last reply by davewilk - Saturday, June 9, 2012 5:17 PM -
4 Votes
CObject Copy constructor Error(C2248) in debug build.
On 3/13/2013 9:44 AM, Abhijeet Shetkar wrote: C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxtempl.h(262): error C2248: ...Answered | 11 Replies | 2767 Views | Created by Abhijeet Shetkar - Tuesday, March 12, 2013 6:10 AM | Last reply by Sérgio Loureiro - Monday, August 31, 2015 9:58 AM -
0 Votes
Getting error cannot access private member declared in class CObject when trying to serialize
For the second error try replacingAnswered | 2 Replies | 3091 Views | Created by hooor - Tuesday, December 4, 2012 7:11 PM | Last reply by Elegentin Xie - Wednesday, December 12, 2012 10:34 AM -
0 Votes
c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxcoll.h(590): error C2248: 'CObject::operator =' : cannot access private member declared in class 'CObject'
Try this: CTeamType& operator = (const CTeamType& rNew) { m_arrayTeamMembers.Copy( rNew.m_arrayTeamMembers ); m_arrayRow.Copy( m_arrayRow ...Answered | 4 Replies | 1941 Views | Created by GregaryB - Saturday, February 13, 2016 6:15 AM | Last reply by Hart Wang - Friday, February 19, 2016 7:18 AM -
0 Votes
Transfering a vector into an array with lowest line of codes
If you have a vector v that has some values and need to treat it as a native array, then try something like ...Answered | 12 Replies | 1478 Views | Created by salmasa150 - Monday, July 29, 2013 11:17 PM | Last reply by davewilk - Tuesday, July 30, 2013 8:19 PM -
0 Votes
Platform::Array to std::vector
Hello, // Construct a std::vector.Answered | 1 Replies | 1510 Views | Created by t-n-x - Monday, March 16, 2015 8:28 PM | Last reply by Herro wong - Tuesday, March 17, 2015 8:57 AM -
0 Votes
Error in overriding CObject's Serialize virtual function
class CAge : public CObject { DECLARE_SERIAL (CAge) protected: int m_Year; public: CAge () {} // Required!Answered | 1 Replies | 437 Views | Created by Jeff0803 - Monday, October 26, 2015 6:44 AM | Last reply by RLWA32 - Monday, October 26, 2015 11:47 AM -
0 Votes
I fail when trying to use the new (nothrow) syntax with CObject decendents
But for classes descended from CObject, I get a compile error.Answered | 7 Replies | 3692 Views | Created by rhfritz - Monday, June 11, 2012 6:54 PM | Last reply by rhfritz - Monday, June 18, 2012 11:43 PM -
0 Votes
C++/CX ComboBox ItemsSource - Vector & Arrays
If you are trying provide a Vector as a property to a class then you need to do as Xiaoliang suggested and expose the property as an IVector interface.Answered | 6 Replies | 3645 Views | Created by YLD_1 - Monday, September 23, 2013 3:41 AM | Last reply by Jim Young (Level6 Productions) - Friday, September 27, 2013 2:25 PM -
0 Votes
How to Create a Stack of Arrays?
Even better, you could make your master array a std::vector<tr1::shared_ptr<CAutoLines>>.Answered | 19 Replies | 4520 Views | Created by Software2007 - Saturday, June 13, 2009 5:35 AM | Last reply by Software2007 - Monday, June 15, 2009 4:08 PM -
0 Votes
Handling csv data as 2D vector - C++: from vector of string vector to vector of struct
Seriously I mean in Matlab I usually import my data as cell array, dataset array or matrix (depending on data types), so handling a 2-dim vector ...Answered | 4 Replies | 2299 Views | Created by itneophyte85 - Monday, November 9, 2015 3:55 PM | Last reply by itneophyte85 - Monday, November 9, 2015 9:10 PM -
0 Votes
CArray of vectors crashing when accessing the first vector in release mode
The MFC classes are possibly immune to this because they avoid accessing things through cached pointers.Answered | 8 Replies | 5542 Views | Created by Ana_Y - Tuesday, April 6, 2010 12:59 PM | Last reply by Ana_Y - Friday, April 9, 2010 9:08 PM -
0 Votes
Where is CObject?
After getting past a strange error, I then discovered that the installer wanted my Prerequisites disk.Answered | 5 Replies | 2123 Views | Created by CADMeister - Thursday, April 19, 2012 7:56 PM | Last reply by Pintu Shukla - Thursday, April 19, 2012 9:37 PM -
0 Votes
std::copy crashes copying vector to array
[code] unsigned char buffer[COUNT * sizeof(Data)]; Data* target = ...Answered | 1 Replies | 5054 Views | Created by TronT - Wednesday, September 1, 2010 1:45 AM | Last reply by Igor Tandetnik - Wednesday, September 1, 2010 2:05 AM -
0 Votes
Returning a Vector of Vectors from CLI Wrapper to C++
Hi David, I tried your method, but it was giving strange errors, so I thought copying the contents to a vector is much easier.Answered | 4 Replies | 862 Views | Created by Devendert - Monday, April 18, 2016 6:29 PM | Last reply by davewilk - Tuesday, April 19, 2016 9:54 PM -
1 Votes
how to access vector of structs in a struct?
> struct mystruct { > int num; > int num2; > }; > ...Answered | 1 Replies | 4078 Views | Created by ocms - Thursday, February 4, 2010 2:11 AM | Last reply by Igor Tandetnik - Thursday, February 4, 2010 2:25 AM -
0 Votes
Populate Vector from file and use vector content in different event handler
Since you're using C++/CLI you could use the array class - array<array<double>^>^ doublearray«_Superman_» Microsoft MVP (Visual C++)Answered | 7 Replies | 3787 Views | Created by SM_M - Sunday, August 29, 2010 3:50 PM | Last reply by «_Superman_» - Monday, September 6, 2010 4:21 AM -
0 Votes
vector resize generates System.OutOfMemoryException error
A 32-bit app only has access to 2GB of address space, by default.Answered | 7 Replies | 1968 Views | Created by Wave Rider - Wednesday, April 4, 2012 7:46 PM | Last reply by - Thursday, April 5, 2012 12:22 AM -
0 Votes
VC++ 2010 Compiler allows access to private class members
On 4/24/2013 3:35 AM, giusi di pietro wrote: I have a class derived by CObject in which the default constructor is declared as private.Answered | 2 Replies | 897 Views | Created by giusi di pietro - Wednesday, April 24, 2013 7:35 AM | Last reply by giusi di pietro - Monday, April 29, 2013 7:13 AM - Items 1 to 20 of 2978491 Next ›
No announcements