TempClient.cpp
上传用户:sz0451
上传日期:2022-07-29
资源大小:256k
文件大小:1k
- // This is the main project file for VC++ application project
- // generated using an Application Wizard.
- #include "stdafx.h"
- #include "WebService.h"
- #using <mscorlib.dll>
- using namespace System;
- // This is the entry point for this application
- #ifdef _UNICODE
- int wmain(void)
- #else
- int main(void)
- #endif
- {
- Console::WriteLine(S"Web Service Test");
- try
- {
- // Create a proxy object
- TemperatureConverter* conv = new TemperatureConverter();
- // Call a conversion method
- double fahrVal = conv->ConvertC2F(10.0);
- Console::WriteLine("10C is {0}F", __box(fahrVal));
- }
- catch(Exception* pe)
- {
- Console::WriteLine(pe->Message);
- }
- return 0;
- }