Help needed for Visual Basic 6.0 (VB 6) DLL

Discussion in 'Tally Developer' started by Ashwin Shah, Jul 18, 2023.

    
  1. Ashwin Shah

    Ashwin Shah New Member


    Has any one Created a DLL using Visual Basic 6.0 (VB 6) ?

    Can some one give the Frame work of the Function Definition or a Basic Sample DLL Code in VB6.

    I need to Develop a DLL in VB 6.0

    I have Tried with the Following Code in VB6 but it does not work.

    Public Function TDLCollection1(pInputParam As String, pInputXML As String) As String

    MsgBox "1 " + pInputParam
    MsgBox "2 " + pInputXML

    TDLCollection1 = "Test"

    End Function

    I have Tried with the Following Code in TDL

    [COM Interface : TDLCollection1]
    Project : TDLCollection1
    Class : TDLCollection1
    Interface : TDLCollection1
    Parameters : p1 : String : In
    Parameters : p2 : String : In
    Parameters : p3 : String : Out
    Returns : String

    I have also Tried with the Following Code in TDL

    [Field : MH DLL Field 1]
    Use : Name Field
    Set As : $$CallDllFunction:TDLCollection1:TDLCollection1:"A":"B"


    I have made a DLL from the VB and then I also registered the same but still nothing works in this.


    Can any One Help with the above sample DLL and how to call such a DLL from Tally TDL.

    Even a Empty Frame work will Help me to Develop. I am fine id You do not want Share the Entire Code of DLL.


     



  2. Can you explain what exactly you want to achieve through this dll. Is it necessary to develop dll(as this is to be register hence tedious process). I will suggest http service instead.
     



  3.  


  4. Ashwin Shah

    Ashwin Shah New Member


    Dear Tushar ji,

    It is Required as I need to Process Multiple QR Bar Coded Products. Products do not have a Standard Structure and hence I need to Write a Logic and Call DLL.

    The above is trying to make a DLL.

    I just need the Basic Frame work, Logic I will write in Visual Basic without much of the Problem.

    I am not able to find the Structure of DLL and Parameters and format in which it needs to Passed.

    Any Sample DLL and corresponding Code in TDL will help. I have no Problem if the Sample DLL Core Code Functionality is Removed as well.

    Thanking You,

    Ashwin
     



  5. I do not have experience of working VB dll. But sure about working c# dll. You can share your logic/vb code so that I can try to give you a solution. Don't Hesitate to share your problem so that we will come to the best possible solution. So that other people will also get benefitted.
     


Share This Page