Difference between RASPHONE.exe and RASDIAL.exe

故事扮演 提交于 2020-01-02 05:08:12

问题


I try to make a dial-up connection programatically. I tried with RASdial.exe and RASPhone.exe, Both does the same except RasDial.exe display the errors in console where as RasPhone.exe gives in user Interface.

Can Someone explain me the difference between Rasdial and Rasphone and also which is right one to make a dial-up connection. And I want the error messages in User Interface and not in console.

Please explain me in detail.


回答1:


RASDIAL.exe is a wrapper around the Win32 RasDial API, and is typically used in situations where no user interface can be shown. This is why the errors are displayed in a console.

RASPHONE.exe is a wrapper around the Win32 RasPhonebookDlg API, and is typically used when an interface may be allowed. You'll have a lot more options for displaying the standard dialing interface if you use this.

They can both be used to dial a connection, it really just depends on which fits your particular needs for the application you're developing. Depending on how you want to display the error message, you may need to call the APIs rather than using the executables.



来源:https://stackoverflow.com/questions/11469514/difference-between-rasphone-exe-and-rasdial-exe

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!