小弟最近在用dotmsn, 自己也用人家的框架写点程序,考了人家一段代码,一跑这里总出问题,哪位大侠好心给解决一下,感激不尽 private delegate ConversationForm CreateConversationDelegate(Conversation conversation); private ConversationForm CreateConversationForm(Conversation conversation)
{
// create a new conversation. However do not show the window untill a message is received.
// for example, a conversation will be created when the remote client sends wants to send
// you a file. You don't want to show the conversation form in that case.
ConversationForm conversationForm = new ConversationForm(conversation); // do this to create the window handle. Otherwise we are not able to call Invoke() on the
// conversation form later.
conversationForm.Handle.ToInt32(); return conversationForm;
}Error 1 The type or namespace name 'ConversationForm' could not be found (are you missing a using directive or an assembly reference?) D:\C_lang\msnrobot\msnrobot\robot.cs 161 26 msnrobot我仔细核对了所有的using我都加上了,而且应该reference的地方也加上了,可是死活就抱这个错。
{
// create a new conversation. However do not show the window untill a message is received.
// for example, a conversation will be created when the remote client sends wants to send
// you a file. You don't want to show the conversation form in that case.
ConversationForm conversationForm = new ConversationForm(conversation); // do this to create the window handle. Otherwise we are not able to call Invoke() on the
// conversation form later.
conversationForm.Handle.ToInt32(); return conversationForm;
}Error 1 The type or namespace name 'ConversationForm' could not be found (are you missing a using directive or an assembly reference?) D:\C_lang\msnrobot\msnrobot\robot.cs 161 26 msnrobot我仔细核对了所有的using我都加上了,而且应该reference的地方也加上了,可是死活就抱这个错。
Rebuild Solution
ReAdd Reference
等的。