Thank you Timovjl,
Unfortunately, this does not solve the problem. My impression also was what you tell.
<math.h> is included and coredll.lib is in the link list (together with aygshell.lib, corelibc.lib, and commctrl.lib).
For diagnostic purposes I have modified the code like follows:
......
......
Newpos.pos_lat = 57.82;
SetDlgItemText( hwndDlg, GGAbox, L"......Latitud......");
Newpos.lat_corr = cos( Newpos.pos_lat );
SetDlgItemText( hwndDlg, GGAbox, L"......Lat corr......");
Newpos.pos_long = 12.46;
SetDlgItemText( hwndDlg, GGAbox, L"......Long......");
Newpos.alt = 516;
SetDlgItemText( hwndDlg, GGAbox, L"......New pos......");
......
......
The last message I read on the display is ......Latitud......
Cheers,
Allan