Click here to Skip to main content
15,923,689 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalincluding the View class header file in the MainFrame.cpp file Pin
mzakarni23-Jun-02 3:46
mzakarni23-Jun-02 3:46 
GeneralRe: including the View class header file in the MainFrame.cpp file Pin
Christian Graus23-Jun-02 3:56
protectorChristian Graus23-Jun-02 3:56 
GeneralRe: including the View class header file in the MainFrame.cpp file Pin
mzakarni23-Jun-02 4:08
mzakarni23-Jun-02 4:08 
GeneralRe: including the View class header file in the MainFrame.cpp file Pin
Donald Blachly23-Jun-02 18:00
Donald Blachly23-Jun-02 18:00 
GeneralRe: including the View class header file in the MainFrame.cpp file Pin
Christian Graus23-Jun-02 18:07
protectorChristian Graus23-Jun-02 18:07 
GeneralMenu Initally Disabled PROBLEM Pin
23-Jun-02 2:12
suss23-Jun-02 2:12 
GeneralRe: Menu Initally Disabled PROBLEM Pin
jferrell121123-Jun-02 3:18
jferrell121123-Jun-02 3:18 
GeneralFaxSendDocumentForBroadcast(). Please help me. Pin
sandmanq23-Jun-02 1:06
sandmanq23-Jun-02 1:06 
I am Korean and weak English.
I want fax brodcasting service. But I don't know how to use below three API.

I want to know how to working together three below API.
FaxSendDocumentForBroadcast()
FaxCompleteJobParams()
FAX_RECIPIENT_CALLBACK()

Please help me. I searched MSDN and web site.

But there no detail data about FaxSendDocumentForBroadcast().

I attach my fax broadcast project source code.

Thank you very much.


BOOL CALLBACK CALLBACK FAX_RECIPIENT_CALLBACK(
HANDLE FaxHandle, //handle to the fax server
DWORD RecipientNumber, //index indicating current fax recipient
LPVOID Context, //pointer to context information
PFAX_JOB_PARAM pfxParam, // [in,out] pointer to job information structure
PFAX_COVERPAGE_INFO pcpInfo ) // [in,out] pointer to local cover page structure
{
pfxParam->SizeOfStruct = sizeof(FAX_JOB_PARAM);
pfxParam->RecipientNumber = pszFaxNumber; // recipient's fax numbe
pfxParam->ScheduleAction = JSA_NOW; //schedule the transmission at any time in the next 24 hours

if(RecipientNumber > 10) return FALSE;
else return TRUE;
}

void CFaxClientDlg::SendFax()
{

if(!FaxConnectFaxServer(NULL, &fxHandle))
{
DWORD dwError = ::GetLastError();
switch(dwError){
case ERROR_INVALID_PARAMETER:
break;
case ERROR_NOT_ENOUGH_MEMORY:
break;
}
ReportOSError();
FaxClose(fxHandle);
return;
}
/*
if(!FaxCompleteJobParams( &pfxParam, &pcpInfo ) )
{
ReportOSError();
FaxClose(fxHandle);
return;
}
*/
if( FaxSendDocumentForBroadcast(fxHandle, pszFileName, &dwJobId, FAX_RECIPIENT_CALLBACK, NULL) ) /* [out] dwJobId */
AfxMessageBox("SendDoc Succeeded");
else ReportOSError();

// Cleanup here
FaxFreeBuffer(pfxParam);
if ( pcpInfo )
FaxFreeBuffer(pcpInfo);
FaxClose(fxHandle);

}





GeneralRe: FaxSendDocumentForBroadcast(). Please help me. Pin
jferrell121123-Jun-02 3:23
jferrell121123-Jun-02 3:23 
GeneralFrom Windows 2000, Windows support FAX SERVICE. Pin
sandmanq23-Jun-02 4:55
sandmanq23-Jun-02 4:55 
Generalusing const type& Pin
23-Jun-02 0:27
suss23-Jun-02 0:27 
GeneralRe: using const type& Pin
Christian Graus23-Jun-02 3:58
protectorChristian Graus23-Jun-02 3:58 
GeneralRe: using const type& Pin
Brian Delahunty23-Jun-02 4:26
Brian Delahunty23-Jun-02 4:26 
GeneralRe: using const type& Pin
Michael Dunn23-Jun-02 7:02
sitebuilderMichael Dunn23-Jun-02 7:02 
Generalmessages between threads Pin
23-Jun-02 0:22
suss23-Jun-02 0:22 
GeneralRe: messages between threads Pin
mzakarni23-Jun-02 3:56
mzakarni23-Jun-02 3:56 
GeneralSetWindowsHookEx Pin
vikramlinux22-Jun-02 23:29
vikramlinux22-Jun-02 23:29 
GeneralRe: SetWindowsHookEx Pin
jferrell121123-Jun-02 3:27
jferrell121123-Jun-02 3:27 
GeneralFile Empty status Pin
SamirSood22-Jun-02 23:24
SamirSood22-Jun-02 23:24 
GeneralRe: File Empty status Pin
Nish Nishant23-Jun-02 0:18
sitebuilderNish Nishant23-Jun-02 0:18 
GeneralEnable/Disable Frame Buttons :: MFC Pin
valikac22-Jun-02 21:30
valikac22-Jun-02 21:30 
GeneralRe: Enable/Disable Frame Buttons :: MFC Pin
Nish Nishant22-Jun-02 22:12
sitebuilderNish Nishant22-Jun-02 22:12 
GeneralRe: Enable/Disable Frame Buttons :: MFC Pin
valikac23-Jun-02 6:39
valikac23-Jun-02 6:39 
GeneralRe: Enable/Disable Frame Buttons :: MFC Pin
Sonu Kapoor23-Jun-02 7:30
Sonu Kapoor23-Jun-02 7:30 
GeneralRe: Enable/Disable Frame Buttons :: MFC Pin
valikac23-Jun-02 7:38
valikac23-Jun-02 7:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.