Создание Эльфов : Эльфостроение : Форум | 
| Страница 52 из 211: « 1 ... 48 49 50 51 [52] 53 54 55 56 ... 211 » | 
 | 
06.08.08, 13:13 | 
| 
 With the current Lib_Clara.h from SVN, most sources won't compile anymore.  BcfgEdit: Код: main.cpp  Error[Pe167]: argument of type "int *" is incompatible with parameter of type "wchar_t *" E:\\Embedded Workbench\\BcfgEdit\\main.cpp 903 Error[Pe167]: argument of type "int *" is incompatible with parameter of type "wchar_t *" E:\\Embedded Workbench\\BcfgEdit\\main.cpp 905 Done. 2 error(s), 0 warning(s) BookManager: Код: main.c  Error[Pe167]: argument of type "u16 *" is incompatible with parameter of type "wchar_t *" E:\\Embedded Workbench\\BookManager\\main.c 135 Error[Pe167]: argument of type "int *" is incompatible with parameter of type "wchar_t *" E:\\Embedded Workbench\\BookManager\\main.c 990 Done. 2 error(s), 0 warning(s) The last SVN revision of Lib_Clara.h with that all the existing sources compile successfully is r2428. [ Редактировано eddmund в 6.8.08 11:34 ]  | |
 | 
06.08.08, 13:37 | 
| 
 У меня два вопроса: 1. Как использовать функцию Timer_Set (как использовать старый вариант функции я знаю) 2. Объясните, что показано на скрине внизу. Я думаю это используемая эльфпаком память, так как значение постаянно изменяется  | |
 | 
06.08.08, 13:51 | 
| 
  axJeSSter пишет: 1. Как использовать функцию Timer_Set (как использовать старый вариант функции я знаю) Код:  u16 myTimer; void onTimerUpdate(u16 timerID, LPARAM lparam) { if(! do_something()) { return; } int refresh_time = 500; Timer_ReSet(&myTimer, refresh_time, onTimerUpdate, lparam); } myTimer = Timer_Set(1, onTimerUpdate, 0); However, this code no longer works as of Timer_Set changes in Lib_Clara.h SVN r2413. Update 2008-08-13: Problem has been fixed as of Lib_Clara.h SVN r2481. [ Редактировано eddmund в 13.8.08 18:52 ]  | |
 | 
10.08.08, 12:02 | 
| 
 Код: {   snwprintf(bheader,193,L"Heap: %d Mb",GetFreeBytesOnHeap()/1024000); } how get showing this in example "Heap: 6,58 Mb"? How add ","?  | |
 | 
10.08.08, 15:43 | 
| 
 1.Heap %.2f 2.GetFreeBytesOnHeap()/1048576  | |
 | 
10.08.08, 16:00 | 
| 
 InDiGo Код:  snwprintf(bheader,193,L"Heap: %.2f Mb",GetFreeBytesOnHeap()/1048576); that is correct?  | |
 | 
10.08.08, 16:59 | 
| 
 Yep.Just test it and you'll see the result) | |
 | 
10.08.08, 17:12 | 
| 
 InDiGo Yep.Just test it and you'll see the result)  I test this. Result: "Heap: 0.00 Mb"  | |
 | 
10.08.08, 17:25 | 
| 
 Declare heap as float value.E.g.: float fHeap=GetFreeBytesOnHeap(); And use fHeap/1048576 or write try %.2d.I don't know C very good,so just try and write about the results  | |
 | 
11.08.08, 08:57 | 
| 
  jamesbond22 пишет: InDiGo Код:  snwprintf(bheader,193,L"Heap: %.2f Mb",GetFreeBytesOnHeap()/1048576); that is correct? Try this: Код:  snwprintf(bheader,193,L"Heap: %.2f Mb",GetFreeBytesOnHeap()/1048576.0);  | |
| Страница 52 из 211: « 1 ... 48 49 50 51 [52] 53 54 55 56 ... 211 » | 
URL этой темы: https://mobilefree.justdanpo.ru/newbb_plus/viewtopic.php?topic_id=2479&start=510 © 2005-2018 mobilefree.justdanpo.ru  |