Вниз
Скачать: CL | DM;

Помогите перевести конструкцию с C++   Найти похожие ветки 

← →
P2P   (2006-09-08 12:26) [0]

Вот такая конструкция нужна на дельфи

LARGE_INTEGER nDueTime;
nDueTime.QuadPart = Int32x32To64(-10000,1000);
SetWaitableTimer(m_htCheckingTimer,&nDueTime,0,NULL,NULL,FALSE);


← →
Desdechado ©   (2006-09-08 12:47) [1]

LARGE_INTEGER - что за зверь?


← →
P2P   (2006-09-08 13:00) [2]

Да это код на С++. Вот мне бы тоже хотелось узнать как вызывать SetWaitableTimer из Дельфи. А то что то не получается....


← →
Dmitrij_K   (2006-09-08 13:27) [3]

Модет так
var nDueTime : Int64;
...
Int64Rec(nDueTime).Lo := -10000;
Int64Rec(nDueTime).Hi := 1000;
SetWaitableTimer(m_htCheckingTimer,@nDueTime,0,nil,nil,FALSE);


← →
Desdechado ©   (2006-09-08 13:35) [4]

Справка рулит.

Use the format described by the FILETIME structure.

The FILETIME structure is a 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601.

typedef struct _FILETIME { // ft  
   DWORD dwLowDateTime;
   DWORD dwHighDateTime;
} FILETIME;


Members

dwLowDateTime

Specifies the low-order 32 bits of the file time.

dwHighDateTime

Specifies the high-order 32 bits of the file time.



Remarks

It is not recommended that you add and subtract values from the FILETIME structure to obtain relative times. Instead, you should

· Copy the resulting FILETIME structure to a LARGE_INTEGER structure.
· Use normal 64-bit arithmetic on the LARGE_INTEGER value.


← →
P2P   (2006-09-08 13:39) [5]

Не компилится пример. Пишет -10000; выходит за границы диапазона



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.46 MB
Время: 0.025 c
3-1154322875
yaral
2006-07-31 09:14
2006.10.01
LoadFromStream FIB Plus


15-1158060127
Alex_KV
2006-09-12 15:22
2006.10.01
Нужен алгоритм


4-1148639852
Shaman_
2006-05-26 14:37
2006.10.01
Перехват записи в буфер обмена


2-1157741398
lobach
2006-09-08 22:49
2006.10.01
Компонент


4-1148671260
valentin
2006-05-26 23:21
2006.10.01
Чтения с USB порта




   Наверх