Hi Bruce,
I know almost nothing about C++ but is your function declaration missing an open parenthesis?(or forum code paste maybe?)
void UpdatePosition(DgnButtonEventCR ev)
Its probably highly unlikely that its causing your problem but I just thought I'd mention it in case it might help.