Solved

Calling DLL functions using Ordinal No.!!

Posted on 2004-10-02
1
250 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

757 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

19 Experts available now in Live!

Get 1:1 Help Now