خرید بک لینک

سلام خدمت دوستان

در قطع کد زیر :

 <System.Runtime.InteropServices.DllImport("keel3  2.dll", EntryPoint:="GetThreadContext"), System.Security.SuppressUnmanagedCodeSecurity()>

همینجور که میبینید دو کلمه

keel32.dll
و
GetThreadContext
به صورت String هستش!

خوب حالا من میخوام دو کلمه بالا رو یک فانکشن نوشته شده کد کنم و اینجوری به کار ببرم :

 <System.Runtime.InteropServices.DllImport(decode("  TT@ERS#"), EntryPoint:=decode("FSWEWERE")), System.Security.SuppressUnmanagedCodeSecurity()>

که فانکشن Decode الان همون

keel32.dll
و
GetThreadContext
رو بر میگردونه اما با ارور زیر مواجه میشم :
Constant expression is required.

من این کد رو هم به کار بردم ولی نشد :


Dim cls as new Class 1
<System.Runtime.InteropServices.DllImport(cls.deco de("TT@ERS#"), EntryPoint:=cls.decode("FSWEWERE")), System.Security.SuppressUnmanagedCodeSecurity()>

- - , .

برچسب: نویسنده: محمد رضا جوادیان تاريخ: چهارشنبه 23 دی 1394 ساعت: 14:00

صفحه بندی