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

Visual Basic

 
GeneralRe: how can I close .exe in multiple forms? Pin
Colin Angus Mackay5-Aug-04 10:15
Colin Angus Mackay5-Aug-04 10:15 
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 
Dave, thanks for your help so far.

First of all I'm using Windows 2000 and have SP4 installed.

The code that I use for setting the environment variables is as per my previous posting...
http://www.codeproject.com/script/comments/forums.asp?msg=880420&forumid=1646&XtraIDs=1646&searchkw=environment+variable&sd=5%2F7%2F2004&ed=8%2F5%2F2004#xx880420xx

This sets the environment variables for the windows system AND then for my application via a call to SetEnvronmentVariableA in kernel32.dll

AFTER all the environment variables have been set I can open a command prompt and see them, or I can use Debug.Print Environ("my_var") in the command window of visual studio and see that they are set

Also AFTER the environment variables are set I then load my unmanaged DLL dynamically using the LoadLibrary function of kernel32.dll

I have scoured the net and seen other people state that the environment that the dynamically loaded DLL inherits will be that set when the .NET application is first loaded, but have not seen any solutions to this if this is true.

However, as mentioned before I have an older version of the unmanaged DLL that seems to pick up the environment variables fine even when only using SetEnvironmentVariableA and not propagating them to the Windows system. This is why I was starting to think there may be something in the way the DLL is compiled. Problem is I can't stick with the older version of the DLL and some new stuff has been added to the current version which I am reliant upon.
GeneralRe: more on environment variables Pin
Dave Kreskowiak26-Aug-04 1:33
mveDave Kreskowiak26-Aug-04 1:33 
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 

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.