Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. How to create a VB6 .dll object without having the .dll added as a reference?

How to create a VB6 .dll object without having the .dll added as a reference?

Scheduled Pinned Locked Moved Visual Basic
questioncsharpcomtutorial
20 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Tom Deketelaere

    Dave Kreskowiak wrote:

    Now, those same people think less than a years experience makes them qualified to write articles and answer questions.

    Hey where not all bad, I have about a year of 'real' experience and another year of making programs on my own (I'm not counting my school years here, since well they just don't count :) ) And I try to answer the questions that I can (to the best of my knowledge), haven't written any articles (working on one but it's not going to great at the moment, but I'll get there in the end just a couple more weeks of research :) ) O wait you where talking about the outsourcing programmers, ok scratch my remarks, I don't fit that bill :)

    D Offline
    D Offline
    Dave Kreskowiak
    wrote on last edited by
    #11

    Would you ever come up with a crack-smoking answer as the one that started this part of of the thread?

    A guide to posting questions on CodeProject[^]
    Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
         2006, 2007, 2008

    T J 2 Replies Last reply
    0
    • D Dave Kreskowiak

      Would you ever come up with a crack-smoking answer as the one that started this part of of the thread?

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008

      T Offline
      T Offline
      Tom Deketelaere
      wrote on last edited by
      #12

      No Or as a joke wich would be clearly marked with the joke icon (and perhaps even stated in the message and only if the question really warented it). Have to admit my first reaction when I read his answer was the same as yours. And I do agree with your statement that the level of questions asked here has decreased exponentially. But I guess this all comes down to that age old argument of generalization. Just because there are a few (ok I admit alot) off bad ones doesn't mean they all are. (I'v had my share of encounters with some of that kind aswell)

      1 Reply Last reply
      0
      • D Dave Kreskowiak

        Would you ever come up with a crack-smoking answer as the one that started this part of of the thread?

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008

        J Offline
        J Offline
        Jon_Boy
        wrote on last edited by
        #13

        Dave Kreskowiak wrote:

        Would you ever come up with a crack-smoking answer as the one that started this part of of the thread?

        Pass what he was smoking.........time to take a trip to la-la land. :omg: :wtf: Agreed on outsourcing and given a direct link to this and other forums. This may sound awful, but I have a list of four “special” users I will never respond to because the questions they post are entirely to basic and never provide any specific work (IE: "I need to create a contact database using VB, how do I do that?"), or when you do give the OP the correct answer or links to suitable examples (often line by line nonetheless) - they always bash you on the score. In all seriousness, I hope that my orig. question wasn’t too basic in nature. I tried to Google the answer, but kept finding the assembly.load examples which didn’t apply. If you find that one of my questions isn’t up to snuff, just let me know so that I can correct myself in the future.

        Any suggestions, ideas, or 'constructive criticism' are always welcome. "There's no such thing as a stupid question, only stupid people." - Mr. Garrison

        D 1 Reply Last reply
        0
        • D Dave Kreskowiak

          Uhhh... WHAT?? :wtf:

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008

          A Offline
          A Offline
          astanton1978
          wrote on last edited by
          #14

          The question - "Is it possible to create and instantiate a VB6 .dll in VB .Net without having a reference to the VB6 .dll? I tried to use the Assembly.LoadFrom method, which doesn't seem to work (and probably isn't intended for ActiveX .dlls). " My answer - "Can you just create an assembly with the name VB6.dll?" Perhaps I should have said... "Yes. Create a .NET assembly called VB6.dll and use that if you need an instance of the assembly by that name." He never said he needed the functionality of the VB6.dll (why would he even want it?), and the question was so odd that I could not help myself with a minimalist effort and a bit of infamous NJ sarcasm. So... now you can get the hell off me. Just because I don't have the MicrosoftsValuablePenis :wtf: award in my sig doesn't mean I am any less capable or competent than any of you.

          J D 2 Replies Last reply
          0
          • A astanton1978

            The question - "Is it possible to create and instantiate a VB6 .dll in VB .Net without having a reference to the VB6 .dll? I tried to use the Assembly.LoadFrom method, which doesn't seem to work (and probably isn't intended for ActiveX .dlls). " My answer - "Can you just create an assembly with the name VB6.dll?" Perhaps I should have said... "Yes. Create a .NET assembly called VB6.dll and use that if you need an instance of the assembly by that name." He never said he needed the functionality of the VB6.dll (why would he even want it?), and the question was so odd that I could not help myself with a minimalist effort and a bit of infamous NJ sarcasm. So... now you can get the hell off me. Just because I don't have the MicrosoftsValuablePenis :wtf: award in my sig doesn't mean I am any less capable or competent than any of you.

            J Offline
            J Offline
            Jon_Boy
            wrote on last edited by
            #15

            astanton1978 wrote:

            He never said he needed the functionality of the VB6.dll (why would he even want it?), and the question was so odd that I could not help myself with a minimalist effort and a bit of infamous NJ sarcasm.

            Not sure I am following you.......why wouldn't you want to use custom working .dlls (even if they were not created solely in .Net)? We have several large custom .dlls and others that we rely on which control manufacturing devices; so converting everything at once is not viable. Normally, we would add a reference and use it like normal. We have a 'object checker' utility (created in vb6) which basically just uses CreateObject and attempts to instantiate an object for each .dll used by any one of our apps (helps figure out possible registration or missing files on the clients). Since there is interop going on, I modified this app to test all .Net and VB6 interop .dlls.... so I just need to be able to create an obj variable for each type of .dll without having any actual references.

            Any suggestions, ideas, or 'constructive criticism' are always welcome. "There's no such thing as a stupid question, only stupid people." - Mr. Garrison

            1 Reply Last reply
            0
            • J Jon_Boy

              Dave Kreskowiak wrote:

              Would you ever come up with a crack-smoking answer as the one that started this part of of the thread?

              Pass what he was smoking.........time to take a trip to la-la land. :omg: :wtf: Agreed on outsourcing and given a direct link to this and other forums. This may sound awful, but I have a list of four “special” users I will never respond to because the questions they post are entirely to basic and never provide any specific work (IE: "I need to create a contact database using VB, how do I do that?"), or when you do give the OP the correct answer or links to suitable examples (often line by line nonetheless) - they always bash you on the score. In all seriousness, I hope that my orig. question wasn’t too basic in nature. I tried to Google the answer, but kept finding the assembly.load examples which didn’t apply. If you find that one of my questions isn’t up to snuff, just let me know so that I can correct myself in the future.

              Any suggestions, ideas, or 'constructive criticism' are always welcome. "There's no such thing as a stupid question, only stupid people." - Mr. Garrison

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #16

              Your question was actually a good one. It's just that first answer you got what a ":WTF:" moment. If the question is good and the poster has added enough detail to prove some research effort, I don't have a problem with answering those "basic" questions at all. It's the ones who don't know how to, or don't want to, do any research that really irks me. Then to have someone follow up with a wild, off-the-wall, totally stupid and unresearched answer like that ... wow. It doesn't do anyone any good if the answer is just a wild guess.

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                   2006, 2007, 2008

              1 Reply Last reply
              0
              • A astanton1978

                The question - "Is it possible to create and instantiate a VB6 .dll in VB .Net without having a reference to the VB6 .dll? I tried to use the Assembly.LoadFrom method, which doesn't seem to work (and probably isn't intended for ActiveX .dlls). " My answer - "Can you just create an assembly with the name VB6.dll?" Perhaps I should have said... "Yes. Create a .NET assembly called VB6.dll and use that if you need an instance of the assembly by that name." He never said he needed the functionality of the VB6.dll (why would he even want it?), and the question was so odd that I could not help myself with a minimalist effort and a bit of infamous NJ sarcasm. So... now you can get the hell off me. Just because I don't have the MicrosoftsValuablePenis :wtf: award in my sig doesn't mean I am any less capable or competent than any of you.

                D Offline
                D Offline
                Dave Kreskowiak
                wrote on last edited by
                #17

                astanton1978 wrote:

                He never said he needed the functionality of the VB6.dll (why would he even want it?), and the question was so odd

                His question was perfectly understandable. It's your answer that threw me for loop. And you still persist with the "VB6.dll" name, when that wasn't even part of the question. The name of the assembly doesn't matter.

                astanton1978 wrote:

                So... now you can get the hell off me. Just because I don't have the MicrosoftsValuablePenis award in my sig doesn't mean I am any less capable or competent than any of you.

                All you had to do was ask for clarification of what his intent was. Now, this remark, ... really?? :|

                A guide to posting questions on CodeProject[^]
                Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                     2006, 2007, 2008

                A 1 Reply Last reply
                0
                • D Dave Kreskowiak

                  astanton1978 wrote:

                  He never said he needed the functionality of the VB6.dll (why would he even want it?), and the question was so odd

                  His question was perfectly understandable. It's your answer that threw me for loop. And you still persist with the "VB6.dll" name, when that wasn't even part of the question. The name of the assembly doesn't matter.

                  astanton1978 wrote:

                  So... now you can get the hell off me. Just because I don't have the MicrosoftsValuablePenis award in my sig doesn't mean I am any less capable or competent than any of you.

                  All you had to do was ask for clarification of what his intent was. Now, this remark, ... really?? :|

                  A guide to posting questions on CodeProject[^]
                  Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                       2006, 2007, 2008

                  A Offline
                  A Offline
                  astanton1978
                  wrote on last edited by
                  #18

                  Look at the question. "How to create a VB6 .dll object without having the .dll added as a reference?" That remark was just for you :rose:, since you decided to rip on me for reading his question differently.

                  D 1 Reply Last reply
                  0
                  • A astanton1978

                    Look at the question. "How to create a VB6 .dll object without having the .dll added as a reference?" That remark was just for you :rose:, since you decided to rip on me for reading his question differently.

                    D Offline
                    D Offline
                    Dave Kreskowiak
                    wrote on last edited by
                    #19

                    Note the space between VB6 and .DLL. Allow me to rephrase: How to [instantiate] an object [from a class] in a .DLL created with VB6.

                    A guide to posting questions on CodeProject[^]
                    Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                         2006, 2007, 2008

                    A 1 Reply Last reply
                    0
                    • D Dave Kreskowiak

                      Note the space between VB6 and .DLL. Allow me to rephrase: How to [instantiate] an object [from a class] in a .DLL created with VB6.

                      A guide to posting questions on CodeProject[^]
                      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                           2006, 2007, 2008

                      A Offline
                      A Offline
                      astanton1978
                      wrote on last edited by
                      #20

                      Howabout that. See, now that makes perfect sense. You are hereby nominated as official question translator for literal readers.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups