میخواستم بدونم که اصلا thandleبه چه دردی میخوره!؟..
Printable View
میخواستم بدونم که اصلا thandleبه چه دردی میخوره!؟..
بستگی داره شما چه استفاده ای داشته باشید! هر پنجره يا آبجكتي در ويندوز داراي يك Handle است كه براي دسترسي به آن پنجره يا آبجكت شما بايد از اين Handle استفاده كنيد. Handle يك عدد unique يا همتا است كه ويندوز آن را مقداردهي مي كند. به عنوان مثال اگر از يك پنجره دو Instance اجرا شده باشد (مثلا يك برنامه دو بار اجرا شده باشد) هر كدام از اين Instanceها يك Handle جداگانه دارند.نقل قول:
کد:THandle is the type for handles to operating system resources.
Unit
System
Delphi syntax:
type THandle = LongWord;
Description
THandle is a 32-bit value that uniquely identifies a resource.
مگه نگفتین که خروجیش عدده!؟..
پس چرا نوشته:
LongWord;
دلفی ابزاری به نام helpهم دارهنقل قول:
کد:An integer type represents a subset of the whole numbers. The generic integer types are Integer and Cardinal; use these whenever possible, since they result in the best performance for the underlying CPU and operating system. The table below gives their ranges and storage formats for the current 32-bit Delphi compiler.
Generic integer types for 32-bit implementations of Delphi
Type Range Format
Integer -2147483648..2147483647 signed 32-bit
Cardinal 0..4294967295 unsigned 32-bit
Fundamental integer types include Shortint, Smallint, Longint, Int64, Byte, Word, and Longword.
Fundamental integer types
Type Range Format
Shortint -128..127 signed 8-bit
Smallint -32768..32767 signed 16-bit
Longint -2147483648..2147483647 signed 32-bit
Int64 -2^63..2^63-1 signed 64-bit
Byte 0..255 unsigned 8-bit
Word 0..65535 unsigned 16-bit
Longword 0..4294967295 unsigned 32-bit
هلپش کار نمیکنه!!!!نقل قول:
دلفی ابزاری به نام helpهم داره
ممنون.
حالا میشه یه نمونه از استفاده هاش رو بگید!؟..
اگر احیانا با کارآیی google مشکلی ندارید، delphi+handle رو جستجو کنید :46:
موفق باشید
آخه همش اینگلیسی!!!
من که مترجم نیستم..
خوب دلفی+هندل رو جستجو کنید!نقل قول:
این که جهت مزاح بود اما کلا برنامه نویسی نیاز به دانش انگلیسی زیادی نداره. مهمه خوندن کدهای برنامه هست
سعی کنید خودتون رو به آموزش های فارسی محدود نکنید چون معمولا منابع به روزی وجود نداره
موفق باشید
حال یه نمونه کد لطف میکنید!؟.