Click here to Skip to main content
15,909,466 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalstd::string and reserve question ... Pin
Maximilien18-Jun-04 5:24
Maximilien18-Jun-04 5:24 
GeneralRe: std::string and reserve question ... Pin
palbano18-Jun-04 6:00
palbano18-Jun-04 6:00 
GeneralRe: std::string and reserve question ... Pin
Maximilien18-Jun-04 8:24
Maximilien18-Jun-04 8:24 
GeneralRe: std::string and reserve question ... Pin
James R. Twine18-Jun-04 11:20
James R. Twine18-Jun-04 11:20 
GeneralExperts help with Threads with Notifications Pin
18-Jun-04 4:50
suss18-Jun-04 4:50 
GeneralRe: Experts help with Threads with Notifications Pin
Blake Miller18-Jun-04 5:47
Blake Miller18-Jun-04 5:47 
GeneralRe: Experts help with Threads with Notifications Pin
Member 115017621-Jun-04 1:29
Member 115017621-Jun-04 1:29 
QuestionHow can I create GraphicsPath vector and its iterator ? Pin
Gem18-Jun-04 4:41
Gem18-Jun-04 4:41 
Hello,
I would like to create a GDI+ GraphicsPath vector by

std::vector<graphicspath> m_Paths;

and its iterator

std::vector<graphicspath>::iterator pathIter = m_Paths.begin() + m_iPath;

in my application view class in header and cpp file. But the compliler gives this error, What can be the reason for this error ? Thanks for your interest.

Compiling...
ImageMarkerView.cpp
d:\Programs\Microsoft Visual Studio .NET 2003\Vc7\include\vector(810) : error C2248: 'Gdiplus::GraphicsPath::GraphicsPath' : cannot access protected member declared in class 'Gdiplus::GraphicsPath'
d:\Programs\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\GdiPlusPath.h(862) : see declaration of 'Gdiplus::GraphicsPath::GraphicsPath'
d:\Programs\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\GdiPlusPath.h(18) : see declaration of 'Gdiplus::GraphicsPath'
d:\Programs\Microsoft Visual Studio .NET 2003\Vc7\include\vector(809) : while compiling class-template member function 'void std::vector<_Ty>::_Insert_n(std::vector<_Ty>::iterator,std::vector<_Ty>::size_type,const _Ty &)'
with
[
_Ty=Gdiplus::GraphicsPath
]
e:\Work\Cpp\ImageMarker\ImageMarkerView.h(75) : see reference to class template instantiation 'std::vector<_Ty>' being compiled
with
[
_Ty=Gdiplus::GraphicsPath
]
Generating Code...
Compiling...
ImageMarker.cpp
Generating Code...

Build log was saved at "file://e:\Work\Cpp\ImageMarker\Debug\BuildLog.htm"
ImageMarker - 1 error(s), 0 warning(s)


---------------------- Done ----------------------

Build: 0 succeeded, 1 failed, 0 skipped
AnswerRe: How can I create GraphicsPath vector and its iterator ? Pin
Gem18-Jun-04 4:45
Gem18-Jun-04 4:45 
GeneralMAPI and outlook Pin
kanetheterrible118-Jun-04 4:35
kanetheterrible118-Jun-04 4:35 
GeneralRe: MAPI and outlook Pin
Michael P Butler18-Jun-04 4:52
Michael P Butler18-Jun-04 4:52 
GeneralRe: MAPI and outlook Pin
kanetheterrible118-Jun-04 6:39
kanetheterrible118-Jun-04 6:39 
GeneralDoModal and window position Pin
Anonymous18-Jun-04 4:22
Anonymous18-Jun-04 4:22 
GeneralRe: DoModal and window position Pin
jmkhael18-Jun-04 4:25
jmkhael18-Jun-04 4:25 
GeneralPlease help - Fast Table Format Pin
swerajan18-Jun-04 3:34
swerajan18-Jun-04 3:34 
GeneralRe: Please help - Fast Table Format Pin
zon_cpp19-Sep-10 20:30
zon_cpp19-Sep-10 20:30 
GeneralCreating variable window...Help! Pin
irshad_bukhari18-Jun-04 3:23
irshad_bukhari18-Jun-04 3:23 
GeneralRe: Creating variable window...Help! Pin
Antony M Kancidrowski18-Jun-04 4:06
Antony M Kancidrowski18-Jun-04 4:06 
GeneralUnknown size array Pin
mufasa218-Jun-04 3:19
mufasa218-Jun-04 3:19 
GeneralRe: Unknown size array Pin
wb18-Jun-04 3:48
wb18-Jun-04 3:48 
GeneralRe: Unknown size array Pin
mufasa218-Jun-04 3:58
mufasa218-Jun-04 3:58 
GeneralRe: Unknown size array Pin
jmkhael18-Jun-04 4:03
jmkhael18-Jun-04 4:03 
GeneralRe: Unknown size array Pin
Member 111482118-Jun-04 8:07
Member 111482118-Jun-04 8:07 
GeneralRe: Unknown size array Pin
James R. Twine18-Jun-04 11:28
James R. Twine18-Jun-04 11:28 
GeneralRe: Unknown size array Pin
Member 111482118-Jun-04 15:42
Member 111482118-Jun-04 15:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.