elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: ¿Eres nuevo? ¿Tienes dudas acerca del funcionamiento de la comunidad? Lee las Reglas Generales


  Mostrar Mensajes
Páginas: [1]
1  Programación / Programación C/C++ / Mysql con Visual C++ en: 18 Julio 2010, 21:23 pm
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:

Código:
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.
Páginas: [1]
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines