Ajouter un commentaire

hajer

voilà je suis à mes premiers essais d'envoi de fax... ou plutôt à mes premiers échecs :lol:
selon la msdn concernant l'envoi de fax, voici la fonction à utiliser pour se connecter au serveur local de fax (celui de windows à mon avis)

Syntax
BOOL WINAPI FaxConnectFaxServer(LPCTSTR MachineName,LPHANDLE FaxHandle);
Parameters
MachineName
[in] This pointer must be NULL (an empty string), so that the application connects to the fax server on the local computer.
FaxHandle
[out] Pointer to a variable that receives a fax server handle that is required on subsequent calls to other fax client functions. If the fax server returns a null handle, it indicates an error.
Return Value
If the function succeeds, the return value is nonzero.

j'ai biensur télécharger la psdk de windows, je l'ai installé et ajouté le path de "bin", "include" et "lib" à visual C/C++ v6, comme indiqué dans le help de la msdn.

donc enfin de compte, j'ai fait mon premier essai voici le code source :
c'est juste la fonction de connexion au serveur, juste pour essai, rien de plus

#include <stdio.h>
#include <windows.h>
#include <winfax.h>

void main(){
	LPHANDLE hFax=NULL;
	printf("haloooo");
	if (!FaxConnectFaxServer(NULL,hFax))
        {
            printf( "no no");            
        }	
}

quand je compile ça m'affiche 0 erreurs mais quand j'exécute, c un message moins sympas et plutot incompréhensible !!

--------------------Configuration: Fax - Win32 Debug--------------------
Linking...
Fax.obj : error LNK2001: unresolved external symbol __imp__FaxConnectFaxServerA@8
Debug/Fax.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

Fax.exe - 2 error(s), 0 warning(s)

pour l'instant, je cherche encore mais je n'ai pas trouvé le problème...
pleeeaaase help!!!

Filtered HTML

Plain text

CAPTCHA
Cette question permet de vérifier que vous n'êtes pas un robot spammeur :-)
  GGG   TTTTTT   SSS   RRRR   X   X 
G TT S R R X X
G GG TT SSS RRRR X
G G TT S R R X X
GGG TT SSSS R RR X X