Click here to Skip to main content
15,913,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaljava Word maker help required Pin
seunao25-Aug-03 1:44
seunao25-Aug-03 1:44 
GeneralRe: java Word maker help required Pin
Joey Bloggs25-Aug-03 2:58
Joey Bloggs25-Aug-03 2:58 
GeneralStack overload problem /F dosent, debug wont enter main function, VS6 Pin
Anonymous25-Aug-03 1:39
Anonymous25-Aug-03 1:39 
GeneralRe: Stack overload problem /F dosent, debug wont enter main function, VS6 Pin
Joaquín M López Muñoz25-Aug-03 2:35
Joaquín M López Muñoz25-Aug-03 2:35 
GeneralRe: Stack overload problem /F dosent, debug wont enter main function, VS6 Pin
Anonymous25-Aug-03 2:44
Anonymous25-Aug-03 2:44 
GeneralRe: Stack overload problem /F dosent, debug wont enter main function, VS6 Pin
Joel Lucsy25-Aug-03 4:40
Joel Lucsy25-Aug-03 4:40 
GeneralProblem with CD RW files Pin
Still learning how to code25-Aug-03 1:29
Still learning how to code25-Aug-03 1:29 
GeneralSwitching Desktop: Pointer Problem Pin
mike :D25-Aug-03 0:38
mike :D25-Aug-03 0:38 
Hi!
I try to build an Desktop switcher - like the one in KDE
<br />
CWnd *pWnd = CWnd::FindWindow("Progman", "Program Manager"); <br />
<br />
if(!pWnd)<br />
  return;<br />
<br />
CWnd* pChild = pWnd->GetWindow(GW_CHILD);<br />
HWND hWnd;<br />
pChild->GetDlgItem(0x1, &hWnd);<br />
ASSERT(IsWindow(hWnd));<br />
CWnd* pCtrl = (CWnd*)CWnd::FromHandle(hWnd);<br />
((CListCtrl*)pCtrl)->DeleteAllItems();<br />
<br />
LPITEMIDLIST id;<br />
static char path[1024];<br />
SHGetSpecialFolderLocation(hWnd,CSIDL_DESKTOPDIRECTORY ,&id);<br />
SHGetPathFromIDList(id,path);<br />
<br />
CString strDesk;<br />
strDesk = _T(path);<br />
strDesk += "\\*.*";<br />
CFileFind finder;<br />
BOOL bWorking = finder.FindFile(strDesk);<br />
<br />
while (bWorking) {<br />
   bWorking = finder.FindNextFile();<br />
   ((CListCtrl*)pCtrl)->InsertItem(0,(LPCTSTR)finder.GetFileName(),0);      <br />
}<br />

The strange think is, that sometimes i can Insert Items without any problem. But sometimes i got an access error. DeleteAllItems works well, but InsertItem causes access errors.
What have i done wrong?
thx cya
sorry for my bad English Smile | :)
GeneralStrange Application Error. Help experts!! Pin
rohit.dhamija25-Aug-03 0:36
rohit.dhamija25-Aug-03 0:36 
GeneralRe: Strange Application Error. Help experts!! Pin
Taka Muraoka25-Aug-03 1:02
Taka Muraoka25-Aug-03 1:02 
GeneralRe: Strange Application Error. Help experts!! Pin
rohit.dhamija25-Aug-03 2:05
rohit.dhamija25-Aug-03 2:05 
GeneralRe: Strange Application Error. Help experts!! Pin
Taka Muraoka25-Aug-03 2:09
Taka Muraoka25-Aug-03 2:09 
GeneralRe: Strange Application Error. Help experts!! Pin
rohit.dhamija25-Aug-03 2:20
rohit.dhamija25-Aug-03 2:20 
GeneralRe: Strange Application Error. Help experts!! Pin
Taka Muraoka25-Aug-03 2:35
Taka Muraoka25-Aug-03 2:35 
GeneralRe: Strange Application Error. Help experts!! Pin
rohit.dhamija25-Aug-03 2:54
rohit.dhamija25-Aug-03 2:54 
GeneralRe: Strange Application Error. Help experts!! Pin
Ravi Bhavnani25-Aug-03 3:47
professionalRavi Bhavnani25-Aug-03 3:47 
GeneralRe: Strange Application Error. Help experts!! Pin
rohit.dhamija25-Aug-03 18:20
rohit.dhamija25-Aug-03 18:20 
GeneralSending messages through school networks. Pin
Sailboards25-Aug-03 0:26
Sailboards25-Aug-03 0:26 
GeneralRe: Sending messages through school networks. Pin
Fredrik Skog25-Aug-03 0:31
Fredrik Skog25-Aug-03 0:31 
GeneralRe: Sending messages through school networks. Pin
Sailboards25-Aug-03 21:23
Sailboards25-Aug-03 21:23 
GeneralRe: Sending messages through school networks. Pin
Fredrik Skog25-Aug-03 21:37
Fredrik Skog25-Aug-03 21:37 
GeneralSave HICON to a file Pin
Member 50856725-Aug-03 0:21
Member 50856725-Aug-03 0:21 
GeneralRe: Save HICON to a file Pin
KaЯl25-Aug-03 2:35
KaЯl25-Aug-03 2:35 
GeneralAccess Disk Sector for non-admin user Pin
khehwan25-Aug-03 0:07
khehwan25-Aug-03 0:07 
GeneralRe: Access Disk Sector for non-admin user Pin
Member 42425925-Aug-03 3:07
Member 42425925-Aug-03 3:07 

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.