|
Hello WhiteSky,
thank you for help, this is helpful for me, i have a question about CListCtrl,
do i must to use vector's to show any data in the list control or is there any alternative for that?
regards
termal
|
|
|
|
|
|
Hi,
i create a own class from CObject, looks like this sample:
class CMyObClass : public CObject
{
CString csFName;
CString csLName;
CString csStreet;
int iAge;
}
i make a new question, is there any "musts" how to store and show list items?
in this sample from your answer the developer use vector to hold items, is that the only way, or,
i can use maps like CMapStringToOb for that??
thanks very much!
termal
|
|
|
|
|
I'm not sure I understood your question but is MFC Grid control 2.26[^] your answer,if not I suggest ask for New Message on this forum
|
|
|
|
|
ok, i make a new thread
(but your answer are helpful for me )
regards
termal
|
|
|
|
|
If my answer was helpful because your explain was good;)
|
|
|
|
|
I have an MFC application with two threads built in Visual Studio 6.0. The debug version is running fine. But the Release version is giving an error. Access violation in OxC000005(NTDLL.DLL):Access Denied. Is this a problem which has arised due to the build settings or can it be due to the code??
|
|
|
|
|
Surviving the Release[^] is certainly the best article I read over here about such problems arising when migrating to Release mode compilations...
|
|
|
|
|
Thanks a lot for the good link
|
|
|
|
|
the usual error is an uninitialized variable or pointer (NULL)
|
|
|
|
|
Hai,
Iam working in EVC++ in a project,i got a error as follows:
Error : No FPM Selected.
To rectify it i gave the corresponding line:
# define FPM_ARM in the header file.
after that for all the files it showing this errors:
error C2143: syntax error : missing ')' before '{'
error C2059: syntax error : ')'
error C2143: syntax error : missing ';' before '{'
error C2143: syntax error : missing ')' before ':'
error C2290: C++ 'asm' syntax ignored. Use __asm.
can anyone please suggest me how to overcome this error..
Thanks in advance
Harshadha
|
|
|
|
|
including in everyfile a wrongly written header ?
|
|
|
|
|
hai,
but i didnt add any header file ..
only i added the macro definition alone.
then why it is coming..any suggestions to rectify it.
|
|
|
|
|
Hello all
I have made a Sdi application, while running my application the exe icon in task bar n appliation window is not coming correct like it shows a floppy symbol instead of one specifed by me...
How to remove this problem
|
|
|
|
|
Please refer this[^].
Regards,
Paresh.
|
|
|
|
|
The following code is used to convert an item identifier list to a file system path.
LPNMLISTVIEW phdr = NULL;
lparam is assigned to phdr with cast.
CListCtrl lc;
lc.Attach(phdr->hdr.hwndFrom);
LPCITEMIDLIST pidl = (LPCITEMIDLIST) lc.GetItemData(phdr->iItem);
SHGetPathFromIDList(pidl, str);
But SHGetPathFromIDList returns FALSE and str has nothing.
Any error in code?
plz help me.
Thanks.
|
|
|
|
|
Hi,
Maybe your buffer is not big enough or pidl may not be a valid LPCITEMIDLIST.
In case str is a CString you should allocate a buffer first being MAX_PATH in size.
|
|
|
|
|
Optimus Chaos wrote: In case str is a CString you should allocate a buffer first being MAX_PATH in size.
its allocated MAX_PATH.
Optimus Chaos wrote: pidl may not be a valid LPCITEMIDLIST.
Ya, pidl is NULL. But pidl is NULL only in Vista not in XP.
Any Solution.
|
|
|
|
|
Please refer this[^] for more information on Vista.
Regards,
Paresh.
|
|
|
|
|
BackAgainInDoom wrote: LPCITEMIDLIST pidl = (LPCITEMIDLIST) lc.GetItemData(phdr->iItem);
Where do you call SetItemData() ? Since the thing being returned by GetItemData() is not a valid PIDL, the place to look is your SetItemData() call.
|
|
|
|
|
Hi.
When I created SDI, I have uncheck "Document/View architecture" as I am following this tutorial: http://www.codeproject.com/useritems/SplitWindow.asp?df=100&forumid=335662&select=1996907[^]
After I have done the splitter, I add a new class, C3D_VectorDoc, with CDocument as the base class. However, when I use this new class like this: C3D_VectorDoc* pDoc = GetDocument() and compiled, it show me this error: 'C3D_VectorDoc' : undeclared identifier. How can i declare this identifier? Thx.
|
|
|
|
|
|
maybe you just have to #include "3D_VectorDoc.h"
|
|
|
|
|
hello sir,,
i am using (CThumbCtl1 class) microsoft component .. i created one object of this
class in header file (ListView Class) afterthat iam creating thumbnails on view using member function that is my function ... but it is giving the error while Creation time of thumbnails...
this is my
int CListFormView::OnCreate(LPCREATESTRUCT lpCreateStruct)<br />
{<br />
if (CFormView::OnCreate(lpCreateStruct) == -1)<br />
return -1;<br />
for(int i=0;i<14;i++)<br />
{<br />
if(!m_Thumb[i].Create(NULL,"strFileName",WS_CHILD|WS_VISIBLE,CRect(10,10,150,150),this,1000+i,0 ))<br />
{<br />
MessageBox("cant Create Thumb");<br />
}<br />
}<br />
j=0;<br />
return 0;<br />
}<br />
<br />
void CListFormView::DrawThumbnails(CString strFileName)
{<br />
<br />
if(!m_Thumb[j].displayFile(strFileName))<br />
{<br />
m_Thumb[j].displayFile("D:\\destpreview.bmp");<br />
}<br />
m_Thumb[j].BeginWaitCursor();<br />
<br />
<br />
j++;<br />
}
Regards,
Srinivas
|
|
|
|
|
how to get function prototype of the system dll
and to use in my appliction.
pls help me
|
|
|
|