Click here to Skip to main content
15,902,894 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi I need to add winfax.dll to my application but when I want to do it I get the following error

make sure that the file is accessible and that it is a valid assembly or com component!

I search in google but without success,How can I resolve it?
thanks.
Posted
Updated 4-Jan-14 19:30pm
v3
Comments
Sergey Alexandrovich Kryukov 5-Jan-14 3:59am    
What do you mean by "VB", exactly?
—SA
Angela 10293848 5-Jan-14 4:14am    
I work with visual studio 2012 I mean visual basic
Sergey Alexandrovich Kryukov 5-Jan-14 4:19am    
Okay, I am asking again: what exactly do you mean by "VB", or "Visual Basic"? However, 2012 tells me that this is VB.NET. Do you know the difference? :-)
—SA
Angela 10293848 5-Jan-14 4:26am    
dear Sergey it is clear that I mean VB.net!
Sergey Alexandrovich Kryukov 5-Jan-14 9:02am    
Thank you; it wasn't at first...
—SA

1 solution

WinFax.DLL cannot be added as a reference because it is not a .NET executable, so it does not contain .NET assemblies or code.

You could use it via P/Invoke, but it might be easier for you to use Google to find a .NET fax solution instead - I know they exist, but I've never used any, so I can't recommend one to you.
 
Share this answer
 
Comments
Angela 10293848 5-Jan-14 2:06am    
You mean that I can not use winfax.dll in my project?but I need it for receiving fax in vb application?
OriginalGriff 5-Jan-14 5:08am    
You can ... probably (I haven't tried because noone I know uses fax any more), but it won't be simple: It's not .NET code it's native so it doesn't integrate well. You can use it if you google for "VB P/Invoke C++" but it will probably require a fair amount of work on your part.
It would probably be simpler to find a .NET compatible fax solution.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900