Migrar codigo de c# a c++
Publicado por Vladimir (1 intervención) el 06/01/2018 03:34:39
Hola buenas noches, como quedaria este bloque de codigo de c# a c++ :
Espero me puedan ayudar. Gracias
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
public DataSet PAInsertarCliente(string strCedula, string strNombre, string strApellido)
{
DataSet datos = new DataSet();
SqlConnection connexion = new SqlConnection();
SqlCommand command = new SqlCommand();
SqlDataAdapter da = new SqlDataAdapter();
connexion.ConnectionString = connectionString;
command.Connection = connexion;
command.CommandText = "PAInsertarCliente";
command.Parameters.Add("@CedulaCliente", SqlDbType.NVarChar, 9).Value = strCedula;
command.Parameters.Add("@Nombre", SqlDbType.NVarChar,50).Value = strNombre;
command.Parameters.Add("@Apellido", SqlDbType.NVarChar, 50).Value = strApellido;
command.CommandType = CommandType.StoredProcedure;
da.SelectCommand = command;
da.Fill(datos);
command.Connection.Close();
command.Connection.Dispose();
return datos;
}
Espero me puedan ayudar. Gracias
Valora esta pregunta


0