Free selectors and environment variables 
Author Message
 Free selectors and environment variables

Hi everybody !

I've got two distinct problems, both in VB 3.0 on WfW 3.11 :
1- How is it possible to set the value of an environment variable (such as
PATH) from a VB program ? I know how to read it (Environ$), but I'd like to
change its value.

2- I noticed that MS Word uses selectors from the global heap, but doesn't
frees them when it quits, so I have to reboot the machine manually
(Ctrl-Alt-Del). All I want to do is periodically read the number of free
selectors and automatically reboot when I'm going to run out of selectors.
I read a program written in C++ to retrieve the number of free selectors,
but I'm unable to "translate" it in VB (I'm not very good at reading C++).

Thanks for your help !

Estelle

--
========================================

Sema Group Telecom - Rennes, France
 +33.(0)2.99.84.24.39 (phone)
 +33.(0)2.99.63.71.19 (fax)
========================================



Tue, 07 Mar 2000 03:00:00 GMT  
 Free selectors and environment variables

Estelle --

You'll probably get better responses to these very Win16-specific and
very non-Win32 questions by posting them to one of the many win16,
word,  or win3x_wfw_dos newsgroups hosted here.

Quote:

> Hi everybody !

> I've got two distinct problems, both in VB 3.0 on WfW 3.11 :
> 1- How is it possible to set the value of an environment variable
> (such as
> PATH) from a VB program ? I know how to read it (Environ$), but I'd
> like to
> change its value.

> 2- I noticed that MS Word uses selectors from the global heap, but
> doesn't
> frees them when it quits, so I have to reboot the machine manually
> (Ctrl-Alt-Del). All I want to do is periodically read the number of
> free
> selectors and automatically reboot when I'm going to run out of
> selectors.
> I read a program written in C++ to retrieve the number of free
> selectors,
> but I'm unable to "translate" it in VB (I'm not very good at reading
> C++).

> Thanks for your help !

> Estelle

> --
> ========================================

> Sema Group Telecom - Rennes, France
>  +33.(0)2.99.84.24.39 (phone)
>  +33.(0)2.99.63.71.19 (fax)
> ========================================

-- Aaron
---------------------
Aaron J Margosis

ScrnSaveSwitch/Plus - Screen Saver Control Utility:
http://members.aol.com/aaronmarg/ssswitch/


Sat, 11 Mar 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Free selectors and Environment variables

2. Global Variable as record selector (Jet)

3. Global Variable as record selector (Jet)

4. Global Variable as record selector (Jet)

5. Global Variable as record selector (Jet)

6. Environment variable...

7. Write Environment Variables

8. Environment Variables

9. Environment Variables

10. querying environment variables from vba

11. WORD Environment Variables

12. Using Environment Variable in Template path

 

 
Powered by phpBB® Forum Software