Results 1 to 10 of 10

Thread: Need an advice regarding OCX file

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2007
    Location
    Brunei Darussalam
    Posts
    50

    Need an advice regarding OCX file

    i just want to ask a question about OCX,
    everytime im going to create a simple program like for example this yahoo invisible checker



    after compiling it the program works perfect here in my computer (from the PC where i have my VB6 installed)
    then if im going to put it on the other machine with same OS which is XP it asks for an OCX, after putting an OCX yes it will work now my question is:

    is there any way to get rid of that? i mean creating a simple program without having an error with OCX?

    like for example if you add and xpbutton.ocx on your program you also need to put that ocx on the folder of the exe if you are going to use it in other PC,

    so its not adviceable to use thing like xpbutton or any other thing which is needed to have an ocx?

    what can you advice for a newbie like me regarding ocx?

  2. #2
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Need an advice regarding OCX file

    Off Topic: I am curious...

    1) How would you check if someone is in invisible mode?
    2) Whether it is ethical to do so i.e. if you can do that check... considering that it is an invasion of privacy?
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  3. #3

    Thread Starter
    Member
    Join Date
    Dec 2007
    Location
    Brunei Darussalam
    Posts
    50

    Re: Need an advice regarding OCX file

    ohh sorry for that sir,
    its just a personal use, and i dont have any intention to bother anyone on my contact while he is on invi mode,

    its just happen that i am selling something which is gsm related gadget like samsung unlocker, nokia flasher/unlocker and LG Motorola and other brands which is a gadget on gsm business and the scenario is i can give this gadget on my friends which i know personally, i can sell them without having me paid fully. i mean they can give half the price of it and the other half is on the next month...or when the time they want me to pay

    sad to say there are people that when you owe something on him he just hide himself on yahoo... and never make himself available with my account... that is the reason why i have that program...
    sometimes its absurd that almost 4-6 months never been online...

    hope you understand my point.


    can you answer my question now

    thank you sir for the reaction.

  4. #4
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780

    Re: Need an advice regarding OCX file

    Nearly every vb6 app uses an Ocx in some form or another. Its just a libray of code you are using. The long and short of it is this. If you use the Ocx, you have to ship your application with it unless they already have it.

    You can remove your dependencies on a library by coding one yourself, but as you have chosen to use an Ocx you either don't want to code one yourself, your can't code it yourself or you can't be bothered . Why re-invent the wheel.

  5. #5

    Thread Starter
    Member
    Join Date
    Dec 2007
    Location
    Brunei Darussalam
    Posts
    50

    Re: Need an advice regarding OCX file

    well to be honest im a newbie, and i cant code such thing by my self (dll's)

    so i need bring those ocx together with my file everytime i want to use it on other pc ( its not that hard)
    and i will just accept it

    another question about DLL, so if im going to put the application on the other pc and it request a dll like for example MSSTDFMT.DLL, do i really need to register it? not like the ocx that it will work without registering it?

    i put the dll on syste32 and still it said need to register the dll bla bla bla,

    sorry its noob's question,
    i should have search it on google instead of asking it here, am getting shy to ask and bother you guys to answer my noob question
    sorry for that

    i appreciate the answer...

    thanks sir

  6. #6
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780

    Re: Need an advice regarding OCX file

    The application will look in the registry for the location of the .ocx file. You can have more than 1 on your machine so when you register a file you tell it to use THAT version of the file. However, if they have another application that can not use this version of the file, it will break. This is where the expression "dll-hell" comes in (same for .ocx files, they are very similar).

    If its a system ocx, like 'common controls' then its likely already installed, if its not installed, you have to do it. Thats the whole purpose of installers to deal with issues like this. As you have said its only for you, just keep running the app until you get a list of things that are not installed and copy em, register them and move on. If you want to do it properly, you've got some reading to do.

  7. #7

    Thread Starter
    Member
    Join Date
    Dec 2007
    Location
    Brunei Darussalam
    Posts
    50

    Re: Need an advice regarding OCX file

    Loud and Clear,

    atleast i now have an idea what to do next read and read
    think i have to go to the next step...

    thanks all, and i think i have the answer i want to know

    regards

  8. #8
    Hyperactive Member
    Join Date
    Jul 2009
    Posts
    489

    Re: Need an advice regarding OCX file

    Quote Originally Posted by koolsid View Post
    Off Topic: I am curious...

    1) How would you check if someone is in invisible mode?
    2) Whether it is ethical to do so i.e. if you can do that check... considering that it is an invasion of privacy?
    this is a common use by many app in MSN (old versions)
    these days, the only thing that left is that you can know
    if your one of your contact man has deleted you from his list
    and this feature is supoorted also by MSN itself, (not only third party)
    isn't it invasion of privacy ?

  9. #9
    Hyperactive Member
    Join Date
    Jul 2009
    Posts
    489

    Re: Need an advice regarding OCX file

    to the OP
    you can put all the components (exe,ocx,dll) in one folder
    and pack this folder to a self exctractor file.

    this way all the files will be exctracted and everything should work.
    you can also include setup program in this package.

    for more details, you can look at WinRAR (shareware) site or 7-ZIP (open source) site

  10. #10

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