Click here to Skip to main content
15,886,723 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Create AutoRun.Exe Without .NET FrameWork? Pin
David Crow28-Jan-05 7:39
David Crow28-Jan-05 7:39 
Questionhow to call printer under fullscreen Pin
stanleyhxywork28-Jan-05 4:51
stanleyhxywork28-Jan-05 4:51 
AnswerRe: how to call printer under fullscreen Pin
David Crow28-Jan-05 5:24
David Crow28-Jan-05 5:24 
GeneralRe: how to call printer under fullscreen Pin
Anonymous30-Jan-05 0:04
Anonymous30-Jan-05 0:04 
GeneralAudio Encoder/Decoder Pin
aRtsZ28-Jan-05 4:23
aRtsZ28-Jan-05 4:23 
GeneralConst static template member in class Pin
Anonymous28-Jan-05 3:34
Anonymous28-Jan-05 3:34 
GeneralRe: Const static template member in class Pin
Chris Losinger28-Jan-05 4:54
professionalChris Losinger28-Jan-05 4:54 
GeneralRe: Const static template member in class Pin
Anonymous29-Jan-05 1:48
Anonymous29-Jan-05 1:48 
Thanks for your answer. Two more questions...:
1) I'm trying to define a non static valarray member, stores 15 elements of type double, but without success. All help i found defines valarrays within main(). I tried the same definitions for my class but dose not work. Actually i tried:
class myClass
{
private:
std::valarray<double> m_array;
}

With this the compiler is ok, but when i tryied to asing values to m_array with [] operator, program crashes (actually this is logical because the m_array is of size 1, i think...).

class myClass
{
private:
std::valarray<double> m_array(15);
}

VC++ 2003 comliler generates the following error :
error C2059: syntax error : 'constant'


2) The valarray allocates memory dynamically on the heap or statically? So if i want a huge valarray (say 10000 elements) is this ok:
std::valarray<double> hugeArray(10000);
or i have to allocate the valarray dynamically using a pointer?
Thanks again.
GeneralRe: Const static template member in class Pin
Chris Losinger29-Jan-05 4:09
professionalChris Losinger29-Jan-05 4:09 
GeneralRe: Const static template member in class Pin
Anonymous29-Jan-05 7:46
Anonymous29-Jan-05 7:46 
GeneralCFileDialog problem Pin
Aamir Butt28-Jan-05 3:29
Aamir Butt28-Jan-05 3:29 
GeneralRe: CFileDialog problem Pin
Blake Miller28-Jan-05 3:58
Blake Miller28-Jan-05 3:58 
GeneralRe: CFileDialog problem Pin
David Crow28-Jan-05 4:10
David Crow28-Jan-05 4:10 
GeneralRe: CFileDialog problem Pin
Aamir Butt28-Jan-05 4:33
Aamir Butt28-Jan-05 4:33 
GeneralRe: CFileDialog problem Pin
David Crow28-Jan-05 5:21
David Crow28-Jan-05 5:21 
GeneralRe: CFileDialog problem Pin
Aamir Butt30-Jan-05 18:24
Aamir Butt30-Jan-05 18:24 
Generalcall for help Pin
yanyu8128-Jan-05 3:25
yanyu8128-Jan-05 3:25 
GeneralCall For Help Pin
yanyu8128-Jan-05 3:21
yanyu8128-Jan-05 3:21 
GeneralRe: Call For Help Pin
David Crow28-Jan-05 4:04
David Crow28-Jan-05 4:04 
GeneralRe: Call For Help Pin
yanyu8128-Jan-05 14:06
yanyu8128-Jan-05 14:06 
GeneralRe: Call For Help Pin
David Crow28-Jan-05 15:04
David Crow28-Jan-05 15:04 
GeneralRe: Call For Help Pin
yanyu8130-Jan-05 4:27
yanyu8130-Jan-05 4:27 
GeneralRe: Call For Help Pin
David Crow31-Jan-05 2:24
David Crow31-Jan-05 2:24 
GeneralDecryption Pin
gecool28-Jan-05 2:55
gecool28-Jan-05 2:55 
GeneralUnicode CString init from &amp;#XXXX;&amp;#YYYY; representation Pin
lob28-Jan-05 1:17
lob28-Jan-05 1:17 

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.