Results 1 to 5 of 5

Thread: DLL hell????

  1. #1
    Join Date
    Jan 2004
    Location
    India
    Posts
    31

    Post Unanswered: DLL hell????

    hi

    i want to create a DLL with some usefull functions say like ReverseString,RemoveHash etc
    i want to refer it in another VB project by using Module Declarations

    Code:
    Public Declare Function MyRevStr Lib "C:\WhatIsThat.dll" (sInput As String) As String
    what is the best way to do this

    i tried but get error

    Can't find DLL entry point MyRevStr in C:\WhatIsThat.dll


    hi

    me again
    i know this is not the right place to place DLL related q's
    but hey i've googled to all places which give me ref to using C++ dll in VB, Fortran in VB
    but no simple vb to vb

    i get my answers here maan :-)

    thanks
    Last edited by yoja7; 12-06-04 at 01:40. Reason: adding comments
    Do not walk behind me, for I may not lead.
    Do not walk ahead of me, for I may not follow.
    Do not walk beside me, either.
    Just leave me alone.

    Yogesh Jangam
    http://yogeshjangam.blogspot.com

  2. #2
    Join Date
    Nov 2004
    Posts
    108
    to err is human ; to really mess things up requires a computer

  3. #3
    Join Date
    May 2004
    Posts
    97
    Ok, I'll try this one. Although I am far from a dll wiz.

    Given the error that you are receiving it appears that you are attempting to write the dll in VB yet call it as if it were written in some variant of C+, which is expecting to find a main() procedure.

    When you create a dll in VB you can only store procedures in it that are called as objects with methods, etc. The objects and methods would be referenced by selecting the dll from the Project > References dialog.


    At least, that's the way I understand it. Frankly, I hope someone comes back and tells me how stupid I am and that writing dlls in VB is a snap. I've only been able to author dlls to use the way I described them above and would love to be able to simply store a library of custom procedures in some dlls.

  4. #4
    Join Date
    Nov 2004
    Posts
    108
    did you register the DLL?

    run: regsvr32.exe path\dllName.dll



    I really don' understand what you are trying to do with the Lib "C:\WhatIsThat.dll"

    to create a dll I just create a project with no forms and some public objects that can be called from other applications, after I'm done I create another project, I put the DLL project to run and then add the reference to the project DLL in the new project and create some simple rutines to test the dll after I'm positive the dll works correctly I compile it and register it

    but maybe your problem is not exactly how to build the dll
    Last edited by tuenty; 12-07-04 at 10:46.
    to err is human ; to really mess things up requires a computer

  5. #5
    Join Date
    Jan 2004
    Location
    India
    Posts
    31

    Thanks

    hi all and thanks for replying

    >I really don' understand what you are trying to do with the Lib >"C:\WhatIsThat.dll"

    i have created a dll and do not want to register [REGSVR32] or reference it in Project

    welll i had used for Class in DLL code as Global MultiUse

    i think i wud have to use the Project > References this as this been a VB dll

    in one line what i want to do

    ---
    Create a function library and give to others who willl point to it for using the functions
    --

    They wont be creating any objects from it

    anyway
    thanks all
    Yoja
    Do not walk behind me, for I may not lead.
    Do not walk ahead of me, for I may not follow.
    Do not walk beside me, either.
    Just leave me alone.

    Yogesh Jangam
    http://yogeshjangam.blogspot.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •