Solved

Calling DLL functions using Ordinal No.!!

Posted on 2004-10-02
1
252 Views
Last Modified: 2012-05-05
Hello:
How can I call an exported function from a DLL using its ordinal number in Visual Basic 6?
0
Comment
Question by:mine_23
1 Comment
 
LVL 32

Accepted Solution

by:
Erick37 earned 100 total points
ID: 12211519
Like this:

Declare Function SHGetExtension Lib "shell32" Alias "#31" (ByVal szPath As String) As Long

See this:
Windows by the Numbers, Overview
http://vbnet.mvps.org/index.html?code/shell/undocshell32overview.htm

0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

786 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