Results 1 to 7 of 7

Thread: Another OCX question for today

  1. #1

    Thread Starter
    Addicted Member ripple214's Avatar
    Join Date
    Nov 2002
    Location
    In Front of My Computer
    Posts
    141

    Another OCX question for today

    Hi,

    I have also made several ocxs myself and had used them in my programs. The problem is the deployment of the programs. How will I know if all my ocxs are registered in the computers to which they are supposed to run?
    [vbcode]
    If SymptomsPersist Then Goto VBForum
    [/vbcode]
    This is our world now...the world of the electron and the switch, the beauty of the baud.We make use of a service already existing without paying for what could be dirt cheep if it wasn't run by profiteering gluttons, and you call us criminals. We explore...and you call us criminals. We exist without skin color, without nationality, without religious bias...and you call us criminals. You build atomic bombs, wage wars, murder, cheat, and lie to us and try to make us believe it is for our own good, yet we're the criminals. Yes, I am a criminal. My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like. My crime is that of outsmarting you, something that you will never forgive me for. I am a hacker and this is my manifesto.You may stop this individual, but you can't stop us all...after all, we're all alike."

    +++The Mentor+++

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Another OCX question for today

    Originally posted by ripple214
    How will I know if all my ocxs are registered in the computers to which they are supposed to run?
    You won't get any errors.











    Just make sure you include them while packaging. That should be enough.

  3. #3

    Thread Starter
    Addicted Member ripple214's Avatar
    Join Date
    Nov 2002
    Location
    In Front of My Computer
    Posts
    141

    Duh!!!

    I hate to be rude, but isn't that what my question is for. If my programs are to be deployed, they must not have runtime errors. That's why I need to know if all my ocxs are registered. I mean I just can't wait until my program gives an error message just to know that the ocx is not registered. I need to know if all of them are registered during the start of my programs.
    [vbcode]
    If SymptomsPersist Then Goto VBForum
    [/vbcode]
    This is our world now...the world of the electron and the switch, the beauty of the baud.We make use of a service already existing without paying for what could be dirt cheep if it wasn't run by profiteering gluttons, and you call us criminals. We explore...and you call us criminals. We exist without skin color, without nationality, without religious bias...and you call us criminals. You build atomic bombs, wage wars, murder, cheat, and lie to us and try to make us believe it is for our own good, yet we're the criminals. Yes, I am a criminal. My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like. My crime is that of outsmarting you, something that you will never forgive me for. I am a hacker and this is my manifesto.You may stop this individual, but you can't stop us all...after all, we're all alike."

    +++The Mentor+++

  4. #4
    Fanatic Member TheVader's Avatar
    Join Date
    Oct 2002
    Location
    Rotterdam, the Netherlands
    Posts
    871
    As mendhak says, just use an installation to make sure the components are copied and registered. If users manually unregister them, it's not your fault.

    The only other solution I can think of is having a small executable that does not use the to-be-checked ActiveX controls to check if the controls are registered and available. If they are, the main app is started, otherwise the user is notified.
    Author for Visual Basic Web Magazine

    My articles on the Web Browser Control:
    Using the Web Browser Control & Using the DHTML Document Object Model

    The examples referenced in the articles can be found here:

  5. #5
    Frenzied Member dis1411's Avatar
    Join Date
    Mar 2001
    Posts
    1,048
    ahh say you could find out if an ocx was not registered.. what exactly would you do about it? tell the user which file is missing? this is exactly what happens already

  6. #6
    Fanatic Member TheVader's Avatar
    Join Date
    Oct 2002
    Location
    Rotterdam, the Netherlands
    Posts
    871
    Well, you should at least tell them that the file is missing. If you want to make your app more user-friendly, you could automatically download the missing files (either from MS or perhaps from your own server if you have one) and install/register them. Or you could ask for the application CD and copy them from there if your app was distributed that way.
    Author for Visual Basic Web Magazine

    My articles on the Web Browser Control:
    Using the Web Browser Control & Using the DHTML Document Object Model

    The examples referenced in the articles can be found here:

  7. #7
    PowerPoster Arc's Avatar
    Join Date
    Sep 2000
    Location
    Under my rock
    Posts
    2,336
    Use the Package and Deployment program provided with VB or use a 3rd party version. Either way, all you have to do is tell the package to include your OCX and it will gather all the needed files ona install/register everything for you. You should have no problems.

    Why are you trying to make it more complicated than it is?
    -We have enough youth. How about a fountain of "Smart"?
    -If you can read this, thank a teacher....and since it's in English, thank a soldier.


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