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 : 13 de Septiembre 2022  se añadieron las funciones para Retenciones e Información de Pagos 2.0 y API de funciones administrativas del Portal VirtualPAC
Wrapper:

Declare Integer VirtualXML_New IN "VirtualXML.DLL"                                                   String   
Declare Integer VirtualXML_ProcesaDocumento IN "VirtualXML.DLL" Integer, String, String, String, String
Declare Integer VirtualXML_ProcesaDocumentoSSL 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
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_RecuperaAcuseCancelacionIN "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
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_ConsultaEstadoCFDI IN "VirtualXML.DLL" 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
Declare VirtualXML_SetCartaPorte20 IN "VirtualXML.DLL" Integer, String, String, String, String, String
Declare VirtualXML_CartaPorte20AddUbicacion 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
Declare VirtualXML_CartaPorte20SetMercancias IN "VirtualXML.DLL" Integer, String, String, String, String, String
Declare VirtualXML_CartaPorte20AddMercancia 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
Declare VirtualXML_CartaPorte20AddMercanciaPedimentos IN "VirtualXML.DLL" Integer, String
Declare VirtualXML_CartaPorte20AddMercanciaGuiasIdentificacion IN "VirtualXML.DLL" Integer, String, String, String
Declare VirtualXML_CartaPorte20AddMercanciaCantidadTransporta IN "VirtualXML.DLL" Integer, String, String, String, String
Declare VirtualXML_CartaPorte20SetMercanciasAutotransporte IN "VirtualXML.DLL" Integer, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String
Declare VirtualXML_CartaPorte20SetMercanciasTransporteMaritimo 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
Declare VirtualXML_CartaPorte20AddMercanciasTransporteMaritimoContenedor IN "VirtualXML.DLL" Integer, String, String, String
Declare VirtualXML_CartaPorte20SetMercanciasTransporteAereo IN "VirtualXML.DLL" Integer, String, String, String, String, String, String, String, String, String, String, String, String
Declare VirtualXML_CartaPorte20SetMercanciasTransporteFerroviario IN "VirtualXML.DLL" Integer, String, String, String, String, String, String, String, String, String, String, String, String, String
Declare VirtualXML_CartaPorte20AddMercanciasTransporteFerroviarioDerechosDePaso IN "VirtualXML.DLL" Integer, String, String
Declare VirtualXML_CartaPorte20AddMercanciasTransporteFerroviarioCarro IN "VirtualXML.DLL" Integer, String, String, String, String, String, String, String
Declare VirtualXML_CartaPorte20AddMercanciasTransporteFerroviarioCarroContenedor IN "VirtualXML.DLL" Integer, String, String, String
Declare VirtualXML_CartaPorte20AddFiguraTransporteTiposFigura IN "VirtualXML.DLL" Integer, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String
Declare VirtualXML_CartaPorte20AddFiguraTransporteTiposFiguraPartesTransporte IN "VirtualXML.DLL" Integer, String
Declare Integer VirtualXML_CancelaCFDI2022 IN "VirtualXML.DLL" String, String, String, String, String, String, String, String, String, String, String
Declare Integer VirtualXML_CancelaCFDI2022Ssl IN "VirtualXML.DLL" String, String, String, String, String, String, String, String, String, String, String
Declare VirtualXML_Pagos20AddPago IN "VirtualXML.DLL" Integer, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String
Declare VirtualXML_Pagos20AddPagoDoctoRelacionado IN "VirtualXML.DLL" Integer, String, String, String, String, String, String, String, String, String, String
Declare VirtualXML_Pagos20AddPagoDoctoRelacionadoRetencionDR IN "VirtualXML.DLL" Integer, String, String, String, String, String
Declare VirtualXML_Pagos20AddPagoDoctoRelacionadoTrasladoDR IN "VirtualXML.DLL" Integer, String, String, String, String, String
Declare VirtualXML_Pagos20AddPagoImpuestosPRetencionP IN "VirtualXML.DLL" Integer, String, String
Declare VirtualXML_Pagos20AddPagoImpuestosPTrasladoP IN "VirtualXML.DLL" Integer, String, String, String, String, String
Declare VirtualXML_SetPagos20 IN "VirtualXML.DLL" Integer, String, String, String, String, String, String, String, String, String, String, String
Declare VirtualXML_AddCfdiRelacionado_cfdi40 IN "VirtualXML.DLL" Integer, String
Declare VirtualXML_AddCfdiRelacionados_cfdi40 IN "VirtualXML.DLL" Integer, String, String, String, String, String, String, String, String, String, String, String
Declare VirtualXML_AddComplemento_cfdi40 IN "VirtualXML.DLL" Integer, String
Declare VirtualXML_AddComplementoConcepto_cfdi40 IN "VirtualXML.DLL" Integer, String
Declare VirtualXML_AddConcepto_cfdi40 IN "VirtualXML.DLL" Integer, String, String, String, String, String, String, String, String, String, String
Declare VirtualXML_AddConceptoCuentaPredial_cfdi40 IN "VirtualXML.DLL" Integer, String
Declare VirtualXML_AddConceptoInformacionAduanera_cfdi40 IN "VirtualXML.DLL" Integer, String
Declare VirtualXML_AddConceptoParte_cfdi40 IN "VirtualXML.DLL" Integer, String, String, String, String, String, String, String, String, String, String, String, String
Declare VirtualXML_AddConceptoRetencion_cfdi40 IN "VirtualXML.DLL" Integer, String, String, String, String, String
Declare VirtualXML_AddConceptoTraslado_cfdi40 IN "VirtualXML.DLL" Integer, String, String, String, String, String
Declare VirtualXML_AddRetencion_cfdi40 IN "VirtualXML.DLL" Integer, String, String
Declare VirtualXML_AddTraslado_cfdi40 IN "VirtualXML.DLL" Integer, String, String, String, String, String
Declare VirtualXML_SetAddenda_cfdi40 IN "VirtualXML.DLL" Integer, String
Declare VirtualXML_SetAddendaText_cfdi40 IN "VirtualXML.DLL" Integer, String
Declare VirtualXML_SetCompleteXML_cfdi40 IN "VirtualXML.DLL" Integer, String
Declare VirtualXML_SetComprobanteInfo_cfdi40 IN "VirtualXML.DLL" Integer, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String
Declare VirtualXML_SetConceptoACuentaTerceros_cfdi40 IN "VirtualXML.DLL" Integer, String, String, String, String
Declare VirtualXML_SetEmisorInfo_cfdi40 IN "VirtualXML.DLL" Integer, String, String, String, String
Declare VirtualXML_SetInformacionGlobal_cfdi40 IN "VirtualXML.DLL" Integer, String, String, String
Declare VirtualXML_SetImpuestosInfo_cfdi40 IN "VirtualXML.DLL" Integer, String, String
Declare VirtualXML_SetReceptorInfo_cfdi40 IN "VirtualXML.DLL" Integer, String, String, String, String, String, String, String
Declare Integer Utils_SendEmai IN "VirtualXML.DLL" String, Integer, String, String, String, String, String, String, String, String, String, String, String
Declare Integer VirtualXML_ApiEmisorAdd IN "VirtualXML.dll" String, String, String, String, String, String, String, Integer, Integer, Integer, String, String
Declare Integer VirtualXML_ApiEmisorUpd IN "VirtualXML.dll" String, String, String, String, String, String, String, Integer, Integer, String, String
Declare Integer VirtualXML_ApiEmisorAsigna IN "VirtualXML.dll" String, String, String, Integer, Integer, Integer, Integer, String, String
Declare Integer VirtualXML_ApiUsuarioAdd IN "VirtualXML.dll" String, String, String, String, String, String, String, String, Integer, String, String, String
Declare Integer VirtualXML_ApiUsuarioUpd IN "VirtualXML.dll" String, String, String, String, String, String, String, String, String, String, String
Declare Integer Retenciones_NewWithLog IN "VirtualXML.dll" String, String
Declare Retenciones_SetVirtualPACInfo IN "VirtualXML.dll" Integer, String, String
Declare Integer Retenciones_ProcesaDocumento IN "VirtualXML.dll" Integer, String, String, String, String
Declare Retenciones_Free IN "VirtualXML.dll" Integer
Declare Retenciones_SetAddendaText IN "VirtualXML.dll" Integer, String
Declare Retenciones_SetAddendaXML IN "VirtualXML.dll" Integer, String
Declare Retenciones_SetRetencionesCfdiRetenRelacionados IN "VirtualXML.dll" Integer, String, String
Declare Retenciones_SetRetencionesEmisor IN "VirtualXML.dll" Integer, String, String, String
Declare Retenciones_SetRetencionesInfo IN "VirtualXML.dll" Integer, String, String, String, String, String
Declare Retenciones_SetRetencionesPeriodo IN "VirtualXML.dll" Integer, String, String, String
Declare Retenciones_SetRetencionesReceptor IN "VirtualXML.dll" Integer, String, String, String, String, String, String, String
Declare Retenciones_SetRetencionesTotales IN "VirtualXML.dll" Integer, String, String, String, String, String, String
Declare Retenciones_AddRetencionesTotalesImpRetenidos IN "VirtualXML.dll" Integer, String, String, String, String
Declare Retenciones_SetComplementoArrendamientoenfideicomiso10 IN "VirtualXML.dll" Integer, String, String, String, String, String, String, String
Declare Retenciones_SetComplementoDividendos10 IN "VirtualXML.dll" Integer, String, String, String, String, String, String, String, String, String
Declare Retenciones_SetComplementoEnajenaciondeAcciones10 IN "VirtualXML.dll" Integer, String, String, String
Declare Retenciones_SetComplementoFideicomisonoempresarial10 IN "VirtualXML.dll" Integer, String, String, String, String, String, String, String, String, String, String
Declare Retenciones_SetComplementoIntereses10 IN "VirtualXML.dll" Integer, String, String, String, String, String, String
Declare Retenciones_SetComplementoIntereseshipotecarios10 IN "VirtualXML.dll" Integer, String, String, String, String, String, String, String
Declare Retenciones_SetComplementoOperacionesconderivados10 IN "VirtualXML.dll" Integer, String, String
Declare Retenciones_SetComplementoPagosaextranjeros10 IN "VirtualXML.dll" Integer, String, String, String, String, String, String, String, String, As String
Declare Retenciones_SetComplementoPlanesderetiro11 IN "VirtualXML.dll" Integer, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String
Declare Retenciones_SetComplementoPlataformasTecnologicas10 IN "VirtualXML.dll" Integer, String, String, String, String, String, String, String, String, String
Declare Retenciones_AddComplementoPlataformasTecnologicas10DetallesDelServicio IN "VirtualXML.dll" Integer, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String,String
Declare Retenciones_SetComplementoPremios10 IN "VirtualXML.dll" Integer, String, String, String, String
Declare Retenciones_SetComplementoSectorFinanciero10 IN "VirtualXML.dll" Integer, String, String, String