Click here to Skip to main content
15,926,062 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralOnChar() in Dialog Pin
dart1318-Apr-04 8:02
dart1318-Apr-04 8:02 
GeneralRe: OnChar() in Dialog Pin
Christian Graus18-Apr-04 11:20
protectorChristian Graus18-Apr-04 11:20 
GeneralRe: OnChar() in Dialog Pin
dart1318-Apr-04 23:27
dart1318-Apr-04 23:27 
GeneralRe: OnChar() in Dialog Pin
Christian Graus19-Apr-04 10:54
protectorChristian Graus19-Apr-04 10:54 
GeneralRe: OnChar() in Dialog Pin
dart1319-Apr-04 11:34
dart1319-Apr-04 11:34 
GeneralRe: OnChar() in Dialog Pin
Christian Graus19-Apr-04 11:54
protectorChristian Graus19-Apr-04 11:54 
GeneralRe: OnChar() in Dialog Pin
dart1319-Apr-04 12:02
dart1319-Apr-04 12:02 
Generalstange va_start() behavior Pin
toxcct18-Apr-04 6:10
toxcct18-Apr-04 6:10 
hi everybody,

i've got a strange error while trying to use va_start() macro.

i wrote the following :
va_list ap;
<font style="color:green;">// the following line is failing...</font>
va_start(ap, 0);     <font style="color:green;">/* also tried with argument 2 set at 1. */</font>
and the compiler gave me an error C2101: '&' on constant

when i looked at the MSDN, the example is that one :
int average( int first, ... )
{
    va_list marker;
    va_start( marker, first );     <font style="color:green;">/* Initialize variable arguments. */</font>
    <font style="color:green;">//...</font>
}

it seems to be similar with my code, so i don't understand where i fail...

can anyone help please ?



TOXCCT >>> GEII power


GeneralRe: stange va_start() behavior Pin
Tim Smith18-Apr-04 6:19
Tim Smith18-Apr-04 6:19 
GeneralRe: strange va_start() behavior Pin
toxcct18-Apr-04 6:25
toxcct18-Apr-04 6:25 
GeneralRe: strange va_start() behavior Pin
Nitzan Shaked18-Apr-04 6:58
Nitzan Shaked18-Apr-04 6:58 
GeneralRe: strange va_start() behavior Pin
toxcct18-Apr-04 7:13
toxcct18-Apr-04 7:13 
GeneralRe: strange va_start() behavior Pin
jmkhael18-Apr-04 22:23
jmkhael18-Apr-04 22:23 
GeneralRe: strange va_start() behavior Pin
toxcct18-Apr-04 22:31
toxcct18-Apr-04 22:31 
QuestionHow to Subclassing an ActivX to monitor it's messge [no events]? Pin
Behzad Ebrahimi18-Apr-04 5:47
Behzad Ebrahimi18-Apr-04 5:47 
GeneralEdit the Enum Section of the registry Pin
tareqsiraj18-Apr-04 3:43
tareqsiraj18-Apr-04 3:43 
GeneralRe: Edit the Enum Section of the registry Pin
Antti Keskinen18-Apr-04 6:26
Antti Keskinen18-Apr-04 6:26 
GeneralRe: Edit the Enum Section of the registry Pin
tareqsiraj20-Apr-04 0:09
tareqsiraj20-Apr-04 0:09 
GeneralRe: Edit the Enum Section of the registry Pin
tareqsiraj21-Apr-04 5:39
tareqsiraj21-Apr-04 5:39 
Generalerror C2440 Pin
ketil b18-Apr-04 3:36
ketil b18-Apr-04 3:36 
GeneralRe: error C2440 Pin
Michael Dunn18-Apr-04 3:58
sitebuilderMichael Dunn18-Apr-04 3:58 
GeneralRe: error C2440 Pin
ketil b18-Apr-04 4:17
ketil b18-Apr-04 4:17 
GeneralGetting the coordinate of a child window Pin
Alton Williams18-Apr-04 3:15
Alton Williams18-Apr-04 3:15 
GeneralRe: Getting the coordinate of a child window Pin
ohadp18-Apr-04 4:53
ohadp18-Apr-04 4:53 
Generalurgent help required about LAP link Pin
amir_iiui17-Apr-04 22:21
amir_iiui17-Apr-04 22:21 

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.