Results 1 to 9 of 9

Thread: Very Important problem in OCX & Resource (plzzzzzzzzzzzzzzzzzzzzz)

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    120

    Thumbs down Very Important problem in OCX & Resource (plzzzzzzzzzzzzzzzzzzzzz)

    Note: I don't speak english very well
    ...
    well i don't know where to start..
    ok.. i made a program using "comdlg32.ocx" and then a made another program wich contain a resource file....
    this resource file contain "comdlg32.ocx
    and i make it EXE..
    and when i start the program.. the OCX files will go to the system directory...
    but when i start the program that i use in it the OCX file,the program dosn't work (but the comdlg32.ocx is in the system directory ) the picture of the message box is in the Attachement

    and plz don't tell me to use a setup program or any thing like that
    i hope that you understand what i mean cause i don't speak english very well..
    Attached Images Attached Images  
    Last edited by Shady Soft; Feb 10th, 2005 at 09:17 PM.

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Very Important problem in OCX & Resource (plzzzzzzzzzzzzzzzzzzzzz)

    Click on Add-ins -> Add In Manager, and click on the Package and Deployment Wizard, (not highlighted, but shown below). Double-click on it, and set it to Load at Startup. Then, you can read this tutorial on how to use it. Welcome to the forums. Good Luck!

    http://www.developerfusion.co.uk/show/27/1/
    Attached Images Attached Images  

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    120

    Re: Very Important problem in OCX & Resource (plzzzzzzzzzzzzzzzzzzzzz)

    First..thx for ur help
    but i said ("and plz don't tell me to use a setup program or any thing like that")
    you maybe didn't understand what i mean....
    the only raison that made me ask this question cause i know that there is an answer...
    cause i see it in another program (i couldn't put it in the attachement cause they tell me (exemple.zip:
    File Too Large. Limit for this filetype is 500.0 KB. Your file is 558.9 KB. )
    download from here:
    http://www.geocities.com/kkanj22/exemple.zip
    this file contain 3 ocx files..and when u run it..the program will extract them to the sys dir...(that is what i did..but like i told u before it appear an error)..
    Conclusion: I want to know how to made a program like that
    and maybe then you'll know what i mean(and thx for ur help)
    plzzzzzzzzzzzz...i really need the answer for this question
    Last edited by Shady Soft; Feb 10th, 2005 at 10:58 PM.

  4. #4
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Very Important problem in OCX & Resource (plzzzzzzzzzzzzzzzzzzzzz)

    Do you mean how to register it?

    VB Code:
    1. REGSVR32 \MyPath\MyControl.OCX

    I thought the P&D may be too dificult, so I tried to simplify it.

    Also, keep in mind that not all ocx's can be given away freely, and don't always install everywhere that you want them to install.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    120

    Re: Very Important problem in OCX & Resource (plzzzzzzzzzzzzzzzzzzzzz)


    I don't know what is the problem any more
    i don't know if the problem is registartion + when i write that is Start>>Run
    REGSVR32 "c:/WINDOWS/SYSTEM/COMDLG32.OCX"
    they tell me (in the attachement)
    but whyyyyyyyyyyyyyyyyy(the Ocx file is in the sys dir)
    what should i do..
    this problem is driving me crazy
    Attached Images Attached Images  

  6. #6
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Very Important problem in OCX & Resource (plzzzzzzzzzzzzzzzzzzzzz)

    Which version of VB do you have?

    Sorry, I don't run other peoples .exe's. The problem may be that the control is already registered.

    You could try unregistering it.
    VB Code:
    1. Regsvr32 /u myocx.ocx

    and then try registering it again. it seems odd that the program won't run, though. it may use a different version, in which case you may harm your system.
    Last edited by dglienna; Feb 10th, 2005 at 11:54 PM.

  7. #7
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    784

    Re: Very Important problem in OCX & Resource (plzzzzzzzzzzzzzzzzzzzzz)

    regsvr32 c:\windows\system\comdlg32.ocx (for win 9x)
    or
    regsvr32 c:\winnt\system32\comdlg32.ocx (for win me,xp,2000,nt)

    if you're not sure where is comdlg32.ocx then do search file then re-run that command (don't forget to also specified the path)

    good luck

    Winanjaya

  8. #8
    Addicted Member VbMafia's Avatar
    Join Date
    Sep 2004
    Location
    Pilipinas
    Posts
    177

    Re: Very Important problem in OCX & Resource (plzzzzzzzzzzzzzzzzzzzzz)

    dglienna something is missing the regedit can help in most
    " I never did anything worth doing entirely by accident.... Almost none of my inventions were derived in that manner. They were achieved by having trained myself to be analytical and to endure and tolerate hard work."

    " Many of life's failures are experienced by people who did not realize how close they were to success when they gave up. "
    - Thomas Alva Edison-

    In God We Trust

  9. #9
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    Re: Very Important problem in OCX & Resource (plzzzzzzzzzzzzzzzzzzzzz)

    What on earth??????

    Why are you placing OCXs in your EXE and then extracting them?
    Why? I am totally confused. What benefit does this have?
    I would seriously not use this method as you have the ability to trash a PC...

    What's wrong with a setup package?

    Woka

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