Wrappers de VirtualXML para Microsoft VisualFox Pro VirtualXML
Estos wrappers (definiciones de funciones en una DLL) son necesarios para utilizar VirtualXML en sus programas basados en Microsoft Visual FoxPro

Para utilizarlos copie el contenido que se muestra a continuación en cualquier archivo .PRG de su proyecto, de preferencia en el modulo de carga o en el PRG donde realiza el proceso de emision de CFDI.

Para definir un nuevo wrapper es muy sencillo:

Usar el comando

    Declare

Si la funcion devuelve un valor, poner el tipo de valor que regresa:

    Integer o String

Indicar el nombre de la función.

Indicar en que DLL se encuentra la funcion

    IN "VirtualXML.dll"

A continuacion definir los parametros de la funcion indicando unicamente el tipo (String o Integer) separados por comas.

Fecha de actualización : 22 de Julio de 2020  se añadieron las funciones para descarga masiva.


Wrapper:

Declare Integer VirtualXML_New IN "VirtualXML.Dll" String
Declare Integer VirtualXML_ProcesaDocumento IN "VirtualXML.Dll" Integer, String, String, String, String
Declare String VirtualXML_GetValue IN "VirtualXML.Dll" Integer, Integer
Declare VirtualXML_Free IN "VirtualXML.Dll" Integer
Declare VirtualXML_SetVirtualPACInfo IN "VirtualXML.Dll" Integer, String, String
Declare VirtualXML_SetCiberSATInfo IN "VirtualXML.Dll" Integer, String, String
Declare VirtualXML_SetComprobanteInfo IN "VirtualXML.Dll" Integer, String, String, String, String, String, String, String, String, String, String, String, String, String
Declare VirtualXML_SetImpuestosLocalesInfo IN "VirtualXML.Dll" Integer, String, String
Declare VirtualXML_AddImpuestoLocalRetenido IN "VirtualXML.Dll" Integer, String, String, String
Declare VirtualXML_AddImpuestoLocalTrasladado IN "VirtualXML.Dll" Integer, String, String, String
Declare VirtualXML_AddDonatarias11 IN "VirtualXML.Dll" Integer, String, String, String
Declare VirtualXML_SetDllPath IN "VirtualXML.Dll" Integer, String
Declare VirtualXML_GetValueInFile IN "VirtualXML.Dll" Integer, Integer, String
Declare VirtualXML_ProcessFile IN "VirtualXML.Dll" String
Declare Integer VirtualXML_CheckFile IN "VirtualXML.Dll" String
Declare VirtualXML_SetLogFile IN "VirtualXML.Dll" Integer, String
Declare VirtualXML_ShowValue IN "VirtualXML.Dll" Integer, Integer, String
Declare Integer VirtualXML_FirmaSellaDocto IN "VirtualXML.Dll" Integer, String, String, String, String
Declare VirtualXML_Save IN "VirtualXML.Dll" Integer, String
Declare Integer VirtualXML_Load IN "VirtualXML.Dll" String
Declare String VirtualXML_GetTimeWithDelay IN "VirtualXML.Dll" Integer, Integer
Declare VirtualXML_GetValues IN "VirtualXML.Dll" Integer, String, Integer
Declare Integer VirtualXML_CancelaUUID IN "VirtualXML.Dll" String, String, String, String, String, String, String
Declare Integer VirtualXML_CancelaCFDI IN "VirtualXML.Dll" String, String, String, String, String, String, String, String, String, String
Declare Integer VirtualXML_GetStatusCFDI IN "VirtualXML.Dll" String, String, String, String, String, String, String
Declare Integer VirtualXML_RecuperaAcuseCancelacion IN "VirtualXML.Dll" String, String, String, String, String, String, String
Declare Integer VirtualXML_CerKeyMatch IN "VirtualXML.Dll" Integer, String, String, String, String
Declare Integer VirtualXML_CheckLicence IN "VirtualXML.Dll" String, String, String
Declare VirtualXML_SetNomina12 IN "VirtualXML.Dll" Integer, String, String, String, String, String, String, String, String
Declare VirtualXML_Nomina12SetEmisor IN "VirtualXML.Dll" Integer, String, String, String, String, String
Declare VirtualXML_Nomina12SetReceptor IN "VirtualXML.Dll" Integer, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String
Declare VirtualXML_Nomina12AddSubContratacion IN "VirtualXML.Dll" Integer, String, String
Declare VirtualXML_Nomina12SetPercepciones IN "VirtualXML.Dll" Integer, String, String, String, String, String
Declare VirtualXML_Nomina12AddPercepcion IN "VirtualXML.Dll" Integer, String, String, String, String, String, String, String, String, String, String, String
Declare VirtualXML_Nomina12SetJubilacionPensionRetiro IN "VirtualXML.Dll" Integer, String, String, String, String, String
Declare VirtualXML_Nomina12SetSeparacionIndemnizacion IN "VirtualXML.Dll" Integer, String, String, String, String, String
Declare VirtualXML_Nomina12SetDeducciones IN "VirtualXML.Dll" Integer, String, String
Declare VirtualXML_Nomina12AddDeduccion IN "VirtualXML.Dll" Integer, String, String, String, String
Declare VirtualXML_Nomina12AddOtroPago IN "VirtualXML.Dll" Integer, String, String, String, String, String, String, String, String
Declare VirtualXML_Nomina12AddIncapacidad IN "VirtualXML.Dll" Integer, String, String, String
Declare VirtualXML_SetCompleteXML_cfdi33 IN "VirtualXML.Dll" Integer, String
Declare VirtualXML_SetComprobanteInfo_cfdi33 IN "VirtualXML.Dll" Integer, String, String, String, String, String, String, String, String, String, String, String, String, String, String
Declare VirtualXML_SetCfdiRelacionados_cfdi33 IN "VirtualXML.Dll" Integer, String
Declare VirtualXML_AddCfdiRelacionado_cfdi33 IN "VirtualXML.Dll" Integer, String
Declare VirtualXML_SetEmisorInfo_cfdi33 IN "VirtualXML.Dll" Integer, String, String, String
Declare VirtualXML_SetReceptorInfo_cfdi33 IN "VirtualXML.Dll" Integer, String, String, String, String, String
Declare VirtualXML_AddConcepto_cfdi33 IN "VirtualXML.Dll" Integer, String, String, String, String, String, String, String, String, String
Declare VirtualXML_AddConceptoTraslado_cfdi33 IN "VirtualXML.Dll" Integer, String, String, String, String, String
Declare VirtualXML_AddConceptoRetencion_cfdi33 IN "VirtualXML.Dll" Integer, String, String, String, String, String
Declare VirtualXML_SetImpuestosInfo_cfdi33 IN "VirtualXML.Dll" Integer, String, String
Declare VirtualXML_SetServicioParcial10 IN "VirtualXML.Dll" Integer, String, String, String, String, String, String, String, String, String, String
Declare VirtualXML_AddTraslado_cfdi33 IN "VirtualXML.Dll" Integer, String, String, String, String
Declare VirtualXML_AddRetencion_cfdi33 IN "VirtualXML.Dll" Integer, String, String
Declare VirtualXML_SetPagos10 IN "VirtualXML.Dll" Integer
Declare VirtualXML_Pagos10SetPago IN "VirtualXML.Dll" Integer, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String
Declare VirtualXML_Pagos10AddPagoDoctoRelacionado IN "VirtualXML.Dll" Integer, String, String, String, String, String, String, String, String, String, String
Declare VirtualXML_AddConceptoComplementoIedu_cfdi33 IN "VirtualXML.Dll" Integer, String, String, String, String, String
Declare VirtualXML_AddConceptoInformacionAduanera_cfdi33 IN "VirtualXML.Dll" Integer, String
Declare VirtualXML_AddConceptoCuentaPredial_cfdi33 IN "VirtualXML.Dll" Integer, String
Declare VirtualXML_AddConceptoParte_cfdi33 IN "VirtualXML.Dll" Integer, String, String, String, String, String, String, String, String
Declare VirtualXML_SetAddendaText_cfdi33 IN "VirtualXML.Dll" Integer, String
Declare VirtualXML_AddComplemento_cfdi33 IN "VirtualXML.Dll" Integer, String
Declare VirtualXML_SetAddenda_cfdi33 IN "VirtualXML.Dll" Integer, String
Declare VirtualXML_SetComercioExterior11 IN "VirtualXML.Dll" Integer, String, String, String, String, String, String, String, String, String, String, String
Declare VirtualXML_CCE11SetEmisor IN "VirtualXML.Dll" Integer, String, String, String, String, String, String, String, String, String, String, String
Declare VirtualXML_CCE11SetReceptor IN "VirtualXML.Dll" Integer, String, String, String, String, String, String, String, String, String, String, String
Declare VirtualXML_CCE11AddDestinatario IN "VirtualXML.Dll" Integer, String, String, String, String, String, String, String, String, String, String, String, String
Declare VirtualXML_CCE11AddPropietario IN "VirtualXML.Dll" Integer, String, String
Declare VirtualXML_CCE11AddMercancia IN "VirtualXML.Dll" Integer, String, String, String, String, String, String, String, String, String, String
Declare VirtualXML_CCE11AddMercanciaDescripcionesEspecificas IN "VirtualXML.Dll" Integer, String, String, String, String
Declare Integer VirtualXML_GeneraCBB IN "VirtualXML.Dll" String, String, Integer, String, Integer, Integer, Integer
Declare String VirtualXML_CerTo64 IN "VirtualXML.Dll" String
Declare String VirtualXML_FileTo64 IN "VirtualXML.Dll" String
Declare VirtualXML_SetINE11 IN "VirtualXML.Dll" Integer, String, String, String, String, String, String
Declare VirtualXML_AddEntidad IN "VirtualXML.Dll" Integer, String, String, String
Declare VirtualXML_AddEntidadContabilidad IN "VirtualXML.Dll" Integer, String
Declare Integer VirtualXML_ConsultaSaldos IN "VirtualXML.Dll" String, String, Integer, String
Declare VirtualXML_SetLeyendasFiscales10 IN "VirtualXML.Dll" Integer, String, String, String
Declare VirtualXML_SetLeyendasFiscales10Full IN "VirtualXML.Dll" Integer, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String
Declare Integer VirtualXML_MasivaDescarga IN "VirtualXML.Dll" String, String, String, String, String, String, String, String
Declare Integer VirtualXML_MasivaSolicitaEmitidoXML IN "VirtualXML.Dll" String, String, String, String, String, String, String, String, String, String
Declare Integer VirtualXML_MasivaSolicitaEmitidoMetadata IN "VirtualXML.Dll" String, String, String, String, String, String, String, String, String, String
Declare Integer VirtualXML_MasivaSolicitaRecibidoXML IN "VirtualXML.Dll" String, String, String, String, String, String, String, String, String, String
Declare Integer VirtualXML_MasivaSolicitaRecibidoMetadata IN "VirtualXML.Dll" String, String, String, String, String, String, String, String, String, String
Declare Integer VirtualXML_MasivaVerifica IN "VirtualXML.Dll" String, String, String, String, String, String, String, String