.dll function in code

MetLife

Active Member
Joined
Jul 2, 2012
Messages
283
Hi,

I received a model with some strange function declarations. Does anyone know what this type of declaration is supposed to do?

Code:
Declare Function closesession Lib "vpmsdl32.dll" (ByVal Session As Integer) As IntegerDeclare Function opensession Lib "vpmsdl32.dll" () As Integer
Declare Function loadsession Lib "vpmsdl32.dll" (ByVal FileName As String) As Integer
Declare Function choice Lib "vpmsdl32.dll" (ByVal Session As Integer, _
                                            ByRef name As String, _
                                            ByRef fieldname As String, _
                                            ByRef Result As String, _
                                            ByVal reslen As Integer, _
                                            ByRef Message As String, _
                                            ByVal msglen As Integer, _
                                            ByRef field As String, _
                                            ByVal fldlen As Integer) As Integer


Declare Function available Lib "vpmsdl32.dll" (ByVal Session As Integer, _
                                               ByRef name As String, _
                                               ByRef fieldname As String, _
                                               ByRef Message As String, _
                                               ByVal msglen As Integer, _
                                               ByRef field As String, _
                                               ByVal fldlen As Integer) As Integer


Declare Function compute Lib "vpmsdl32.dll" (ByVal Session As Integer, _
                                            ByVal name As String, _
                                            ByVal Result As String, _
                                            ByVal reslen As Integer, _
                                            ByVal Message As String, _
                                            ByVal msglen As Integer, _
                                            ByVal field As String, _
                                            ByVal fldlen As Integer) As Integer
 
Last edited by a moderator:

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
They are API calls to an external library - apparently something called VP/MS Designer.
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,603
Members
449,089
Latest member
Motoracer88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top