Question Of The Day !!!!
Reply
![]() |
|
|
From:
dnyanesh
|
Hi All,
Question Of The Day is : Can we use win32api dlls in .net? Explain how?
Ans: yes,
Using DllImport is the attribute used for win32api dll in .net as GetWindowText API
namespace Win32Api { [DllImport("User32.dll")] Int32 GetWindowText(Int32 hWnd, StringBuilder* lpString, Int32 nMaxCount); }
class::function(Int32 returnHwnd) { StringBuilder* windowTextBuilder = new StringBuilder(255); Int32 count = GetWindowText(returnHwnd, windowTextBuilder, 255); }
Regards,
Dnyaneshwar Parkhe
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
|
View other groups in this category.
![]() |
To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings.
Need help? If you've forgotten your password, please go to Passport Member Services.
For other questions or feedback, go to our Contact Us page.
If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list.
Remove my e-mail address from dotNET User Group Hyd.
|
|
- Re: Question Of The Day !!!! dnyanesh
-