Click here to Skip to main content
15,920,005 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: how can I close .exe in multiple forms? Pin
Lisana5-Aug-04 10:44
Lisana5-Aug-04 10:44 
GeneralRe: how can I close .exe in multiple forms? Pin
Colin Angus Mackay5-Aug-04 10:56
Colin Angus Mackay5-Aug-04 10:56 
GeneralRe: how can I close .exe in multiple forms? Pin
Lisana5-Aug-04 11:04
Lisana5-Aug-04 11:04 
GeneralRe: how can I close .exe in multiple forms? Pin
Colin Angus Mackay5-Aug-04 13:29
Colin Angus Mackay5-Aug-04 13:29 
Generalmore on environment variables Pin
madfiddlerchris5-Aug-04 4:18
madfiddlerchris5-Aug-04 4:18 
GeneralRe: more on environment variables Pin
Dave Kreskowiak5-Aug-04 7:29
mveDave Kreskowiak5-Aug-04 7:29 
GeneralRe: more on environment variables Pin
madfiddlerchris25-Aug-04 0:31
madfiddlerchris25-Aug-04 0:31 
GeneralRe: more on environment variables Pin
Dave Kreskowiak26-Aug-04 1:33
mveDave Kreskowiak26-Aug-04 1:33 
I seem to remember that there was a problem in Windows 2000 with Environment Variables, but I can't remember what. It was fixed in Service Pack 3, I think. That could be why it worked for a previous version and not now. I has nothing to do with how your .DLL was compiled.

The changes you're making in the environment are taking effect in everything else, but I don't think they are taking effect in your application before you load your .DLL. To test this, you'll have to make your app make the changes in the System Environment and broadcast the WM_SETTINGCHANGE message. Make sure the changes took by launching a command prompt and dumping the environment strings with the SET command. The next thing your app has to do is dump all of it's environment settings with the System.Environment class:
Imports System
Imports System.Collections
.
.
.
    Dim envVars As IDictionary = Environment.GetEnvironmentVariables()
    Dim de As DictionaryEntry
    For Each de In envVars
        Debug.WriteLine(de.Key & " = " & de.Value)
    Next

If these two lists match, you're in business. If not, it means that your application isn't picking up the system variables. A work around would have to be devised...


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: more on environment variables Pin
madfiddlerchris26-Aug-04 2:10
madfiddlerchris26-Aug-04 2:10 
GeneralRe: more on environment variables Pin
Dave Kreskowiak27-Aug-04 17:56
mveDave Kreskowiak27-Aug-04 17:56 
GeneralRemoving Flicker in an scrolling image Pin
VVision5-Aug-04 3:48
VVision5-Aug-04 3:48 
GeneralRe: Removing Flicker in an scrolling image Pin
Gary Shel18-Aug-04 12:07
Gary Shel18-Aug-04 12:07 
GeneralUnspecified Error using .NET System.DirectoryServices on Windows NT Pin
Rahsas5-Aug-04 3:20
Rahsas5-Aug-04 3:20 
GeneralRe: Unspecified Error using .NET System.DirectoryServices on Windows NT Pin
Rahsas5-Aug-04 8:51
Rahsas5-Aug-04 8:51 
GeneralCreating multiple forms Pin
Simon Kearn5-Aug-04 0:19
sussSimon Kearn5-Aug-04 0:19 
GeneralRe: Creating multiple forms Pin
Jim Matthews5-Aug-04 3:49
Jim Matthews5-Aug-04 3:49 
GeneralRe: Creating multiple forms Pin
Simon Kearn5-Aug-04 4:21
sussSimon Kearn5-Aug-04 4:21 
GeneralRe: Creating multiple forms Pin
Dave Kreskowiak5-Aug-04 5:33
mveDave Kreskowiak5-Aug-04 5:33 
GeneralRe: Creating multiple forms Pin
Simon Kearn5-Aug-04 6:07
sussSimon Kearn5-Aug-04 6:07 
GeneralRe: Creating multiple forms Pin
Dave Kreskowiak5-Aug-04 7:14
mveDave Kreskowiak5-Aug-04 7:14 
GeneralRe: Creating multiple forms Pin
Jim Matthews5-Aug-04 7:33
Jim Matthews5-Aug-04 7:33 
GeneralRe: Creating multiple forms Pin
Anonymous6-Aug-04 1:04
Anonymous6-Aug-04 1:04 
GeneralError on data adapter Pin
ibok234-Aug-04 15:30
ibok234-Aug-04 15:30 
GeneralRe: Error on data adapter Pin
Dave Kreskowiak5-Aug-04 5:30
mveDave Kreskowiak5-Aug-04 5:30 
GeneralRe: Error on data adapter Pin
ibok235-Aug-04 13:13
ibok235-Aug-04 13:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.