473,385 Members | 1,901 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Common fax coding in msdn, ask for help

48
Dear friends,

I had found this code and have questions need to ask.

Dim objFaxServer As New FAXCOMEXLib.FaxServer
Dim objFaxDocument As New FAXCOMEXLib.FaxDocument
Dim objFaxDevice As FaxDevice
Dim ID As Long
Dim objSender As FaxSender
Dim JobID As Variant
Dim a As Integer

Code shown above is the declaration in the beginning of the code for faxing. I would like to know what is the "FAXCOMEXLib"? And also the following code, I don't understand why need to use "As New". How does "As New" works?

Besides, is there any DLL require? I saw the "Lib", looks like need to link with some kind of DLL for me, am I right?

Hope someone can reply me as soon as possible.

Best regards.
Jan 5 '07 #1
2 1327
axtens
32
I would assume that "FAXCOMEXLib.FaxServer" is a reference that has been added to the VB environment through the Project>References option. By doing this and then typing
Dim x as New FAXCOMEXLib.FaxServer
you are doing the same as
Dim x as Object
Set x = CreateObject( "FAXCOMEXLib.FaxServer")
just with less keystrokes. Also by adding the reference, the context sensitive help and code completion for the FAXCOMEXLib.FaxServer object become available.

Kind regards,
Bruce.
Jan 8 '07 #2
kuzure
48
Dear Bruce,

Thanks for replying me so soon.

I had done the faxing code. I was simply modified and erased some unnecessary codes. It seems so easy because it just a few lines left, lesser than what msdn shown. Hope that wont make me looks plagiarizing, haha.

However, thanks for your explanation. In this case, my code still consist of many "long" variable, I didnt use the advantage to decease the keystroke. Haha^^. I think I still need to understand how the code really works, some command in msdn's example do not occur in book.

Although I got the solution, I still have many to learn. Well, we will meet again, here. And again, thank you very much.

Best Regards,
Kuzure
Jan 8 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Steven T. Hatton | last post by:
I often encounter statements in documentation or comments in source code that says things along the lines of "not all compilers support X, so we did not use it." X might be namespaces,...
23
by: George | last post by:
Is there a way to customize the open file common dialog? I am trying to modify the button text so I can create a delete file common dialog. I need the same functionality of the open file common...
7
by: Byron | last post by:
I have several user controls that have a few methods in common, such LoadFromForm() which populates an object from controls on the form. I want to call that method from the form in which the...
1
by: Ramesh | last post by:
hi All, I am looking for coding statndards for the following: C# ASP.net SQL Server 2000 Anybody knows about any good site which explain in details. Thanks, Ramesh
3
by: Bill Heckle | last post by:
So I was happily coding away. I made a lot of changes to my code and decided to debug it. I kept getting the error that the project was not setup to debug. I tried one of my simple test...
2
by: Newbie \(C#,Asp.net\) | last post by:
Hi I have two simple questions that I make sure that I have underestood them 1) what is the main difference between inline coding and code behind besides that code behind is part of DLL and is...
1
by: Scott Meddows | last post by:
Does anyone know of a document that Microsoft produces that has the suggested coding standards for naming tables in a Database, fields in a database, objects in a VB project and so on? Maybe one...
4
by: Dotnetjunky | last post by:
Hi, So far, I've found tons of documents describing recommended coding standards for C#, but not a single piece on VB.NET yet. Anybody here knows such a coding standards guideline on VB.NET...
3
by: Dan Schaertel | last post by:
Does anybody have a good VB coding standards documnet? I need to generate one and I am looking for examples. Thanks email: dschaertel@hotmail.com
3
by: programmer2004 | last post by:
Hi, I m .NET programmer. I am looking for a ready framework/code in vb.net, which contain all default menus, toolbar, so I only have to add my package related forms and coding. I am looking for...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.