Click here to Skip to main content
15,916,091 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: PostThreadMessage Pin
Rama Krishna Vavilala13-Jun-02 14:45
Rama Krishna Vavilala13-Jun-02 14:45 
GeneralRe: PostThreadMessage Pin
wilche13-Jun-02 16:36
wilche13-Jun-02 16:36 
Generallink error Pin
13-Jun-02 12:44
suss13-Jun-02 12:44 
GeneralRe: link error Pin
Rama Krishna Vavilala13-Jun-02 12:52
Rama Krishna Vavilala13-Jun-02 12:52 
GeneralRe: link error Pin
13-Jun-02 12:57
suss13-Jun-02 12:57 
General10x Pin
13-Jun-02 13:00
suss13-Jun-02 13:00 
GeneralOpen files by double clicking Pin
Sun666613-Jun-02 10:48
Sun666613-Jun-02 10:48 
GeneralSTL valarray usage Pin
David Leikis13-Jun-02 10:23
David Leikis13-Jun-02 10:23 
I am attempting to use the valarray STL in an MFC app, but I get a compiler error immediately from within the valarray include. I am copying the code sample provided on MSDN at the following location:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcstdlib/html/vclrf_valarray_pow.asp

In particular, the compiler states that "there are not enough parameters in the Min/Max macros"; with just the include file, no code at all! So, MFC can't even build the include!

I am trying to build an RMS average function for a number of points and it would be great if I could use the speed optimization built into the valarray.

If I build the example code from above within a console app, it works well without any errors and it functions also....

Is there something within MFC that is predefining these macros that interferes with the valarray include?

Can this be done as a library function so that I could reference the class that I am attempting to build?



Thanks in advance for any help,
Dave LeikisConfused | :confused:
GeneralRe: STL valarray usage Pin
Joaquín M López Muñoz13-Jun-02 12:20
Joaquín M López Muñoz13-Jun-02 12:20 
QuestionHow do i create a dialog from a resource file where the parent window can't be used untill the dialog has been closed? Pin
redeemer13-Jun-02 9:20
redeemer13-Jun-02 9:20 
AnswerRe: How do i create a dialog from a resource file where the parent window can't be used untill the dialog has been closed? Ans: you can set the parent window as parent to the dialog or disable te window and enalbe it when the dialog is closed Pin
loket13-Jun-02 9:43
loket13-Jun-02 9:43 
GeneralRe: How do i create a dialog from a resource file where the parent window can't be used untill the dialog has been closed? Ans: you can set the parent window as parent to the dialog or disable te window and enalbe it when the dialog is closed Pin
redeemer13-Jun-02 9:39
redeemer13-Jun-02 9:39 
General<b></b> Pin
Rama Krishna Vavilala13-Jun-02 10:10
Rama Krishna Vavilala13-Jun-02 10:10 
GeneralRe Pin
Marc Richarme13-Jun-02 13:13
Marc Richarme13-Jun-02 13:13 
AnswerRe: How do i create a dialog from a resource file where the parent window can't be used untill the dialog has been closed? Pin
Tim Smith13-Jun-02 9:43
Tim Smith13-Jun-02 9:43 
GeneralRe: How do i create a dialog from a resource file where the parent window can't be used untill the dialog has been closed? Pin
redeemer13-Jun-02 10:06
redeemer13-Jun-02 10:06 
GeneralPassing an object from VB to VC++ ActiveX control Pin
13-Jun-02 8:36
suss13-Jun-02 8:36 
GeneralRe: Passing an object from VB to VC++ ActiveX control Pin
13-Jun-02 9:20
suss13-Jun-02 9:20 
GeneralDeleting STL list elements Pin
moredip13-Jun-02 8:38
moredip13-Jun-02 8:38 
GeneralRe: Deleting STL list elements Pin
moredip13-Jun-02 9:06
moredip13-Jun-02 9:06 
GeneralRe: Deleting STL list elements Pin
Oz Ben Eliezer13-Jun-02 9:09
Oz Ben Eliezer13-Jun-02 9:09 
GeneralRe: Deleting STL list elements Pin
moredip13-Jun-02 9:18
moredip13-Jun-02 9:18 
GeneralRe: Deleting STL list elements Pin
jbarton13-Jun-02 10:20
jbarton13-Jun-02 10:20 
GeneralRe: Deleting STL list elements Pin
moredip13-Jun-02 10:19
moredip13-Jun-02 10:19 
GeneralRe: Deleting STL list elements Pin
jbarton13-Jun-02 10:34
jbarton13-Jun-02 10:34 

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.