Results 1 to 10 of 10

Thread: Activex Strike

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Location
    Mexico
    Posts
    24

    Angry

    Hello, When Deploying an application, all the windows that have an Activex that I created with VB6 do not appear. Ive checked and they only go throught the Init event of the form, after that it does nothing. The Activex is loaded but it does work in my machine pretty well.
    Help Please
    Thanks
    Chicho

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    by ActiveX do you mean OCX, EXE or DLL?
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Location
    Mexico
    Posts
    24

    Smile

    It is an .ocx with a TDBGRID, ActiveBAR, and a Class I use it for ABC's The strange part is that in some computers does work but still dont know why.
    Thanks!
    Chicho

  4. #4
    Guest
    Did you remember to register it?

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Location
    Mexico
    Posts
    24

    Smile

    I used Wise Instalation software, the .ocx had self-registered checked on. Is there a manual way to register it?

  6. #6
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Code:
    Private Declare Function GetSystemDirectory Lib "Kernel32" Alias "GetSystemDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long
    Private Property Get systemdir$()
        Dim str As String * 256, length&
        length = GetSystemDirectory(str, 256&)
        systemdir = Left(str, length)
    End Property
    
    
    'You shell RegSrv32.exe in system directory:
    Shell systemdir & "\Regsvr32.exe /s " & YouOCXpath
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  7. #7
    Hyperactive Member dsy5's Avatar
    Join Date
    Jul 2000
    Location
    Lockport, NY
    Posts
    362

    Just trying to learn some of the tricks

    Originally posted by kedaman
    Code:
    Private Property Get systemdir$()
        Dim str As String * 256, length&
        length = GetSystemDirectory(str, 256&)
        systemdir = Left(str, length)
    End Property
    I'm trying to learn some of this, so be patient. Why the $ in your property "Get systemdir$()"? What does
    the "Dim str As String * 256, length&" do? and what is the reasoning for the ampersand after "length&"?

    Also, why the ampersand after 256 in the following line -
    " length = GetSystemDirectory(str, 256&)" ?

    I'm assuming that there is a ")" where the smiley is - maybe
    it would be a good idea for us to disable smileys when
    posting code ;)

    [Edited by dsy5 on 08-09-2000 at 07:44 PM]
    Donald Sy - VB (ab)user

  8. #8
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Appending a symbol sets the type:
    Code:
    Dim str$
    Dim str as String
    are identical. It works the same way for functions.

    Using Dim str as String * 256 limits the length to 256 characters (and sets the buffer up).

    Appending a & sets it as a number (I think a Long).
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  9. #9
    Hyperactive Member dsy5's Avatar
    Join Date
    Jul 2000
    Location
    Lockport, NY
    Posts
    362
    Originally posted by parksie
    Appending a symbol sets the type:
    Code:
    Dim str$
    Dim str as String
    are identical. It works the same way for functions.

    Using Dim str as String * 256 limits the length to 256 characters (and sets the buffer up).

    Appending a & sets it as a number (I think a Long).
    Muchas gracias, I suppose a good book would be in order -
    I'm used to VBA, there was such an abundance of help in Office. Any suggestions?
    Donald Sy - VB (ab)user

  10. #10
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Hardcore Visual Basic is supposed to be quite good.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

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