Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CMyView post a message for CMyApp to process Pin
Nelek29-Nov-07 1:37
protectorNelek29-Nov-07 1:37 
GeneralRe: CMyView post a message for CMyApp to process Pin
followait29-Nov-07 3:17
followait29-Nov-07 3:17 
Questionincluding vector header Pin
Schehaider_Aymen29-Nov-07 1:05
Schehaider_Aymen29-Nov-07 1:05 
QuestionRe: including vector header Pin
Maximilien29-Nov-07 1:12
Maximilien29-Nov-07 1:12 
AnswerRe: including vector header Pin
Schehaider_Aymen29-Nov-07 1:16
Schehaider_Aymen29-Nov-07 1:16 
GeneralRe: including vector header Pin
toxcct29-Nov-07 1:27
toxcct29-Nov-07 1:27 
GeneralRe: including vector header Pin
Schehaider_Aymen29-Nov-07 1:33
Schehaider_Aymen29-Nov-07 1:33 
GeneralRe: including vector header [modified] Pin
toxcct29-Nov-07 1:40
toxcct29-Nov-07 1:40 
Blood_HaZaRd wrote:
i changed it to extern std::vector < int > VectIter; and i had 12 Errors.
So i think that i will keep my first declaration.


you shouldn't think so. firstly because you're not really understanding all that you're doing, but also because the number of errors is not relevant.

sometimes, you can have the compiler complaining about more than 50 errors, and just because you forgot a ";" in a header included in many files, you fixed all in a flashlight.

why don't you post a relevant piece of code, and tell us what are the compiler errors returned ?
(no matter if your Visual Studio is speaking french, I'm french, so i still can help).
btw, be careful when posting code involving templates, because the < > characters are understood by the browser as html tags...


-- modified at 7:45 Thursday 29th November, 2007
so, for your compilations errors, here is what i suggest you to do:
in stdafx.h, only add this:
#include <vector>
extern std::vector<int> vec;

then, in every place you need the vector class, prefer using std::vector<int>


GeneralRe: including vector header Pin
Nelek29-Nov-07 23:40
protectorNelek29-Nov-07 23:40 
GeneralRe: including vector header Pin
Jijo.Raj29-Nov-07 1:32
Jijo.Raj29-Nov-07 1:32 
GeneralRe: including vector header Pin
toxcct29-Nov-07 1:35
toxcct29-Nov-07 1:35 
GeneralRe: including vector header Pin
Schehaider_Aymen29-Nov-07 1:39
Schehaider_Aymen29-Nov-07 1:39 
GeneralRe: including vector header Pin
toxcct29-Nov-07 1:43
toxcct29-Nov-07 1:43 
GeneralRe: including vector header Pin
Schehaider_Aymen29-Nov-07 1:36
Schehaider_Aymen29-Nov-07 1:36 
GeneralRe: including vector header Pin
toxcct29-Nov-07 1:44
toxcct29-Nov-07 1:44 
GeneralRe: including vector header Pin
Schehaider_Aymen29-Nov-07 1:49
Schehaider_Aymen29-Nov-07 1:49 
Questionconvert from 'wchar_t *' to 'LPCSTR' Pin
neha.agarwal2729-Nov-07 0:34
neha.agarwal2729-Nov-07 0:34 
QuestionWhy do you need it? Pin
CPallini29-Nov-07 0:56
mveCPallini29-Nov-07 0:56 
AnswerRe: convert from 'wchar_t *' to 'LPCSTR' Pin
David Crow29-Nov-07 3:26
David Crow29-Nov-07 3:26 
QuestionISAPI redirection filter in MFC Pin
Jhony george29-Nov-07 0:31
Jhony george29-Nov-07 0:31 
Questionconvert bmp to pdf Pin
keyto29-Nov-07 0:19
keyto29-Nov-07 0:19 
AnswerRe: convert bmp to pdf Pin
Nelek29-Nov-07 0:28
protectorNelek29-Nov-07 0:28 
GeneralRe: convert bmp to pdf Pin
keyto29-Nov-07 0:52
keyto29-Nov-07 0:52 
GeneralRe: convert bmp to pdf Pin
Nelek29-Nov-07 1:33
protectorNelek29-Nov-07 1:33 
QuestionRinjdael Algorithm Pin
nimsrav29-Nov-07 0:11
nimsrav29-Nov-07 0:11 

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.