Error C2248 Msdn
Contents |
resources Windows Server 2012 resources Programs MSDN subscriptions Overview Benefits Administrators Students Microsoft Imagine Microsoft Student Partners ISV Startups TechRewards Events Community Magazine Forums Blogs Channel 9 error c2248 cannot access private member declared in class Documentation APIs and reference Dev centers Retired content Samples We’re sorry. error c2248 cannot access protected member The content you requested has been removed. You’ll be auto redirected in 1 second. C/C++ Building Reference C/C++ error c2248 cannot access private member Build Errors Compiler Errors C2200 through C2299 Compiler Errors C2200 through C2299 Compiler Error C2248 Compiler Error C2248 Compiler Error C2248 Compiler Error C2200 Compiler Error C2201 Compiler
Cannot Access Private Member Declared In Class C++
Error C2203 Compiler Error C2204 Compiler Error C2205 Compiler Error C2206 Compiler Error C2207 Compiler Error C2208 Compiler Error C2212 Compiler Error C2213 Compiler Error C2216 Compiler Error C2217 Compiler Error C2218 Compiler Error C2219 Compiler Error C2220 Compiler Error C2222 Compiler Error C2223 Compiler Error C2224 Compiler Error C2226 Compiler Error C2227 Compiler Error C2228 Compiler Error kb243351 C2229 Compiler Error C2231 Compiler Error C2232 Compiler Error C2233 Compiler Error C2234 Compiler Error C2236 Compiler Error C2238 Compiler Error C2241 Compiler Error C2242 Compiler Error C2243 Compiler Error C2244 Compiler Error C2245 Compiler Error C2246 Compiler Error C2247 Compiler Error C2248 Compiler Error C2249 Compiler Error C2250 Compiler Error C2251 Compiler Error C2252 Compiler Error C2253 Compiler Error C2254 Compiler Error C2255 Compiler Error C2256 Compiler Error C2258 Compiler Error C2259 Compiler Error C2261 Compiler Error C2262 Compiler Error C2264 Compiler Error C2266 Compiler Error C2267 Compiler Error C2268 Compiler Error C2270 Compiler Error C2271 Compiler Error C2272 Compiler Error C2273 Compiler Error C2274 Compiler Error C2275 Compiler Error C2276 Compiler Error C2277 Compiler Error C2279 Compiler Error C2283 Compiler Error C2285 Compiler Error C2286 Compiler Error C2287 Compiler Error C2289 Compiler Error C2290 Compiler Error C2292 Compiler Error C2293 Compiler Error C2295 Compiler Error C2296 Compiler Error C2297 Compiler Error C2298 Compiler Error C2299 TOC Collapse the table of content Expand the table of content This documentation is archive
resources Windows Server 2012 resources Programs MSDN subscriptions Overview Benefits Administrators Students Microsoft Imagine Microsoft Student Partners ISV Startups TechRewards Events cannot access private member declared in class 'cobject' Community Magazine Forums Blogs Channel 9 Documentation APIs and reference Dev
Cobject Cobject Cannot Access Private Member Declared In Class Cobject
centers Retired content Samples We’re sorry. The content you requested has been removed. You’ll be auto
Friend Class
redirected in 1 second. Visual C++ Programmer's Guide Build Errors Compiler Errors C2200 through C2299 Compiler Errors C2200 through C2299 Compiler Error C2248 Compiler Error C2248 https://msdn.microsoft.com/en-us/library/tsbce2bh.aspx Compiler Error C2248 Compiler Error C2200 Compiler Error C2201 Compiler Error C2202 Compiler Error C2203 Compiler Error C2204 Compiler Error C2205 Compiler Error C2206 Compiler Error C2207 Compiler Error C2208 Compiler Error C2212 Compiler Error C2213 Compiler Error C2217 Compiler Error C2218 Compiler Error C2219 Compiler Error C2220 Compiler Error C2221 Compiler https://msdn.microsoft.com/en-us/library/aa262614(v=vs.60).aspx Error C2222 Compiler Error C2223 Compiler Error C2224 Compiler Error C2226 Compiler Error C2227 Compiler Error C2228 Compiler Error C2229 Compiler Error C2230 Compiler Error C2231 Compiler Error C2232 Compiler Error C2233 Compiler Error C2234 Compiler Error C2235 Compiler Error C2236 Compiler Error C2238 Compiler Error C2239 Compiler Error C2240 Compiler Error C2241 Compiler Error C2242 Compiler Error C2243 Compiler Error C2244 Compiler Error C2245 Compiler Error C2246 Compiler Error C2247 Compiler Error C2248 Compiler Error C2249 Compiler Error C2250 Compiler Error C2251 Compiler Error C2252 Compiler Error C2253 Compiler Error C2254 Compiler Error C2255 Compiler Error C2256 Compiler Error C2258 Compiler Error C2259 Compiler Error C2260 Compiler Error C2261 Compiler Error C2262 Compiler Error C2264 Compiler Error C2265 Compiler Error C2266 Compiler Error C2267 Compiler Error C2268 Compiler Error C2270 Compiler Error C2271 Compiler Error C2272 Compiler Error C2273 Compiler Error C2274 Compiler Error C2275 Compiler Error C2276 Compiler Error C2277 Compiler Error C2278 Co
Tips/Tricks Top Articles Beginner Articles Technical Blogs Posting/Update Guidelines Article Help Forum Article Competition Submit an article or tip Post your Blog quick answersQ&A Ask a Question View Unanswered Questions View http://www.codeproject.com/Questions/674912/error-C-CObject-CObject-cannot-access-private All Questions... C# questions Linux questions ASP.NET questions SQL questions VB.NET questions discussionsforums All Message Boards... Application Lifecycle> Running a Business Sales / Marketing Collaboration / Beta Testing Work Issues Design and Architecture ASP.NET JavaScript C / C++ / MFC> ATL / WTL / STL Managed C++/CLI C# Free Tools Objective-C and Swift Database Hardware & Devices> System Admin Hosting and Servers Java .NET cannot access Framework Android iOS Mobile SharePoint Silverlight / WPF Visual Basic Web Development Site Bugs / Suggestions Spam and Abuse Watch features Competitions News The Insider Newsletter The Daily Build Newsletter Newsletter archive Surveys Product Showcase Research Library CodeProject Stuff communitylounge Who's Who Most Valuable Professionals The Lounge The Insider News The Weird & The Wonderful The Soapbox Press Releases Non-English Language > General Indian cannot access private Topics General Chinese Topics help What is 'CodeProject'? General FAQ Ask a Question Bugs and Suggestions Article Help Forum Site Map Advertise with us About our Advertising Employment Opportunities About Us Ask a Question All Questions All Unanswered FAQ error C2248: 'CObject::CObject' : cannot access private member declared in class 'CObject' Rate this: Please Sign up or sign in to vote. See more: MFC I have problem when creating the CArray of the object. On compiling the code i get following error. >c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxwin.h(1986):error C2248: 'CObject::CObject' : cannot access private member declared in class 'CObject' CArray< CStaticEx, CStaticEx> m_objStaticExArr; m_objStaticExArr.SetSize(nNumOfCamAttch); int nXaxis,nYaxis; nXaxis = 0; nYaxis = 0 ; //CStaticEx objStaticEx; for(int i=0; i < nNumOfCamAttch ; i++){ CRect rect(nXaxis + X_PADDING, nYaxis + Y_PADDING , nXaxis + WIDTH + X_PADDING , HEIGHT + Y_PADDING); nXaxis = X_PADDING + WIDTH + nXaxis ; m_objStaticExArr.Add(CStaticEx(rect, this)); } What may be the problem in the above code. Please let me know. Thanks in advance. Posted 27-Oct-13 21:36pm Mayur S7789594 Add a Solution Comments Richard MacCutchan 28-Oct-13 5:09am Where is the definition of CStaticEx? 1 solution Rate t