XSLPtoVBString
PurposeReturn a string to VB given its address in Xpress-SLPSynopsisFunction XPRS_CC XSLPtoVBString (adrstr As Long) As StringArgument
adrstr The address of a string in Xpress-SLPReturn valueExampleThe following example shows how XSLPtoVBString can be used in a VB message callback:Public Sub messagecb(ByVal prob As Long, ByVal object As Long, ByVal msg As Long, ByVal length As Long, ByVal msgtype As Long) Debug.Print("LOG: " & XSLPtoVBString(msg)) End SubThis prints any messages to the immediate window in the VB editor.Further informationThis function is part of the VB interface and is not available (or indeed useful) in the standard Xpress-SLP API.
If XSLPsetcbmessage is used from VB, then the message pointer which is returned to the callback function must be converted using XSLPtoVBString before it can be used.
Related topics
If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.