New topic: DLL Import
<http://forums.realsoftware.com/viewtopic.php?t=47389> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message matty47 Post subject: DLL ImportPosted: Sun Mar 24, 2013 4:52 am Joined: Wed Feb 03, 2010 2:24 pm Posts: 11 I am trying to use an external dll with Real Studio and have a VB include file like this Public Const LC_PROP_TABLE_XDATASIZE = 1008 Public Const LC_PROP_TABLE_XDATA = 1009 Public Const LC_PROP_TABLE_XSTR = 1010 Public Const LC_PROP_TABLE_INT0 = 1011 Public Const LC_PROP_TABLE_INT1 = 1012 Public Const LC_PROP_TABLE_INT2 = 1013 Public Const LC_PROP_TABLE_INT3 = 1014 Public Const LC_PROP_TABLE_INT4 = 1015 Public Const LC_PROP_TABLE_FLOAT0 = 1016 Public Const LC_PROP_TABLE_FLOAT1 = 1017 Public Const LC_PROP_TABLE_FLOAT2 = 1018 and and a long way further down Public Declare Function lcViewDrawRect Lib "Litecad.dll" (ByVal hView As Long, ByVal X0 As Double, ByVal Y0 As Double, ByVal X1 As Double, ByVal Y1 As Double) As Long Public Declare Function lcViewPrint Lib "Litecad.dll" (ByVal hView As Long, ByVal hPrintDC As Long, ByVal Lef As Double, ByVal Bot As Double, ByVal Rig As Double, ByVal Top As Double, ByVal Scal As Double, ByVal PapLef As Double, ByVal PapTop As Double) As Long Public Declare Function lcMLStyleAddLine Lib "Litecad.dll" (ByVal hStyle As Long, ByVal Offset As Double, ByVal szColor As String, ByVal hLtype As Long) As Long Public Declare Function lcMLStyleDelLine Lib "Litecad.dll" (ByVal hStyle As Long, ByVal iLine As Long) As Long Is there any way to import at least the constant list into Real Studio without creating each individual constant?? Also how do I handle the ByVal ( or ByRef) qualifiers?? Thanks Matthew Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
