Click here to Skip to main content
15,914,163 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Question about WTS fucntions Pin
4apai20-Aug-04 1:33
4apai20-Aug-04 1:33 
GeneralRe: Question about WTS fucntions Pin
Blake Miller20-Aug-04 4:42
Blake Miller20-Aug-04 4:42 
GeneralRe: Question about WTS fucntions Pin
4apai20-Aug-04 5:43
4apai20-Aug-04 5:43 
GeneralRe: Question about WTS fucntions Pin
Blake Miller30-Aug-04 6:29
Blake Miller30-Aug-04 6:29 
GeneralRe: Question about WTS fucntions Pin
4apai30-Aug-04 22:22
4apai30-Aug-04 22:22 
GeneralPrinting CFormView Pin
Stan the man20-Aug-04 0:31
Stan the man20-Aug-04 0:31 
QuestionHow can I put a breakpoint in DLL? Pin
Kamis19-Aug-04 23:22
Kamis19-Aug-04 23:22 
AnswerRe: How can I put a breakpoint in DLL? Pin
Antony M Kancidrowski19-Aug-04 23:51
Antony M Kancidrowski19-Aug-04 23:51 
GeneralRe: How can I put a breakpoint in DLL? Pin
Kamis20-Aug-04 0:05
Kamis20-Aug-04 0:05 
GeneralRe: How can I put a breakpoint in DLL? Pin
Antony M Kancidrowski20-Aug-04 0:19
Antony M Kancidrowski20-Aug-04 0:19 
GeneralRe: How can I put a breakpoint in DLL? Pin
Kamis20-Aug-04 0:29
Kamis20-Aug-04 0:29 
AnswerRe: How can I put a breakpoint in DLL? Pin
jmkhael19-Aug-04 23:52
jmkhael19-Aug-04 23:52 
GeneralRe: How can I put a breakpoint in DLL? Pin
Kamis20-Aug-04 0:07
Kamis20-Aug-04 0:07 
GeneralRe: How can I put a breakpoint in DLL? Pin
jmkhael20-Aug-04 0:13
jmkhael20-Aug-04 0:13 
GeneralRe: How can I put a breakpoint in DLL? Pin
Kamis20-Aug-04 0:18
Kamis20-Aug-04 0:18 
GeneralRe: How can I put a breakpoint in DLL? Pin
jmkhael20-Aug-04 0:20
jmkhael20-Aug-04 0:20 
AnswerRe: How can I put a breakpoint in DLL? Pin
wb20-Aug-04 0:01
wb20-Aug-04 0:01 
GeneralRe: How can I put a breakpoint in DLL? Pin
Kamis20-Aug-04 0:09
Kamis20-Aug-04 0:09 
AnswerRe: How can I put a breakpoint in DLL? Pin
Neville Franks20-Aug-04 0:17
Neville Franks20-Aug-04 0:17 
GeneralCListCtrl mystery Pin
saushar19-Aug-04 23:10
saushar19-Aug-04 23:10 
Questionhow to use dll in thread Pin
yingkou19-Aug-04 22:46
yingkou19-Aug-04 22:46 
I want to use the loaded dll in the new thread,my codes as below:
BOOL CTestDLLDlg::OnInitDialog()
{
hins=LoadLibrary("ShowDialog.dll");//Success
}
void CTestDLLDlg::OnButton1()
{
AfxBeginThread(ThreadFun,NULL);
}
UINT ThreadFun(LPVOID lp)
{
typedef void __stdcall TestChar(char,char* ,int);
TestChar* test=NULL;
test=(TestChar*)GetProcAddress(((CTestDLLDlg*)AfxGetMainWnd())->hins,"TestChar");
if(NULL != test)//Failure
{
char buf[6];
test('c',buf,sizeof(buf)/sizeof(char));
AfxGetMainWnd()->SetWindowText(buf);
return 0;
}
DWORD d=GetLastError();//can not find the given module

return -1;
}

I know if I load the dll in the new thread,it will work well.but I want to know if I used dll in this way,what should I do?
QuestionHow to send and receive ARP packets Pin
chito19-Aug-04 22:27
chito19-Aug-04 22:27 
AnswerRe: How to send and receive ARP packets Pin
David Crow20-Aug-04 3:04
David Crow20-Aug-04 3:04 
GeneralRe: How to send and receive ARP packets Pin
chito20-Aug-04 14:06
chito20-Aug-04 14:06 
GeneralRe: How to send and receive ARP packets Pin
David Crow23-Aug-04 3:18
David Crow23-Aug-04 3:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.