Hi Everyone,
Does anyone know an easy way to get a c++ script to use a mysql db on windows using vs 2005.
Have a mysql db installed and working just cant find much info online about c++ and mysql.
what libs to use etc.
Cheers Everyone.
ok im not sur i get this 100%
I have defined the below method in Piece class
bool nextMove(int next_rank, char* next_row)
{
if (this->white)
{
cout << "white";
}
if (this->black)
{
cout << "black";
}
return true;
}
Also i have the below objects created in main which...
Yes thanks, again
I realise that now, doh!!
what if i want to put this in a function, how would i refer to p1?
example
bool next_box(int next_rank, char* next_row)
{
if (p1.colour == Piece::white)
{
cout << "white"
}
return true;
}
I know this...
Just one more thing about enumerators
How can i compare them
e.g.
bool Move(int next_rank, char* next_row)
{
if (p1::colour = white)
{
cout << "Piece white";
}
return true;
}
int main()
{
Piece1 p1("P1",2,"b",Piece::white);
p1.Move(1,"a")
return 0;
}
basically i would like to...
Hi Everyone,
Im a newbie to c++ and im trying to inherit a enum from class a to class b
Please see below code exerpt.
#include <iostream>
#include <cstring>
using namespace std;
//class piece
class Piece {
int rank; //private
char* row;
public:
//constructor for piece
enum colour...
Hi Guys,
I need my page to relocate to my target frame below is the
incorrect code im using!
header(Location: ' . $mypage . ' TARGET: mainFrame');
Any ideas
It works when i take the "traget" piece out
header(Location: ' . $mypage);
Any help would be great with this one.
Hi Everyone,
Im wondering is it possible to connect through my mysql db (running on fedora core 4) and access the ms access tables on the ms access server?
I have a connection setup the other way around using an odbc bridge, is it possible to do this the other way around enabling me to view /...
Hi Jpadie,
Do you think this is the case even though php / mysql works fine through apache?
Killing the current installations would really be the last option.
I remember when installing the packages there was no mysql supprot for my php, and i had to make a few changes this may be causing the...
Hi Everyone,
I'm trying to get php working from the command line / terminal. (os - fedora core 4)
Just trying to run a simple test script to echo a variable.
#!/usr/bin/php
<?php
$test = 'mytest';
echo $test;
?>
when i try run the script
->php test.php
Im getting the following error
PHP...
Do you mean without
MASQUERADE_DOMAIN(exchange.livestrong.com)dnl
Still the same.
Do you think it is something to do with my hostname setup?
or my /etc/sysconfig/network file??
HI,
On my Lan i have an exchange machine which my onlinestore is using to send mail at the moment, however this is the company mail server thus i wish to configure my sendmail server to masquerade as the exchage machine.
In my sendmail.mc file i have the following...
Hi Everyone
This is my 1st attempt at writing an automated ftp script
and im kinda stuck atm
#!/bin/sh
ftp -n ftp.open-range.com
quote user <myuser>
quote pass <mypass>
i understand that -n restrains ftp from running through the normal process of logging in thus allowing us to pass the...
Hi Everyone,
I know its been a while but anyone got any ideas on the above / below??
It seems that the odbc bridge will only work for a few days
and then i need to recreate the user in the mysql table in order to be able to connect from the access machine.
Is there any logging on the mysql...
Hi Everyone,
I have an online store.
It has two frames that we are concerned with here
mainframe = contains table of results and quick add button
topframe = contains basket info
At the moment when a user hits the add button the mainframe reloads and i have a piece of javascript that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.