谢谢各位大哥!<br>在调用到该DLL的另一个函数时还遇到这样一个问题““0x037d1bd9”指令引用“0x00000000”内存,该内存不能为“written””<br>程序如下:<br>Private Declare Function Submit Lib "SGIP.dll" (ByRef spnumber As String, ByRef chargenumber As String, ByVal user_count As Long, ByRef usernumber As String, ByRef corpid As String, ByRef service_type As String, fee_type As Byte, ByRef given_value As String, agent_flag As Byte, mo_fiag As Byte, priority As Byte, ByRef expire_time As String, ByRef schedule_time As String, report_flag As Byte, tp_pid As Byte, tp_udhi As Byte, message_coding As Byte, message_type As Byte, ByVal message_length As Long, ByRef message_content As String, ByRef reserve As String, ByRef sequencenumber1 As Long, ByRef sequencenumber2 As Long, ByRef sequencenumber3 As Long) As Long<br>Private Sub Command2_Click()<br> Dim x As Long<br> Dim sequencenumber1, sequencenumber2, sequencenumber3 As Long<br> Dim spnumber As String<br> Dim chargenuber As String<br> Dim uesernumber As String<br> Dim corid As String<br> Dim service_type As String<br> Dim fee_type As String<br> Dim fee_value As String<br> Dim given_value As String<br> Dim expire_time As String<br> Dim schedule_time As String<br> Dim message_content As String<br> Dim reserve As String<br> spnumber = "390000"<br> chargenuber = "000000000000000000000"<br> uesernumber = "13060698634"<br> corid = "390000"<br> service_type = ""<br> fee_type = "0"<br> fee_value = "0"<br> expire_time = ""<br> schedule_time = ""<br> message_content = "abc"<br> reserve = ""<br> <br> x = Submit(spnumber, chargenuber, 1, uesernumber, corid, "", "1", "0", "0", "0", "0", "", "", "0", "0", "0", "0", "0", 3, message_content, reserve, sequencenumber1, sequencenumber2, sequencenumber3)<br>End Sub<br><br> Submit函数是<br><br>Typedef unsigned char UINT_1;<br>Typedef unsigned short UINT_2;<br>Typedef unsigned int UINT_4;<br><br>int __stdcall Submit(char* spnumber,<br> char* chargenumber, <br> int user_count,<br> char* usernumber,<br> char* corpid,<br> char* service_type,<br> UINT_1 fee_type,<br> char* fee_value,<br> char* given_value,<br> UINT_1 agent_flag,<br> UINT_1 mo_flag,<br> UINT_1 priority,<br> char* expire_time,<br> char* schedule_time,<br> UINT_1 report_flag,<br> UINT_1 tp_pid,<br> UINT_1 tp_udhi,<br> UINT_1 message_coding,<br> UINT_1 message_type,<br> UINT_4 message_length,<br> char* message_content,<br> char* reserve,<br> UINT_4 *sequencenumber1,<br> UINT_4 *sequencenumber2,<br>UINT_4 *sequencenumber3)<br>小弟急用,请指明错误,小弟不甚感激。<br><br>