Results 1 to 19 of 19

Thread: Creating dll

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2004
    Posts
    681

    Resolved Creating dll

    Hi,
    i have got a VB application . how can i convert it to dll...........i ahve no basic knowledge about creating dll..........can someone guide me.?

    Regards
    Vivek.S
    Last edited by vivek.shankar; Dec 21st, 2004 at 07:52 AM.

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Creating dll

    When you open VB select AcitveX DLL project type ...
    You may add some ot all of the objects (forms, classes, modules, etc) from your original and save as new copy each and every one of them.
    This would give a start ...

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2004
    Posts
    681

    Re: Creating dll

    shud i jus copy my existing form and code into that?

    will that work?

    regards
    vivek.s

  4. #4
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Creating dll


    Yep, you replied after I edited my post ...

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2004
    Posts
    681

    Re: Creating dll

    srry i didnt see ur reply.maybe we were doin it at the same time!

    how can i add forms from existing project.....it doesnt seem to have form design page(i have never ever programmed dll)

    regards
    vivek.s

  6. #6

    Re: Creating dll

    goto Project > PROJECT_NAME Properties...
    set project type to activex dll

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2004
    Posts
    681

    Re: Creating dll

    under properties only name is displayed

    regards
    vivek.s

  8. #8

    Re: Creating dll

    what is your vb version

  9. #9

    Re: Creating dll

    whatever version you have.

    Type=OleDll
    in your project.vbp file


  10. #10

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2004
    Posts
    681

    Re: Creating dll

    Hi,
    i created a dll but it says no public compnent detected
    how can i rectify this?

    regards
    vivek.s

  11. #11
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Creating dll

    Quote Originally Posted by vivek.shankar
    srry i didnt see ur reply.maybe we were doin it at the same time!

    how can i add forms from existing project.....it doesnt seem to have form design page(i have never ever programmed dll)

    regards
    vivek.s
    The same way you can do in Standard project: right click on project explorer and select Add -> Add File ... But I recommend you to copy all files (frm, frx, cls, mod, ...) into a new folder and use that new folder as your work folder.

  12. #12

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2004
    Posts
    681

    Re: Creating dll

    yes rhinobull..........i did copy it to a different folder but i am getting error whichg mentioned in previous post when i did as i was told my nareth................

    regards
    vivek.s

  13. #13
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Creating dll

    You must have at least one class which is multiuse and public so you can access your dll's methods, properties ...

  14. #14

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2004
    Posts
    681

    Re: Creating dll

    like............ can u give me an example?

    i am having these function......like

    excel_getdata
    logion
    manipulate etc.........

    i also haveing controls on the form
    so how shud i frame my program to use these?

    '
    regards
    vivek.s

  15. #15
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Creating dll

    Open attachments to see very quick sample project (after unzipping dblclick on Test_Dll.vbg file).

  16. #16

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2004
    Posts
    681

    Re: Creating dll

    Thanks a lot!!

    That was of great help

    regards
    vivek.s

  17. #17

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2004
    Posts
    681

    Re: Creating dll

    i have created a dll and i am getting sub main does not exist...what is the mistake i am doin?

    regrads
    vivek.s

  18. #18
    Member
    Join Date
    Dec 2004
    Location
    California
    Posts
    39

    Re: Creating dll

    You should learn a bit about ActiveX components so you understand how they work and especially how to design them. Then you need to design how your component needs to work. I doubt that it is possible to convert a exe project to a ActiveX component simply by copying the form.

    VB programmers should avoid saying DLL since it can be confusing out of the context of VB. For VB, DLLs are never regular DLLs; for VB, a DLL is an ActiveX component or something like that. So it is more clear to say "ActiveX component" or something such as that, depending on what is relevant.

    Also, I think it is possible to expose an ActiveX component from an exe project, but I don't know VB well enough to be sure. In other words, I think you can use your exe instead of converting to a DLL.

  19. #19

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2004
    Posts
    681

    Re: Creating dll

    well i wanted to understanmd bit about activex dll thats y i am jus trying to get familiarised with it...........

    regards
    vivek.s

Posting Permissions

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



Click Here to Expand Forum to Full Width