描述:
问题一:
我现在用VC6做一个OCX控件,在控件中封装一个网络传输方法。我在void CUserVideoShowCtrl::InitThread() 方法中初始化Incept_Network线程,在void CUserVideoShowCtrl::StartShow() 方法中创建线程,让后在VB程序里调用该方法short CUserVideoShowCtrl::RequestTransmit(LPCTSTR RequestInfo, short RequestType) 则调试OCX出错:
错误信息:
- lp_Incept_Network 0xcdcdcdcd {Incept_Network h=??? proc=???}
+ CWinThread {CWinThread h=??? proc=???}
+ classIncept_Network {"Incept_Network"}
+ _messageEntries 0x10191148 struct AFX_MSGMAP_ENTRY const * const Incept_Network::_messageEntries
+ messageMap {...}
Network_Quit CXX0030: Error: expression cannot be evaluated
m_UserVideoShowCtrl CXX0030: Error: expression cannot be evaluated
+ Socket 0xcdcdce41
+ Event 0xcdcdce69
Video_Socket CXX0030: Error: expression cannot be evaluated
Video_Socket_M CXX0030: Error: expression cannot be evaluated
EVENT_Video_Socket CXX0030: Error: expression cannot be evaluated
+ Addr_Video_Socket {...}
+ Send_Address {...}
EventTotal CXX0030: Error: expression cannot be evaluated
EvenSign CXX0030: Error: expression cannot be evaluated
DelayTime1 CXX0030: Error: expression cannot be evaluated
DelayTime2 CXX0030: Error: expression cannot be evaluated
ShowThread_BagCount CXX0030: Error: expression cannot be evaluated
tempshowcount CXX0030: Error: expression cannot be evaluated
问题二:该在静态连接库控件发行后不能够注册?
在ACTIVEX中定义的方法:
short CUserVideoShowCtrl::RequestTransmit(LPCTSTR RequestInfo, short RequestType)
{
// TODO: Add your dispatch handler code here
int error;
error=lp_Incept_Network->SendInfoTransmit((char*) RequestInfo,RequestType);
return error;
}
网络传输函数:
int Incept_Network::SendInfoTransmit(char* Info,int type)