- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
integer(4) function HashTableInit(iPrim)
!DEC$ ATTRIBUTES DLLEXPORT
integer(4), intent(in)::iPrim
type(T_HASHTABLE), pointer::ht
integer(4)::i
ht%iPrim = iPrim
allocate( ht%hts(0:iPrim-1 ) )
do i = 0, ht%iPrim - 1
ht%hts( i )%iCount = 0
nullify( ht%hts( i )%hiRoot )
end do
HashTableInit = loc(ht)
end function
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Jugoslav,
thanks for your reply.
Unfortunately the VB-Declarationpointed to a wrong DLL.
The function declarationas Integer(4) works now, but the one with type(T_HASHTABLE), Pointer still keeps producing the error 179. In this case iPrim =1475447638 instead of 100003.
I can stick to the Integer(4) definition, but since I need the Hashtable as an argument for other functions I'd like some help on how to adapt function declarations like the following
type(T_HAbiatchEM) function Habiatchem( htTable, iKey, iIndex )
pointer :: Habiatchem
type (T_HASHTABLE), pointer :: htTable
integer(8) :: iKey
integer(4) :: iIndex
...
end function
Can I work with Cray-Style Pointers inside the function?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
integer:: iPrim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks a lot, that solved the problem.
Just for your information the declaration is supposed to be the other way around.
void FOO( T_DEVMODE**, int* )

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page