borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Sending SMS)Next Topic (Met problem again with API) New Topic New Poll Post Reply
AndreaVB Forum : API : doubt regarding differences of vb and vb.net
Poster Message
sam
Level: Graduate

Registered: 06-05-2006
Posts: 12

icon 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
View Profile Send Email to User Show All Posts | Quote Reply
stickleprojects
Level: Moderator


Registered: 09-09-2002
Posts: 891
icon 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
View Profile Send Email to User Show All Posts | Quote Reply
sam
Level: Graduate

Registered: 06-05-2006
Posts: 12
icon 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
View Profile Send Email to User Show All Posts | Quote Reply
stickleprojects
Level: Moderator


Registered: 09-09-2002
Posts: 891
icon 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)

08-05-2006 at 06:58 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : API : doubt regarding differences of vb and vb.net
Previous Topic (Sending SMS)Next Topic (Met problem again with API) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder