Coding

Welcome, Guest. Please login or register.
Did you miss your activation email?
August 24, 2017, 01:53:32 AM

Login with username, password and session length

Menu

Members
Stats
  • Total Posts: 12138
  • Total Topics: 1730
  • Online Today: 55
  • Online Ever: 195
  • (February 11, 2014, 12:46:08 PM)
Users Online
Users: 0
Guests: 33
Total: 49
Yahoo!
Google
Baidu (14)

Recent Topics

Pages: [1]   Go Down

Author Topic: Searched everywhere ... can IB Pro work with Ordinal API calls?  (Read 2611 times)

0 Members and 1 Guest are viewing this topic.

TLaRoche

  • Newbie
  • *
  • Bananas: 0
  • Offline Offline
  • Gender: Male
  • Posts: 9
  • Born to code ... doomed to fail...
Searched everywhere ... can IB Pro work with Ordinal API calls?
« on: September 19, 2014, 11:19:52 AM »

Searched the Net, and this board... Couldn't find anything on whether IB Pro can or can't work with API calls by using a DLL Ordinal value.

Example: Is this valid?
Code: [Select]
Declare "comctl32.dll", DefSubclassProc _
    Alias #413 ( _
    hWnd:Int, _
    uMsg:UInt,
    WPARAM:Int, _
    LPARAM:Int), _
    Int
If not valid then is there a work-around, or am I just stuck? (lol)

Thanks in advance.
« Last Edit: September 19, 2014, 08:27:52 PM by TLaRoche »
Logged
Just finished backing up to the ol' tape backup drive ... again. Maybe this time restore will work...

Larry McCaughn

  • Head Monkey
  • Administrator
  • Sr. Member
  • *****
  • Bananas: 4
  • Offline Offline
  • Gender: Male
  • Posts: 255
Re: Searched everywhere ... can IB Pro work with Ordinal API calls?
« Reply #1 on: September 19, 2014, 10:39:56 PM »

I don't think so. In all the years I've been using IBPro and its successors I've never seen an instance of that.
Logged
Admin - Here and @ Ionic Wind Software Forums
Author of Custom Button Designer, Custom Chart Designer, Snippet Manager, and IWB+ (A Visual Designer for IWBasic 2.x)

TLaRoche

  • Newbie
  • *
  • Bananas: 0
  • Offline Offline
  • Gender: Male
  • Posts: 9
  • Born to code ... doomed to fail...
Re: Searched everywhere ... can IB Pro work with Ordinal API calls?
« Reply #2 on: September 20, 2014, 01:07:37 AM »

Larry,
Thank you for the response. I kind'a thought as much. :-\ I know IB Std can't (which I still use even to this day) ... but I was hoping this issue was done away with IB Pro. :(

Would there be a possible work around?

Again, thanks in advance.
Logged
Just finished backing up to the ol' tape backup drive ... again. Maybe this time restore will work...

zlatkoCB

  • Sr. Member
  • ****
  • Bananas: 2
  • Offline Offline
  • Gender: Male
  • Posts: 473
Re: Searched everywhere ... can IB Pro work with Ordinal API calls?
« Reply #3 on: September 27, 2014, 11:29:21 AM »

I am not sure what you mean by 'ORDINAL' but if you mean
usual or VB way of API declare then answer is yes
in a little bit different way
and i don't know what you need this shape of dll .
CDCL way is supported by EB and i think that in IWB to..
so i really don't see any problem with that  ???

GWS

  • Sr. Member
  • ****
  • Bananas: 14
  • Offline Offline
  • Posts: 342
Re: Searched everywhere ... can IB Pro work with Ordinal API calls?
« Reply #4 on: December 01, 2014, 04:13:07 AM »

Hi,

Probably best not to try ..  :)

Quote
Each function exported by a DLL is identified by a numeric ordinal and optionally a name. Likewise, functions can be imported from a DLL either by ordinal or by name. The ordinal represents the position of the function's address pointer in the DLL Export Address table. It is common for internal functions to be exported by ordinal only. For most Windows API functions only the names are preserved across different Windows releases; the ordinals are subject to change. Thus, one cannot reliably import Windows API functions by their ordinals.

Importing functions by ordinal provides only slightly better performance than importing them by name.

Best to just stick to the function names I should think ..

I found this here :

http://en.wikipedia.org/wiki/Dynamic-link_library

Best wishes, :)

Graham
« Last Edit: December 01, 2014, 04:28:11 AM by GWS »
Logged
Tomorrow may be too late ...
Pages: [1]   Go Up
 

To link to us use this code/button on your site

http://www.codingmonkeys.com/images/cm_link.gif