Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. Advice for remote dabase....

Advice for remote dabase....

Scheduled Pinned Locked Moved Managed C++/CLI
c++phpdatabasemysqlsysadmin
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Thilek
    wrote on last edited by
    #1

    hi guys, i am creating a VC++ program that connect to mysql database on remote server.i have tried few steps but it didnt work.i need advice on which database i should use and it must be in a remore location. i create a mysql database on speedhosting.co.cc but its a database for php. Is it possible for a C++ program connect to it and get data from there ??

    L 1 Reply Last reply
    0
    • T Thilek

      hi guys, i am creating a VC++ program that connect to mysql database on remote server.i have tried few steps but it didnt work.i need advice on which database i should use and it must be in a remore location. i create a mysql database on speedhosting.co.cc but its a database for php. Is it possible for a C++ program connect to it and get data from there ??

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Thilek wrote:

      i am creating a VC++ program

      Why have you moved this topic to the Managed C++/CLI forum? Are you doing CLI development?

      Thilek wrote:

      i have tried few steps but it didnt work

      We are not mystical beings and therefore have no idea what you have tried unless you provide that information.

      T M 2 Replies Last reply
      0
      • L led mike

        Thilek wrote:

        i am creating a VC++ program

        Why have you moved this topic to the Managed C++/CLI forum? Are you doing CLI development?

        Thilek wrote:

        i have tried few steps but it didnt work

        We are not mystical beings and therefore have no idea what you have tried unless you provide that information.

        T Offline
        T Offline
        Thilek
        wrote on last edited by
        #3

        i use .net for this program.. below is my coding :-

        #pragma once
        #include <mysql.h>

        namespace trialcpp {

        using namespace System;
        using namespace System::ComponentModel;
        
        using namespace System::Collections;
        using namespace System::Windows::Forms;
        using namespace System::Data;
        using namespace System::Drawing;
        using namespace MySql::Data::MySqlClient;
        
        
        /// <summary>
        /// Summary for Form1
        ///
        /// WARNING: If you change the name of this class, you will need to change the
        ///          'Resource File Name' property for the managed resource compiler tool
        ///          associated with all .resx files this class depends on.  Otherwise,
        ///          the designers will not be able to interact properly with localized
        ///          resources associated with this form.
        /// </summary>
        
        
        public ref class Form1 : public System::Windows::Forms::Form
        {
        public:
        	Form1(void)
        	{
        		InitializeComponent();
        		//
        		//TODO: Add the constructor code here
        		//
        	}
        	
        
        protected:
        	/// <summary>
        	/// Clean up any resources being used.
        	/// </summary>
        	~Form1()
        	{
        		if (components)
        		{
        			delete components;
        		}
        	}
        
        
        private: System::Windows::Forms::Button^  cmdLogin;
        private: System::Windows::Forms::Button^  cmdExit;
        
        protected: 
        
        private:
        	/// <summary>
        	/// Required designer variable.
        	/// </summary>
        	System::ComponentModel::Container ^components;
        

        #pragma region Windows Form Designer generated code
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        void InitializeComponent(void)
        {
        this->cmdLogin = (gcnew System::Windows::Forms::Button());
        this->cmdExit = (gcnew System::Windows::Forms::Button());
        this->SuspendLayout();
        //
        // cmdLogin
        //
        this->cmdLogin->Location = System::Drawing::Point(52, 190);
        this->cmdLogin->Name = L"cmdLogin";
        this->cmdLogin->Size = System::Drawing::Size(75, 23);
        this->cmdLogin->TabIndex = 0;
        this->cmdLogin->Text = L"Login";
        this->cmdLogin->UseVisualStyleBackColor = true;
        this->cmdLogin->Click += gcnew System::EventHandler(this, &Form1::cmdLogin_Click);
        //
        // cmdExit
        //
        this->cmdExit->Location = System::Drawing::Point(175, 190);
        this->cmdExit->Name = L"cmdExit";
        this->cmdExit->Size = System

        1 Reply Last reply
        0
        • L led mike

          Thilek wrote:

          i am creating a VC++ program

          Why have you moved this topic to the Managed C++/CLI forum? Are you doing CLI development?

          Thilek wrote:

          i have tried few steps but it didnt work

          We are not mystical beings and therefore have no idea what you have tried unless you provide that information.

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          led mike wrote:

          We are not mystical beings

          speak for yourself... ;P

          Mark Salsbery Microsoft MVP - Visual C++ :java:

          L 1 Reply Last reply
          0
          • M Mark Salsbery

            led mike wrote:

            We are not mystical beings

            speak for yourself... ;P

            Mark Salsbery Microsoft MVP - Visual C++ :java:

            L Offline
            L Offline
            led mike
            wrote on last edited by
            #5

            I knew there was something different about you! :-D

            T 1 Reply Last reply
            0
            • L led mike

              I knew there was something different about you! :-D

              T Offline
              T Offline
              Thilek
              wrote on last edited by
              #6

              about who ??? :)

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups