🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #2141

Re: Sending a FAX via the Windows FAX Console

#2141
From: Bob Gonder
Date: Thu, 12 Apr 2007 05:04
27 lines
1808 bytes
Bill Bream wrote:

>I'm getting a "parameter incorrect" message. Can you help me out?

You didn't say which line gives that error.

>	if(!FaxConnectFaxServerPtr(pszServerName, &fxHandle))
	if( ! FaxConnectFaxServerPtr( NULL, &fxHandle ) )

>	if(!FaxCompleteJobParamsPtr(&pfxParam, &pcpInfo ))
>
>	 pcpInfo = NULL;

You didn't free pcpInfo.
You didn't fill in the recipient info in the pfxParam.

>	const String TempFileName =
>		"c:\\Bill\\faxserver.doc";
>	// Try to send
>	if(FaxSendDocumentPtr(fxHandle, TempFileName.c_str(), pfxParam, pcpInfo,
>		   &dwJobId))
	if( FaxSendDocumentPtr( fxHandle, "c:\\Bill\\faxserver.doc",
				 pfxParam, NULL, &dwJobId ) )

>	   FaxFreeBufferPtr(pfxParam);
>	   FaxFreeBufferPtr(pcpInfo);
>	   FaxClosePtr(fxHandle);
Technical Details
Message-ID: <fier13ltq02fksliu9kabirvn2p835d8gv@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newspeer2.de.telia.net!newspeer3.de.telia.net!de.telia.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <461d5e63$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,6de2227e34dc5f3a
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Sending a FAX via the Windows FAX Console
Date: Wed, 11 Apr 2007 22:04:42 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <fier13ltq02fksliu9kabirvn2p835d8gv@4ax.com>
References: <461d5e63$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.69.88.78
X-Trace: newsgroups.borland.com 1176354279 69.69.88.78 (11 Apr 2007 22:04:39 -0800)
Lines: 29
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newspeer2.de.telia.net!newspeer3.de.telia.net!de.telia.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail