Solved

.NET - API calls

Posted on 2002-04-26
5
189 Views
Last Modified: 2010-05-02
in VB6 there was a very handy add-in, the API viewer and it's trusty companion WIN32API.TXT which contained all the API declarations for VB6.
Is there something similar for VB7 (or C#)?

The Declare statement still exists, and I found out that by using the vb6 declarations and replacing the Long with Integer, some functions work (like Beep). But not those who worked with handles declared as Long. No errors are generated, but they just don't work.

A code sample of a complex API call would be nice. (i would prefer GetDC and SetPixel).
0
Comment
Question by:Azmodan
  • 2
  • 2
5 Comments
 
LVL 3

Expert Comment

by:Elmo_
ID: 6971195
You could Try the www.AllAPI.net website

Has a list of all vb APIs For all versions of VB and also gives code examples for each API

Cheers.
0
 
LVL 3

Accepted Solution

by:
Elmo_ earned 50 total points
ID: 6971197
You could Try the www.AllAPI.net website

Has a list of all vb APIs For all versions of VB and also gives code examples for each API

Cheers.
0
 

Author Comment

by:Azmodan
ID: 6976682
That site is good, but I was asking for a local file and/or tool. Like VB6 API viewer add-in. Is there something like this?
0
 
LVL 2

Expert Comment

by:gallaghe
ID: 6977288
AllApi has a downloadable program to permit local viewing. Get it while you can, seems they are not doing anything new at the site and you never know when they will stop the site.

If all else fails, get a cheap copy of Borland Delphi (Personal edition) which has these files. Also Delphi is great for doing some jobs which .NET or VB simply can not.
0
 

Author Comment

by:Azmodan
ID: 6977508
yeah..that site had just what i needed.
To bad is closing down :(
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
DIR issue 7 51
Problem to skip loop 6 55
JSON Response and request in VB6 application 11 250
how can i unlock a picture file that was loaded in a picturebox in visual c#? 4 87
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now