C++ Example
Tagged: C++ Example
- This topic has 2 replies, 2 voices, and was last updated 12 years, 1 month ago by Gene McDonald.
-
AuthorPosts
-
August 15, 2012 at 4:44 pm #2773Gene McDonaldParticipant
I downloaded the example and downloaded Visual C++ 2008 Express Edition. I’m attempting to open FaxFinderCplus.sin into the IDE and it give an error – “The file can’t be opened because its project type (.vcpro) is not supported by this version of the application”.
Any suggestions?
August 15, 2012 at 7:20 pm #4187Bryan TranModeratorHi Gene,
1. I downloaded the sample code and open it up fine in Visual C++ 2008 Express Edition. I did not have any problem.
2. You may want to try:
a. Go to folder: FaxFinderCplus and open up the FaxFinderCplus source file using any editor. Do select All and select copy. We want to copy the whole file content.
b. Bring up your Visual C++ 2008 Express Edition and do: File -> New -> Project -> CLR -> CLR Console Application.
Enter your name.
Enter your solution name.
Paste the content into the new .cpp file.
Do the ‘build’ and ‘start without debugging’.
Regards,
BT
October 12, 2012 at 8:17 pm #4192Gene McDonaldParticipantI’m attempting this one more time since my client has your product and we need to be able to send faxes out of the MS Access application that I’ve developed for him.
You guys do not have a sample in VB but I’m using the “Microsoft Internet Controls” control in MS Access to create the fax. Hopefully you’ve got someone there that can help. I’ve managed to connect to the fax server with the following response.
<?xml version=”1.0″ encoding=”UTF-8″ ?>
– <response>
<message>Success</message>
</response>
I put the XML text in vPost. Does this seem right? Can I send it after the response. I would really like to finish this up.
My code is as follows. It runs in a form with the MS internet active x control (very basic)
Private Sub Form_Load()
Dim FSO As New FileSystemObject
Dim txtstrm As TextStream
Dim vPost As Variant
Dim vHeaders As Variant
Dim vFlags As Variant
‘ this reads a text file with my xml info and puts it in vPost – it is included below
Set txtstrm = FSO.OpenTextFile(“C:CollectionsFaxXML_Info.txt”, ForReading)
vPost = txtstrm.ReadAll
txtstrm.Close
Dim vTarget As Variant
vHeaders = “content-type: application/xml” & Chr(10) + Chr(13) & “authorization: Basic YWRtaW46YWRtaW4=” & Chr(10) & Chr(13)
Set WV = Me!WebBrowser0.Object ‘ set my web control object
WV.Navigate “http://192.168.1.13/ffws/v1/ofax” & Chr(10) + Chr(13), vFlags, vTarget, vPost, vHeaders ‘calls your server
End Sub
XML info that is put in vPost
<schedule_fax>
<recipient>
<name>Kelly</name>
<organization>Recipient</organization>
<fax_number>000-000-0000</fax_number>
</recipient>
<attachment>
<location>inline</location>
<name>FaxTest.txt</name>
<content_type>text/plain</content_type>
<content_transfer_encoding>base64</content_transfer_encoding>
<content>dGVzdA==</content>
</attachment>
<max_tries>3</max_tries>
<priority>3</priority>
<try_interval>30</try_interval>
<receipt>failure</receipt>
<receipt_attachment>none</receipt_attachment>
</schedule_fax>
-
AuthorPosts
- The forum ‘FaxFinder’ is closed to new topics and replies.