Click here to Skip to main content
16,017,726 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralLimitations of Custom Controls... Pin
nick.ueda2-May-05 14:32
nick.ueda2-May-05 14:32 
GeneralRe: Limitations of Custom Controls... Pin
Christian Graus2-May-05 14:54
protectorChristian Graus2-May-05 14:54 
GeneralRe: Limitations of Custom Controls... Pin
nick.ueda2-May-05 15:05
nick.ueda2-May-05 15:05 
GeneralRe: Limitations of Custom Controls... Pin
Christian Graus2-May-05 15:28
protectorChristian Graus2-May-05 15:28 
GeneralRe: Limitations of Custom Controls... Pin
nick.ueda2-May-05 15:33
nick.ueda2-May-05 15:33 
GeneralRe: Limitations of Custom Controls... Pin
Christian Graus2-May-05 15:36
protectorChristian Graus2-May-05 15:36 
GeneralRe: Limitations of Custom Controls... Pin
Dave Kreskowiak3-May-05 2:17
mveDave Kreskowiak3-May-05 2:17 
GeneralUsing a C++ dll in VB.net Pin
Reanalyse2-May-05 13:45
Reanalyse2-May-05 13:45 
There is an excellent library here on CodeProject contributed by Omid Shahabi called CadLib for creating viewing and modifying dxf(Drawing Interchange Format) files

I am attempting to use this C++ library in VB.Net and have started to write the declare functions to do so - example follows
____________________________________________________________________________
Private Declare Function drwCreate Lib "CADIO" () As Long

Private Declare Function drwInitView Lib "CADIO" (ByVal x As Integer, ByVal y As Integer, ByVal nWidth As Integer, ByVal Nheight As Integer) As Boolean

Private Declare Function drwLoadDataFromFile Lib "CADIO" (ByVal Handle As Long, ByVal BlockHandle As Long, ByVal Res0 As Integer, ByVal Filename As String, ByVal ProgHandle As Long) As Boolean

Private Declare Function drwSaveDataToFile Lib "CADIO" (ByVal Handle As Long, ByVal Res0 As Integer, ByVal Filename As String, ByVal ProgHandle As Long) As Boolean

Private Declare Function drwPaint Lib "CADIO" (ByVal drwhandle As Long) As Boolean
____________________________________________________________________________

The dwfCreate worked well, returning a (long integer) handle
But I am having trouble figuring out how to pass null values where required (i.e in drwLoadDataFromFile) and how to handle the C++ "progress window handle")

Do any experts out there have any suggestions of how to use this library in VB.net to display a dxf file (as in the C++ test program)

Many Thanks




GeneralRe: Using a C++ dll in VB.net Pin
Christian Graus2-May-05 13:59
protectorChristian Graus2-May-05 13:59 
GeneralRe: Using a C++ dll in VB.net Pin
Reanalyse2-May-05 14:50
Reanalyse2-May-05 14:50 
GeneralRe: Using a C++ dll in VB.net Pin
Christian Graus2-May-05 14:54
protectorChristian Graus2-May-05 14:54 
GeneralRe: Using a C++ dll in VB.net Pin
Reanalyse3-May-05 14:37
Reanalyse3-May-05 14:37 
GeneralRe: Using a C++ dll in VB.net Pin
Christian Graus3-May-05 14:48
protectorChristian Graus3-May-05 14:48 
GeneralRe: Using a C++ dll in VB.net Pin
Reanalyse3-May-05 16:01
Reanalyse3-May-05 16:01 
GeneralRe: Using a C++ dll in VB.net Pin
Christian Graus3-May-05 16:11
protectorChristian Graus3-May-05 16:11 
GeneralApp config help Pin
Joey Picerno2-May-05 10:23
Joey Picerno2-May-05 10:23 
GeneralRe: App config help Pin
mike2k52-May-05 11:58
mike2k52-May-05 11:58 
GeneralRe: App config help Pin
Joey Picerno2-May-05 12:51
Joey Picerno2-May-05 12:51 
GeneralRe: App config help Pin
Het21092-May-05 18:43
Het21092-May-05 18:43 
GeneralKilling child processes Pin
Sam Marrocco2-May-05 8:29
Sam Marrocco2-May-05 8:29 
GeneralGet variables set in a SUB Pin
mike2k52-May-05 8:19
mike2k52-May-05 8:19 
GeneralRe: Get variables set in a SUB Pin
Het21092-May-05 18:48
Het21092-May-05 18:48 
GeneralSeperate decimal from whole number Pin
vertig07302-May-05 7:19
vertig07302-May-05 7:19 
GeneralRe: Seperate decimal from whole number Pin
chrismerrill2-May-05 7:49
chrismerrill2-May-05 7:49 
GeneralMortgage calulator loop question vb.net Pin
vb.net challenged2-May-05 6:16
vb.net challenged2-May-05 6:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.