473,395 Members | 1,677 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Call to absolute address

Don
Environment: VB6 under W98

I have to use a DLL which has a single entry point expressed as an
absolute address. Any function to be invoked is then specified as one
of the arguments. The number of arguments is fixed.

Question: How do I issue a call to an absolute address from VB6 (and
pass arguments<==!)?

The sample code supplied with the DLL uses C and I, essentially, have
to convert the following C statement into VB6:

return (*(LPEntryPointProc)g_EntryPoint)(arg1, arg2, etc... );

I can think of a couple of approaches but none I'm really happy with.

For example, I could write a C wrapper and stick it in a DLL, but it
seems very silly to have to drag around such a one-trick-pony DLL.

Or, I could call some "harmless" API routine with a callback option
and misuse the callback feature to jump to the DLL. The problem,
however, is passing arguments...!?

So, if anyone has any other ideas or suggestions - including
undocumented calls and other tricks - I'd be very grateful.

Don.
Nov 21 '05 #1
1 1365
On Fri, 26 Nov 2004 15:55:21 GMT, Don wrote:
Environment: VB6 under W98
FYI: This is not a VB6 group. You might try asing your question in the
following group:

Microsoft.Public.Vb.General.Discussion
So, if anyone has any other ideas or suggestions - including
undocumented calls and other tricks - I'd be very grateful.


Don't know if this will help, but I saw this in another thread:

<Quote>
From the Visual Studio Command prompt run

dumpbin /exports C:\misc\rtbdll\rtbdts.dll

That will show you what the entry points are.
</Quote>

Perhaps this will give you an alternate way to call the methods in the .dll

--
Chris

dunawayc[AT]sbcglobal_lunchmeat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: ¤ Alias | last post by:
I have a function named getID3info (lvwDiscInfo.SelectedItem). What is the difference between getID3info (lvwDiscInfo.SelectedItem) and Call getID3info(lvwDiscInfo.SelectedItem) ?
9
by: Stuart | last post by:
Hi All, I got a challenge to make the same APS/Script/Html run on different web roots. I can not use relative pathing in a lot of cases. We use lots of included files so depending on where that...
15
by: Nick K. | last post by:
I recently began maintenance work on a production web server that is located in the root directory of a web server. I moved this into a sub web on my local web server in order to do work on it. I...
4
by: mike eli | last post by:
Hi, I have several absolute positioned elements inside an absolute positioned DIV. I would like one of the nested elements to have a dynamic width. I set it's left and right attributes to 5, so...
4
by: Amir Eshterayeh | last post by:
Dear Friends My asp hyperlink goes to relative address instead of absolute. I like navigate url goes to outsite link like www.asp.net but now, it goes to www.mysite/www.asp.net please help....
9
by: volcano | last post by:
Can it be done, and if yes - how?
6
by: Jon Slaughter | last post by:
do I have to prefix every absolute path with document root to get it to work? For some reason I thought that prefixing a path with '/' or './' with make it absolute w.r.t to document root but I...
20
by: mehstg1319 | last post by:
Hi there Not sure if anyone can help me, I am working on a site for my university, and am having a bit of trouble with css positioning. I am very new to css and do not know very much about it....
14
by: Yep | last post by:
Hi Guys, I have some confusion with pointers and implicitly specifying a size of memory to write. I will try to explain what I am trying to do a bit better. char *myaddress=(char *)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.