程序运行时报错,请帮忙!

HOHAYO 2004-04-28 12:19:24
Access violation at address 77C14977 in module 'MSVCRT.DLL'.Read of address 00000010.
...全文
64 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
HOHAYO 2004-04-29
  • 打赏
  • 举报
回复
up
HOHAYO 2004-04-29
  • 打赏
  • 举报
回复

bcbsoft 2004-04-28
  • 打赏
  • 举报
回复
程序贴出来看看吧
HOHAYO 2004-04-28
  • 打赏
  • 举报
回复
void __fastcall TForm1::Button2Click(TObject *Sender)
{
if( NULL == DLLInst )
DLLInst = LoadLibrary("cmppapi.dll");
if (DLLInst) {
CMPP_Submit = (int ( __cdecl *)(int conn_id,
INT64 *msg_id,
unsigned char msg_level,
char *service_id,
unsigned char msg_format,
char *msg_src,
char *fee_type,
char *fee_code,
char *valid_time,
char *at_time,
unsigned char tp_pid,
unsigned char tp_udhi,
unsigned char fee_usertype,
char *charge_mobile,
char *src_mobile,
unsigned char user_num,
char *dest_mobiles,
char *msg,
int msg_len,
unsigned char need_response) )GetProcAddress(DLLInst,"CMPP_Submit");
INT64 *ff;
ff = new INT64;
if (CMPP_Submit)
ShowMessage(CMPP_Submit(0,ff,0,"1234",15,"912345","00000001000000","100000","1","20040101160001",0,0,2,"0","0",1,"13900000000","ok",2,0));
else
ShowMessage("Could not obtain function pointer");
}
//---------------------------------------------------------------------------


CMPPAPI.dll是短信网关提供的API,不过是用VC开发的,在BCB下的转换问题已经解决了,已经有函数能够调用正常,只是这个函数调用时有错,运行时,点击该按钮直接报错为 Access violation at address 77C14977 in module 'MSVCRT.DLL'.Read of address 00000010.  证明函数装入还是成功了,请高手指教!
quickeer 2004-04-28
  • 打赏
  • 举报
回复
这种情况有可能是外部程序的问题,与自己程序关系不大.但也难说:))

13,825

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧