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??
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.