Click here to Skip to main content
16,010,673 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
it's true that std::vector is actually spec'd in such a way that running memset on it is perfectly legal, i don't argue that. and, i'm sure it was spec'd that way to specifically allow it to be used as a solid chunk of memory.

but to me, using memset is an abuse of the idea of a vector as an abstract container class. plus, there is an accepable STL/OOP friendly way to do what you're describing:

this will create a vector of 20 bool's all set to false.

std::vector<bool> m(20, false);


-c


To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses.
   /. #3848917

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 
GeneralRe: CreateWindow Pin
Ernest Laurentin18-Jul-02 10:01
Ernest Laurentin18-Jul-02 10:01 
GeneralRe: CreateWindow Pin
confalonieri18-Jul-02 23:45
confalonieri18-Jul-02 23:45 
GeneralMultiColumn Listbox Pin
RuiSantiago18-Jul-02 6:17
RuiSantiago18-Jul-02 6:17 
GeneralRe: MultiColumn Listbox Pin
Joaquín M López Muñoz18-Jul-02 7:49
Joaquín M López Muñoz18-Jul-02 7:49 
GeneralRe: MultiColumn Listbox Pin
RuiSantiago18-Jul-02 8:13
RuiSantiago18-Jul-02 8:13 

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.