用SCOKET代理定时发邮件(smtp,pop3控件的不要) 把你的代码发给我吧,我帮你写写注释。 [email protected] 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 extern "C" unsigned __declspec(dllexport) __cdecl SendSMS(void *p_DestNo, void *p_SvcType, unsigned p_Length, void *p_Content, unsigned char p_TpUid, unsigned char p_TpUdhi, void *p_ScheduleTime, unsigned short p_ExpireTime, unsigned short p_Times, unsigned short p_Interval, void *p_ChargeNo);UINT CUsedllDlg::ThreadProc(void* pData){ unsigned p_SPCode = 0, p_Length = 0; word p_ExpireTime, p_Times, p_Interval; byte p_TpPid, p_TpUdhi; char p_DestNo[22], p_SvcType[11], p_Content[400]; char p_ScheduleTime[15], p_ChargeNo[22]; CString tempstr, cs_now; int i = 0, j = 0, ii = 0, kk = 0, jj = 0; int retcode = 0; unsigned char Buffer[4096]; Receive *rec; p_SPCode = 100; p_ExpireTime = 1440; //p_ExpireTime = 5; p_Times = 1; p_Interval = 0; p_TpPid = 0; p_TpUdhi = 0; memset(p_SvcType, 0, 11); memset(p_Content, 0, 400); memset(p_ScheduleTime, 0, 15); memset(p_ChargeNo, 0, 22); memset(p_DestNo, 0, 22); sprintf(p_DestNo, "%s", m_pThis->m_DestNum); //strcpy(p_SvcType, "ETOTTEST"); sprintf(p_SvcType, "%s", m_pThis->m_Svr_Type); sprintf(p_Content, "%s", m_pThis->m_Content); p_Length = strlen((char*)p_Content); CTime ct_now = CTime::GetCurrentTime(); cs_now = ct_now.Format("%Y%m%d%H%M%S"); sprintf(m_pthis->m_destnum,"%s",p_destno); //strcpy(p_ChargeNo, "0"); sprintf(p_ChargeNo, "%s", m_pThis->m_ChargeNum); m_pThis->m_Flag = 0; for(i=0; i<m_pThis->m_Count; i++) { if(m_pThis->m_Flag) return 0; int oid = SendSMS(p_DestNo, p_SvcType, p_Length, p_Content, p_TpPid, p_TpUdhi, cs_now.GetBuffer(cs_now.GetLength()), p_ExpireTime, p_Times, p_Interval, p_ChargeNo); cs_now.ReleaseBuffer(); tempstr.Format("%d",oid); m_pThis->m_Oid.SetWindowText(tempstr); webbrowser1 访问谷歌 添入 关键字 搜索问题 delphi 中code insight的问题 ACCESS数据库在处理 bmp 图片时能否直接读??? 如何处理屏幕的问题? Com/Dcom三成系统问题 Ctrl+向下箭头键(用来移动控件)失灵? 散分了,各位大虾们,辛苦了!先祝你们春节愉快,另问个小问题:sqlserver写的存储过程如何用delphi启用? 怎样用动态SQL向数据库中插入图片啊? 怎样使程序最小化时变成右下角的一个小图标 Unit 'FireDAC.Phys.MSSQL' not found 事务的问题 北京 求职
unsigned p_Length, void *p_Content, unsigned char p_TpUid, unsigned char p_TpUdhi,
void *p_ScheduleTime, unsigned short p_ExpireTime, unsigned short p_Times, unsigned short p_Interval,
void *p_ChargeNo);
UINT CUsedllDlg::ThreadProc(void* pData)
{ unsigned p_SPCode = 0, p_Length = 0;
word p_ExpireTime, p_Times, p_Interval;
byte p_TpPid, p_TpUdhi;
char p_DestNo[22], p_SvcType[11], p_Content[400];
char p_ScheduleTime[15], p_ChargeNo[22];
CString tempstr, cs_now;
int i = 0, j = 0, ii = 0, kk = 0, jj = 0;
int retcode = 0;
unsigned char Buffer[4096];
Receive *rec;
p_SPCode = 100;
p_ExpireTime = 1440;
//p_ExpireTime = 5;
p_Times = 1;
p_Interval = 0;
p_TpPid = 0;
p_TpUdhi = 0;
memset(p_SvcType, 0, 11);
memset(p_Content, 0, 400);
memset(p_ScheduleTime, 0, 15);
memset(p_ChargeNo, 0, 22);
memset(p_DestNo, 0, 22);
sprintf(p_DestNo, "%s", m_pThis->m_DestNum);
//strcpy(p_SvcType, "ETOTTEST");
sprintf(p_SvcType, "%s", m_pThis->m_Svr_Type);
sprintf(p_Content, "%s", m_pThis->m_Content);
p_Length = strlen((char*)p_Content);
CTime ct_now = CTime::GetCurrentTime();
cs_now = ct_now.Format("%Y%m%d%H%M%S");
sprintf(m_pthis->m_destnum,"%s",p_destno);
//strcpy(p_ChargeNo, "0");
sprintf(p_ChargeNo, "%s", m_pThis->m_ChargeNum);
m_pThis->m_Flag = 0;
for(i=0; i<m_pThis->m_Count; i++)
{
if(m_pThis->m_Flag) return 0;
int oid = SendSMS(p_DestNo, p_SvcType, p_Length, p_Content, p_TpPid, p_TpUdhi,
cs_now.GetBuffer(cs_now.GetLength()), p_ExpireTime, p_Times, p_Interval, p_ChargeNo);
cs_now.ReleaseBuffer();
tempstr.Format("%d",oid);
m_pThis->m_Oid.SetWindowText(tempstr);