Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2006.10.01;
Скачать: 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 вся ветка

Текущий архив: 2006.10.01;
Скачать: CL | DM;

Наверх




Память: 0.45 MB
Время: 0.011 c
2-1157697536
Grid
2006-09-08 10:38
2006.10.01
Dbgrid


2-1157719417
arhis
2006-09-08 16:43
2006.10.01
Автоматическое закрыте формы


2-1158151015
Endi
2006-09-13 16:36
2006.10.01
Function


1-1156152002
Makhanev Alexander
2006-08-21 13:20
2006.10.01
нужно запустить процесс под сессиями юзеров terminal services


6-1147352174
Dstr
2006-05-11 16:56
2006.10.01
Incompatiple types





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский