<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.fr.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>12 Jun 2020 09:42:07 Z</lastBuildDate><pubDate>11 Jun 2020 00:06:10 Z</pubDate><description>Bonjour, j'essaye de communiquer avec un scanner de cheque, selon le constructeur la fonction suivante permet de retourner le non de la machine :&#13;
&#13;
MTMICRGetDevice function returns the device name of the device present in the system.&#13;
&#13;
ULONG MTMICRGetDevice (&#13;
 	DWORD dwDeviceContext,&#13;
	char  *pcDevName&#13;
);&#13;
&#13;
Parameters&#13;
dwDeviceContext  : This is the device number of the device.  This must be set to 1 to get the first device in the system.  Increment it by 1 to get the next device name. &#13;
&#13;
pcDevName : Pointer to the buffer where the device name will be stored.&#13;
&#13;
Return Values&#13;
MICR_ST_OK&#13;
MICR_ST_DEVICE_NOT_FOUND&#13;
MICR_ST_BAD_PARAMETER&#13;
&#13;
mon code en WD &#13;
&#13;
retAPI est une chaîne&#13;
pcDevName est une chaîne&#13;
dwDeviceContext est un entier = "1"&#13;
nInst est un entier&#13;
nInst = ChargeDLL("mtxmlmcr.dll")&#13;
&#13;
SI nInst = 0 ALORS&#13;
	Erreur(ErreurInfo())&#13;
SINON&#13;
	retAPI = API("mtxmlmcr.dll","MTMICRGetDevice",dwDeviceContext,pcDevName)&#13;
	Trace(retAPI + TAB + bufDevname)&#13;
FIN&#13;
&#13;
probleme est que retAPI me retourne un nombre (51) !! alors que ca devrai retourner une chaine parmi les Return Values!!&#13;
&#13;
merci d'avance</description><ttl>30</ttl><generator>WEBDEV</generator><language>fr_FR</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll/read.awp</link><title>API dll</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>jeanphi.news</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll-240354/read.awp</comments><pubDate>12 Jun 2020 09:42:07 Z</pubDate><description>Alex avait énoncé :&#13;
&gt; Bonjour, j'essaye de communiquer avec un scanner de cheque, selon le &#13;
&gt; constructeur la fonction suivant…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll-240354/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll-240354/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll/read.awp">API dll</source><title>Re: API dll</title></item><item><author>alex.benaji</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll-240350/read.awp</comments><pubDate>12 Jun 2020 00:47:35 Z</pubDate><description>du progres.., jai assigne a PcDevN la valeur "                                         " est la soudainement ca me retourne la l…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll-240350/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll-240350/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll/read.awp">API dll</source><title>Re: API dll</title></item><item><author>alex.benaji</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll-240349/read.awp</comments><pubDate>11 Jun 2020 23:24:10 Z</pubDate><description>Merci pour vos reponses, j'ai tout essayé mais rien ne marche...&#13;
&#13;
retAPI est un entier système&#13;
pcDevN est un Variant&#13;
&#13;
nInst…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll-240349/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll-240349/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll/read.awp">API dll</source><title>Re: API dll</title></item><item><author>Philippe Pasquali</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll-240326/read.awp</comments><pubDate>11 Jun 2020 11:59:38 Z</pubDate><description>ne pas tenir compte de mon message c'est une grosse erreur !&#13;
&#13;
--&#13;
« L'erreur ne devient pas vérité parce qu'elle se propage et…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll-240326/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll-240326/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll/read.awp">API dll</source><title>Re: API dll</title></item><item><author>Philippe Pasquali</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll-240325/read.awp</comments><pubDate>11 Jun 2020 11:51:55 Z</pubDate><description>Bonjour&#13;
Dans le code de Philippe SB je ne suis pas sur que «Trace(retAPI, pcDevName)» n'affiche autre chose que la valeur du po…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll-240325/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll-240325/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll/read.awp">API dll</source><title>Re: API dll</title></item><item><author>Voroltinquo</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll-240324/read.awp</comments><pubDate>11 Jun 2020 10:17:44 Z</pubDate><description>Une remarque connexe, il est fort possible&#13;
-Dans le pire des cas que l'API récupère tous les périphériques&#13;
-Dans un cas interm…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll-240324/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll-240324/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll/read.awp">API dll</source><title>Re: API dll</title></item><item><author>Philippe SB</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll-240323/read.awp</comments><pubDate>11 Jun 2020 10:02:43 Z</pubDate><description>D'ailleurs il me semble qu'il faille passer l'adresse de pcDevName soit &amp;,pcDevName.&#13;
&#13;
Ca donnerait donc&#13;
[code:wl]&#13;
retAPI est…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll-240323/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll-240323/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll/read.awp">API dll</source><title>Re: API dll</title></item><item><author>Voroltinquo</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll-240320/read.awp</comments><pubDate>11 Jun 2020 08:22:56 Z</pubDate><description>Bonjour,&#13;
retAPI est la valeur de retour de l'API&#13;
Les valeurs de retour sont des constantes (donc à priori des entiers) :&#13;
MICR…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll-240320/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll-240320/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll/read.awp">API dll</source><title>Re: API dll</title></item><item><author>Philippe SB</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll-240319/read.awp</comments><pubDate>11 Jun 2020 08:17:26 Z</pubDate><description>Bonjour,&#13;
&#13;
Non, MTMICRGetDevice retourne un ULONG. Tes return values ne sont que des constantes.&#13;
&#13;
--&#13;
Cordialement,&#13;
&#13;
Philip…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll-240319/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll-240319/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/240318-api-dll/read.awp">API dll</source><title>Re: API dll</title></item></channel></rss>
