摘要:
UnicodeString templateSavePath = ChangeFileExt(ExtractFilePath(Application->ExeName),"tmp.doc");IdAntiFreeze1->OnlyWhenIdle = false;//设置使程序有反应.TMemoryStream *templateStream ;templateStream = new TMemoryStream() ;try {IdHTTP1->Get("http://localhost/shaj.synadmin/tmp.doc", 阅读全文
posted @ 2011-04-07 17:52
袁晓平
阅读(263)
评论(0)
推荐(0)
摘要:
因为项目的需要,需要做一个WinForm上传文件到Web服务端,其中WinForm用C++Builder2010编写,Web服务出来端用C#编写,弄了好久终于可以了,代码如下:WinForm:UnicodeString templateSavePath = ChangeFileExt(ExtractFilePath(Application->ExeName),"tmp_1.doc");TIdMultiPartFormDataStream *stream = new TIdMultiPartFormDataStream();TIdHTTP *http = new TId 阅读全文
posted @ 2011-04-07 17:50
袁晓平
阅读(650)
评论(0)
推荐(0)
浙公网安备 33010602011771号