Advice for remote dabase....
-
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 ??
-
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 ??
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.
-
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.
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 -
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.
led mike wrote:
We are not mystical beings
speak for yourself... ;P
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
led mike wrote:
We are not mystical beings
speak for yourself... ;P
Mark Salsbery Microsoft MVP - Visual C++ :java: