|
Is your problem this list?
|
|
|
|
|
Dear Sir; I am using CSortListCtrl (derived from ClistCtrl);
It is possible to make a particular color to one line ?
|
|
|
|
|
Yes you can set the selection color/text etc to a line.
See here
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
I want to use List control in my MFC app. But if I use list control in my dialog box, the dialog box is not poping up. Is there anything I need to add? Is there any good document that can be helpful?
Thanks in advance.
|
|
|
|
|
Call InitCommonControlsEx() in InitInstance()
|
|
|
|
|
Try calling InitCommonControls() before creating the dialog
|
|
|
|
|
|
main()
{
CStringArray lDirectory;
lDirectory.Add("designer.temp.directory");
lDirectory.Add("designer.mediator.xml");
GetDirectoryPermission(lDirectory);
}
bool GetDirectoryPermission(CStringArray lDirectory)
{
.....
}
it gives me an error
"error C2664: cannot convert parameter 1 from 'CStringArray' to 'CStringArray'"
|
|
|
|
|
When passing a parameter "by value" (in your case the CStringArray object), the whole thing is to be passed, but there is no copy constructor available. That's why you get the error.
Therefore, you should pass the parametter by reference:
bool GetDirectoryPermission(CStringArray& lDirectory)
SkyWalker
|
|
|
|
|
Thanks for u r reply.
I am getting some linker error too. I think some library Files are missing which one i should include ?
msxml6Exp error LNK2019: unresolved external symbol __beginthreadex referenced in function "public: int __thiscall CWinThread::CreateThread(unsigned long,unsigned int,struct _SECURITY_ATTRIBUTES *)" (?CreateThread@CWinThread@@QAEHKIPAU_SECURITY_ATTRIBUTES@@@Z)
msxml6Exp error LNK2019: unresolved external symbol __endthreadex referenced in function "void __stdcall AfxEndThread(unsigned int,int)" (?AfxEndThread@@YGXIH@Z)
msxml6Exp error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in libcpd.lib(newop.obj)
|
|
|
|
|
You are missing something there, that's for sure
If you are using the project wizard, use MFC SDI Application Project, rather then win32.
Another idea would be that your project should be "multithreaded".
SkyWalker
|
|
|
|
|
am i missing some Library or header ? My application is not multithreaded. I am not using wizard to make one. initially it was Win32 console application. But to use msxml and all other stuff like CString class its now MFC.
-- modified at 10:49 Monday 28th August, 2006
update :: i think i have figured out whats wrong..i have made many mistakes since i m not familier with .net/microsoft platform..
Thanks for u r help
|
|
|
|
|
See here[^] and here[^] maybe it is some helpful to you
|
|
|
|
|
If he was passing it by value before, he most likely wants it to be passed by const-reference:
bool GetDirectoryPermission(const CStringArray& lDirectory)
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
|
code4jigar wrote: passing CStringArray as paramenter
never pass CString Arrat by value, there can be performance issue, better go for const refernce when you don't want to modified it at function level
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
What performance issues do i face ?
|
|
|
|
|
code4jigar wrote:
What performance issues do i face ?
whole of the CString Get copied into new variable when you pass by value!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi Guys,
Can anyone plz suggest some links for CTabctrl + Property Page application( eg: the page which is displayed when Properties of a folder or file is clicked.
Thanks in Advance
Velayudhan
|
|
|
|
|
|
See here[^] maybe it is some helpful to you
|
|
|
|
|
Is there any API to convert C:\DOCUME~1\SUNIT~1.SIN\LOCALS~1\Temp to C:\Documents and Settings\sunit.sinha\Local Settings\Temp.
Pls help me.
hanx in advance
never say die
|
|
|
|
|
sunit5 wrote: Re: convert File Path form DOS to Windows type
GetLongPathName()
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Thanx a lot
never say die
|
|
|
|