Click here to Skip to main content
15,892,537 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralGoing right to a subdialog Pin
Jason Hooper18-Jul-02 9:37
Jason Hooper18-Jul-02 9:37 
GeneralRe: Going right to a subdialog Pin
Joaquín M López Muñoz18-Jul-02 9:58
Joaquín M López Muñoz18-Jul-02 9:58 
GeneralRe: Going right to a subdialog Pin
Jason Hooper18-Jul-02 11:14
Jason Hooper18-Jul-02 11:14 
Generalheight of title bar of Cdialog Pin
ns18-Jul-02 9:18
ns18-Jul-02 9:18 
GeneralRe: height of title bar of Cdialog Pin
Joaquín M López Muñoz18-Jul-02 9:21
Joaquín M López Muñoz18-Jul-02 9:21 
GeneralRe: height of title bar of Cdialog Pin
ns18-Jul-02 9:35
ns18-Jul-02 9:35 
GeneralRe: height of title bar of Cdialog Pin
Joaquín M López Muñoz18-Jul-02 9:48
Joaquín M López Muñoz18-Jul-02 9:48 
Generalmemset equivilent for std::vector Pin
moredip18-Jul-02 7:38
moredip18-Jul-02 7:38 
Howdy everyone,

Quick STL question for y'all...

I'm having lots of fun Poke tongue | ;-P converting some old code from C arrays to std::vectors.

I've got a bool *m_abMatched, and at the start of a function the array must be initialised to false. At the moment this is done with memset( m_abMatched, false, m_cbMatched*sizeof(bool) ).

If I replaced the array with a std::vector<bool> how would I set all the elements of the vector to false? Is m_abMatched::assign( m_abMatched.size(), false ) the correct approach?

TIA,

Pete
GeneralRe: memset equivilent for std::vector Pin
Joaquín M López Muñoz18-Jul-02 7:54
Joaquín M López Muñoz18-Jul-02 7:54 
GeneralRe: memset equivilent for std::vector Pin
moredip18-Jul-02 7:56
moredip18-Jul-02 7:56 
GeneralRe: memset equivilent for std::vector Pin
Chris Losinger18-Jul-02 8:09
professionalChris Losinger18-Jul-02 8:09 
GeneralRe: memset equivilent for std::vector Pin
moredip18-Jul-02 8:12
moredip18-Jul-02 8:12 
GeneralRe: memset equivilent for std::vector Pin
Chris Losinger18-Jul-02 8:21
professionalChris Losinger18-Jul-02 8:21 
GeneralRe: memset equivilent for std::vector Pin
moredip18-Jul-02 8:24
moredip18-Jul-02 8:24 
GeneralRe: memset equivilent for std::vector Pin
Chris Losinger18-Jul-02 8:29
professionalChris Losinger18-Jul-02 8:29 
GeneralRe: memset equivilent for std::vector Pin
moredip18-Jul-02 8:33
moredip18-Jul-02 8:33 
GeneralRe: memset equivilent for std::vector Pin
Joaquín M López Muñoz18-Jul-02 8:22
Joaquín M López Muñoz18-Jul-02 8:22 
GeneralRe: memset equivilent for std::vector Pin
Chris Losinger18-Jul-02 8:24
professionalChris Losinger18-Jul-02 8:24 
GeneralRe: memset equivilent for std::vector Pin
Joaquín M López Muñoz18-Jul-02 8:28
Joaquín M López Muñoz18-Jul-02 8:28 
Generalcreating a new document template Pin
NickWhoForgotHisPasswordToLogIn18-Jul-02 6:45
sussNickWhoForgotHisPasswordToLogIn18-Jul-02 6:45 
GeneralRe: creating a new document template Pin
Jon Sagara18-Jul-02 8:00
Jon Sagara18-Jul-02 8:00 
GeneralRe: creating a new document template Pin
Joaquín M López Muñoz18-Jul-02 8:10
Joaquín M López Muñoz18-Jul-02 8:10 
GeneralCreateWindow Pin
confalonieri18-Jul-02 6:35
confalonieri18-Jul-02 6:35 
GeneralRe: CreateWindow Pin
Joaquín M López Muñoz18-Jul-02 7:34
Joaquín M López Muñoz18-Jul-02 7:34 
GeneralRe: CreateWindow Pin
confalonieri18-Jul-02 22:33
confalonieri18-Jul-02 22:33 

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.