OCX's Outside the Win\Sys Dir ? Beginner Question ... 
Author Message
 OCX's Outside the Win\Sys Dir ? Beginner Question ...

I'm fairly new to Visual Basic programming, but I have run into a
problem trying to create a 'clean' program.  I have a need to create a
program that keeps all DLLs and OCXs and any other file called within
the application's directory with NOTHING installed to the
Windows\system directory.
 Any hints ... Where does Visual Basic 4 keep track of where to call
the libs from ? Is it easily manipulated ?

 Also on a similar note, how do  I set the working environment in the
Visual Basic IDE to a directory other than VB ?

    -Thanks
     Keith



Sun, 19 Jul 1998 03:00:00 GMT  
 OCX's Outside the Win\Sys Dir ? Beginner Question ...

Quote:

>I'm fairly new to Visual Basic programming, but I have run into a
>problem trying to create a 'clean' program.  I have a need to create a
>program that keeps all DLLs and OCXs and any other file called within
>the application's directory with NOTHING installed to the
>Windows\system directory.
> Any hints ... Where does Visual Basic 4 keep track of where to call
>the libs from ? Is it easily manipulated ?

OLE DLLs and OCXes can be registered anywhere. Just put them in the
directory where you want them and then use "regsvr32 filename" to
register them in that location.

Standard DLLs can be called from a specified path (with the Declare
Function statement) as for the "system" ones (like VB4032.DLL) I would
strongly recommend putting them in their standard location.

Regards,
Rod



Sun, 19 Jul 1998 03:00:00 GMT  
 OCX's Outside the Win\Sys Dir ? Beginner Question ...

writes:

Quote:
>'m fairly new to Visual Basic programming, but I have run into a
>problem trying to create a 'clean' program.  I have a need to create a
>program that keeps all DLLs and OCXs and any other file called within
>the application's directory with NOTHING installed to the
>Windows\system directory.
> Any hints ... Where does Visual Basic 4 keep track of where to call
>the libs from ? Is it easily manipulated ?

> Also on a similar note, how do  I set the working environment in the
>Visual Basic IDE to a directory other than VB ?

Win searches the Current Dir first, then Windows, then WinSys, then the
Path specified, in some cases it seems to search a Netpath too.  

This is NOT configurable.  THe probem you WILL have is that you have ver
1.1 of an OCX in your app dir.  Win will not use it, if ver .9(b) is
already loaded into memory.

You can read your INI file for a work dir and ChDir to it in code, or set
the working dir in the properties dialog of ProgMan/Start menu

HTH
-Mike



Sun, 19 Jul 1998 03:00:00 GMT  
 OCX's Outside the Win\Sys Dir ? Beginner Question ...

infinite reservoirs of wisdom:

Quote:
> Any hints ... Where does Visual Basic 4 keep track of where to call
>the libs from ? Is it easily manipulated ?

You can put the DLLs and OCXs in the apps path without problems.

Quote:
> Also on a similar note, how do  I set the working environment in the
>Visual Basic IDE to a directory other than VB ?

Change the work dir in the Program Manager icon.

Jens
--
Everything I said are the opinions of someone else.
I just cut-and-pasted.

Jens Balchen jr.       http://www.sn.no/~balchen



Mon, 20 Jul 1998 03:00:00 GMT  
 OCX's Outside the Win\Sys Dir ? Beginner Question ...

Quote:

>infinite reservoirs of wisdom:
>> Any hints ... Where does Visual Basic 4 keep track of where to call
>>the libs from ? Is it easily manipulated ?
>You can put the DLLs and OCXs in the apps path without problems.

This works fine, except for the *.ini file!!!!


Fri, 07 Aug 1998 03:00:00 GMT  
 OCX's Outside the Win\Sys Dir ? Beginner Question ...

reservoirs of wisdom:

Quote:
>This works fine, except for the *.ini file!!!!

yup, Windows *wants* to find the INI file in the WIN dir. *sigh*


--
Newbiehood is not a period of time, it's a way of life.

http://www.sn.no/~balchen
ftp://ftp.sn.no/user/balchen/



Sat, 08 Aug 1998 03:00:00 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. Do OCX's have to be in the Win\Sys directory

2. sys tray popup menu won't go

3. MSINET.OCX *still* won't register, and now IE4 won't install

4. CreateProcessA synchronous process won't work outside of VB environment

5. control won't display outside of container

6. CreateProcessA synchronous process won't work outside of VB environment

7. Listing Dir's inside Dir's

8. Dir won't give me just DIRs in VB 4.0

9. Dir function won't work in ActiveX DLL

10. Find WIN DIR/MSIE tmp dir

11. **** QUESTION: How to read Disk File/Dir structure into TREEVIEW control (VB4, Win NT/95)

12. VB4.0 won't register OCX's built with VC++4.0

 

 
Powered by phpBB® Forum Software