Saturday, April 13, 2013

Visual c++ Converting String ^ to std::string (basic string)

private: string toString(String ^ s) {
    string n;
    using namespace Runtime::InteropServices;
    const char * chars = (const char * )(Marshal::StringToHGlobalAnsi(s)).ToPointer();
    n = chars;
    Marshal::FreeHGlobal(IntPtr((void * ) chars));
    return n;

Tuesday, April 2, 2013

Oracle server developer installation on windows

Setting up oracel server
  1. Download Oracle SQL Express Edition 11g Click Here
  2. Unzip the downloaded file open DISK1 folder and run the setup.exe 
  3. While installation enter a password for System (administrator) account **(important)** 
  4. After installation is done Go to Start -> Run -> services.msc in windows 
  5. Check the service called OracleServiceORCL if there is nothing called OracleServiceORCLservice 
  6. Start -> Run -> cmd type on cmd to create the service c:\ORADIM -NEW -SID ORCL 
  7. Again navigate to services.msc and select OracleServiceORCL service and start the service 
  8. Again navigate to cmd it's good that you restart cmd prompt type c:\sqlplus system@orcl on cmd 
  9. Then it will ask to Enter password: so enter the password that you entered while installation process (3rd step) 
  10. Then cmd will ask to Enter user-name: system default user name is system 
  11. Again Enter password: -> and enter 
  12. Finally this is the success message Connected to:Oracle Database 11g Express Edition Release - Production 
  13. Open the desktop icon called Get Started With Oracle Database 11g Express Edition 
  14. Server installation DONE!

Setting up oracle sqldeveloper

  1. Download the oracle sqldeveloper Click Here
  2. Extract and open sqldeveloper.exe 
  3. Tick all the file types, then click OK button 
  4. Then right click on Connections and click New Connection 
  5. Inside New Connection enter any connection name 
  6. Enter username as default one called system 
  7. Enter password as server password that you entered while oracle server installation 
  8. Test the connection if succeeded, Save and Connect DONE!