sam Level: Graduate Registered: 06-05-2006 Posts: 12
doubt regarding differences of vb and vb.net
HI to all.this is my first post in this forum.I hope sombodywill help me
I did my project in vb6.In that project i had used some window api's
like
Private Declare Function GetObject Lib "gdi32" Alias "GetObjectA" _
(ByVal hObject As Long, ByVal nCount As Long, lpObject As Any) As Long
Private Declare Function GetBitmapBits Lib "gdi32" _
(ByVal hBitmap As Long, ByVal dwCount As Long, lpBits As Any) As Long
Private Declare Function SetBitmapBits Lib "gdi32" _
(ByVal hBitmap As Long, ByVal dwCount As Long, lpBits As Any) As Long
So these Api's still work in vb.net .If not what is the alternatives for those api's?
Kindly help me,i am stuck here...
____________________________
Warm Regards
SAM
06-05-2006 at 05:53 AM
|
stickleprojects Level: Moderator Registered: 09-09-2002 Posts: 891
Re: doubt regarding differences of vb and vb.net
Hi,
I think these are GDI functions? Look at the System.Drawing namespace (GDI+) rather than the API calls.
In particular the Bitmap object has many methods that might be useful.
Hope this helps,
Kieron
____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)
06-05-2006 at 10:10 AM
|
sam Level: Graduate Registered: 06-05-2006 Posts: 12
Re: doubt regarding differences of vb and vb.net
So is those gdi's work in vb.net or any alternatives for those in vb.net.IF yes can u give me reply.
____________________________
Warm Regards
SAM
08-05-2006 at 04:51 AM
|
stickleprojects Level: Moderator Registered: 09-09-2002 Posts: 891
Re: doubt regarding differences of vb and vb.net
Hi,
Yes they will still work, however, it is recommended that you use the system.drawing objects instead.
Can you describe what you are trying to get, rather than how?
Kieron
____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)