Mysql con Visual C++

Iniciado por maanuel, 18 Julio 2010, 21:23 PM

0 Miembros y 1 Visitante están viendo este tema.

maanuel

Hola!

La verdad no estoy seguro si postearlo aca o en .NET, pero estoy tratando de crear una aplicacion en C++ que se conecte a una DB MySQL.

La estructura de la tabla es:

CREATE TABLE `spell_casting` (
  `guid` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Global Unique Identifier',
  `casterGuid` int(10) unsigned NOT NULL DEFAULT '0',
  `casterEntry` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `spellId` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `targetFlags` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `time` text,
  `checked` mediumint(8) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (guid)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Spell Casting';


La idea es ingresar un CasterEntry y que me devuelva todos los valores que haya (SELECT * FROM spell_casting WHERE casterEntry= "ValorQueIngrese")

Me gustaria que me orienten en como añadir y utilizar MySQL en Visual C++.

Gracias, Manuel.

Horricreu

#1
¿Has probado como mínimo de buscar en Google?

http://c.conclase.net/mysql/index.php

http://www.mysql.com/products/connector/

http://www.abcdatos.com/tutoriales/tutorial/z175.html

Saludos :P