search for: setenvironmentvariable

Displaying 5 results from an estimated 5 matches for "setenvironmentvariable".

2005 Dec 18
8
Invoking Rails from an API
...is unsafe for multithreaded invocation. Is there a distribution that can handle multiple ruby VMs? TIA. -- SS ==SAMPLE CODE== int main(int argc, char* argv[]) { #if defined(NT) NtInitialize(&argc, &argv); #endif ruby_init(); ruby_init_loadpath(); //chdir( "" ); ::SetEnvironmentVariable( "SCRIPT_NAME", "/MyTest" ); ::SetEnvironmentVariable( "REQUEST_URI", "http://localhost:3000/MyTest#index" ); ::SetEnvironmentVariable( "QUERY_STRING", "" ); ::SetEnvironmentVariable( "REQUEST_METHOD", "GET" ); ::S...
2009 Feb 10
1
need help with installRExcel()
...ind_connector: found "R 00000027 0.00133204 [2416] looking up registry key at "HKCU\Software\R-core\R\InstallPath" 00000028 0.00139897 [2416] looking up registry key at "HKLM\Software\R-core\R\InstallPath" 00000029 0.00154388 [2416] SetEnvironmentVariable("R_HOME","C:\Documents and Settings\xushita\R\R-2.8.1") 00000030 0.00161946 [2416] SetEnvironmentVariable("PATH","C:\progra~1\oracle\product\10.2.0\bin;C:\Program Files\blp\API\dde\;C:\Program Files\blp\API\;C:\Program Files\TimeScape\Program;C:\P...
2003 May 05
1
R-1.7.0: Rproxy.dll loadlibrary/freelibrary error (PR#2914)
...bData); RegCloseKey (hkey); } if (rc == ERROR_SUCCESS) { // set R_HOME char *buf; buf = (char *) malloc ((strlen (DLLlocation) + 8) * sizeof (char)); strcpy (buf, "R_HOME="); strcat (buf, DLLlocation); putenv (buf); //SetEnvironmentVariable ("R_HOME",DLLlocation); strcat (DLLlocation, "\\bin\\"); strcat (DLLlocation, RDLL); OutputDebugString(DLLlocation); m_ProxyModule = LoadLibraryEx (DLLlocation, NULL, LOAD_WITH_ALTERED_SEARCH_PATH); if (m_ProxyModule == 0) { sprintf(lTra...
2006 Nov 27
1
R.DLL mapping by P/Invoke
...//- Get the active DLL path from the registry string dllPath = Convert.ToString( Registry.LocalMachine.OpenSubKey("Software\\R-core\\R", false).GetValue("InstallPath") ); //- Fix the process PATH Environment.SetEnvironmentVariable("PATH", dllPath + "\\bin;" + Environment.GetEnvironmentVariable("PATH"), EnvironmentVariableTarget.Process ); //- Load the R.DLL module into the process sg_hModR = LoadLibrary(dllPath + &q...
2007 Oct 17
0
Using R.dll in .NET IPC
...//- Get the active DLL path from the registry string dllPath = Convert.ToString( Registry.LocalMachine.OpenSubKey("Software\\R-core\\R", false).GetValue("InstallPath") ); //- Fix the process PATH Environment.SetEnvironmentVariable("PATH", dllPath + "\\bin;" + Environment.GetEnvironmentVariable("PATH"), EnvironmentVariableTarget.Process ); //- Load the R.DLL module into the process sg_hModR = LoadLibrary(dllPath + &q...