Jump to content
Fivewin Brasil

DllInscE32.dll


kapiaba

Recommended Posts

Bom dia. Alguém tem a DllInscE32.dll atualizada?

 

// simples exemplo demostrado por Reinaldo Henrique
// em 05/05/2008
//-----------------------------------------------------//
procedure main()
local nResposta // se 0, valido, se diferente de 0, invalido
	setmode(25,80)
	      nResposta := ConsisteInscricaoEstadual("623003679119","SP")
      ? "Resposta da DLL: ",iif(nResposta==0,;
          "Inscricao valida para SP","Inscricao invalida para SP")
	      nResposta := ConsisteInscricaoEstadual("1018146530","PR")
      ? "Resposta da DLL: ",iif(nResposta==0,;
          "Inscricao valida para PR","Inscricao invalida para PR")
wait
return
//------------------------------------------------------//
	// by Reinaldo Henrique
// wrapper para xHarbour
// em: 05/05/2008
#pragma BEGINDUMP
	#include "windows.h"
#include "hbapi.h"
	typedef INT (WINAPI * _CONSISTEINSCRICAOESTADUAL)(
    const char *szInscr_Est,const char *szEstado);
	HB_FUNC( CONSISTEINSCRICAOESTADUAL )
{
   HINSTANCE handle = LoadLibrary( "DllIns~1.Dll" );
   if ( handle )
   {
      const char *szInscr_Est = hb_parcx(1);
      const char *szEstado = hb_parcx(2);
      _CONSISTEINSCRICAOESTADUAL pFunc;
	      pFunc = ( _CONSISTEINSCRICAOESTADUAL ) GetProcAddress( handle,
"ConsisteInscricaoEstadual");
      hb_retni( pFunc( szInscr_Est,szEstado ));
      FreeLibrary( handle );
   }
}
#pragma ENDDUMP

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...