摘要:
解决方法: 1、确保已经申明权限(AndroidManifest.xml 文件) <uses-permission android:name="android.permission.INTERNET" /> 2、开启 usesCleartextTraffic <application android 阅读全文
随笔分类 - C++BUILDER
idhttp验证用户和密码
2020-09-27 15:45 by su_hq, 818 阅读, 收藏,
摘要:
IdHTTP 在HTTP协议中的 Authorization idhttp->AllowCookies =true; idhttp->HandleRedirects =true; //允许重定向 idhttp->ConnectTimeout =20000; idhttp->ReadTimeout = 阅读全文
HttpEncode编码
2020-08-24 13:36 by su_hq, 413 阅读, 收藏,
摘要:
#include "System.NetEncoding.hpp" Content=TNetEncoding::URL->Encode((Content)); 阅读全文
TMultipartFormData上传文件
2020-07-14 19:05 by su_hq, 521 阅读, 收藏,
摘要:
java写的后台,上传文件时出错。 运行时异常:Failed to parse multipart servlet request; nested exception is java.io.IOException: org.apache.tomcat.util.http.fileupload.Fil 阅读全文
ffmpeg保存为jpg文件
2020-07-09 18:40 by su_hq, 1335 阅读, 收藏,
摘要:
int img_savePicture(AVFrame *pFrame, char *out_filename) {//编码保存图片 int width = pFrame->width; int height = pFrame->height; AVCodecContext *pCodeCtx = 阅读全文
ffmpeg打开视频文件
2020-07-09 18:38 by su_hq, 916 阅读, 收藏,
摘要:
下载地址: https://ffmpeg.zeranoe.com/builds/ .h文件 extern "C" { #include "libavcodec/avcodec.h" #include "libavformat/avformat.h" #include "libavutil/avuti 阅读全文
idhttp访问出现onnection closed gracefully
2020-07-07 11:47 by su_hq, 458 阅读, 收藏,
摘要:
idhttp=new TIdHTTP(NULL);idhttp->AllowCookies =true;idhttp->HandleRedirects =true; //允许重定向idhttp->ConnectTimeout =20000;idhttp->ReadTimeout =20000;//h 阅读全文
用c++Builder 怎么获取html内容
2020-06-24 13:33 by su_hq, 485 阅读, 收藏,
摘要:
https://zhidao.baidu.com/question/987621988648642499.html CppWebBrowser的使用三 获取表单内容bai主要函du数如下:AnsiString __fastcall TMainForm::GetFormValue(TCppWebBro 阅读全文
idhttp+tidmultpartfromdatastream
2020-06-22 08:42 by su_hq, 346 阅读, 收藏,
摘要:
参阅:https://www.cnblogs.com/ClaireWu/p/12487028.html function xxx.UploadFile(const sAccessToken, sFile, sFileType: string):string; var IdHttp: TIdHTTP; 阅读全文
FDConnection1断网后自动重连
2020-06-16 21:49 by su_hq, 461 阅读, 收藏,
摘要:
void __fastcall TFireDM::FDConnection1Recover(TObject* ASender, TObject* AInitiator, Exception* AException, TFDPhysConnectionRecoverAction &AAction){ 阅读全文
idhttp访问https
2020-06-07 20:46 by su_hq, 541 阅读, 收藏,
摘要:
包括两个 dll 文件:ssleay32.dll 和 libeay32.dll; 在rad安装目录下bin下的subversion下有这两个文件。 直接放到你的程序编译好的 EXE 相同文件夹底下就可以了。 运行期你的程序会自动加载这两个 DLL 完成 SSL 的功能。 设计期,拖一个 TIdSSL 阅读全文
c++builder Form重载WindowProc、WndProc 截获消息
2019-02-17 14:13 by su_hq, 324 阅读, 收藏,
摘要:
c++builder 重载WindowProc、WndProc 截获消息 方法一WindowProc void __fastcall myWindowProc(Messages::TMessage &msg); //增加Classes::TWndMethod OldWindowProc; //增加 阅读全文
FireDAC指定mssql驱动
2019-02-17 14:10 by su_hq, 533 阅读, 收藏,
摘要:
bool __fastcall IsWow64(){//为True时,则是32位的程序运行在64位的系统上,为False时,则是32位程序运行在32位系统上或64位程序运行在64位系统上! typedef BOOL (WINAPI *LPFN_ISWOW64PROCESS)(HANDLE,PBOOL 阅读全文
C++Builder 增加IPEdit控件
2019-02-17 14:03 by su_hq, 529 阅读, 收藏,
摘要:
HWND hwIpEdit;hwIpEdit = CreateWindow(WC_IPADDRESS, NULL, WS_CHILD | WS_VISIBLE, 1, 1, 136, 24, Handle, 0, HInstance, NULL);int nIP;SendMessage(hwIpEd 阅读全文
浙公网安备 33010602011771号