Convert a small Visual Basic 6 code to FnxBasic co

In this category you can exchange your programming questions and solutions.
Post Reply
Darren
Posts: 63
Joined: Wed May 11, 2011 11:55 am

Convert a small Visual Basic 6 code to FnxBasic co

Post: # 722Post Darren
Fri Jun 03, 2011 7:07 am

Can anybody help???

Does anybody know how to change the following Visual Basic 6 code to FnxBasic code?


Private Declare Function exec_dwgconvert Lib "dwgconvert.dll" (ByVal lpCmdLine As String, ByVal Flags As Long) As

Long

Sub ConvertFile()
    Parameters = Chr$(34) + Chr$(34) + Chr$(34) + InputFileName + Chr$(34) + Chr$(34) + Chr$(34) + " " + Chr$(34) +

Chr$(34) + Chr$(34) + OutputFileName + Chr$(34) + Chr$(34) + Chr$(34)
   
    If InStr(OutputFileName, "dwg") > 0 Then Parameters = Parameters + " /2004"
   
    Flags = 0

    iret = exec_dwgconvert(Parameters, Flags)
End Sub

Any help would be appreciated.

Many thanks in advance!!!!

IsoCAM

Post Reply