|
Guessing by the error, it seems that the "ACL_ConnectToServer" function doesn't return anything. So, you cannot check its return value with a "if".
BTW, please read the posting guidelines which are at the top of this forum. Thank you.
|
|
|
|
|
How CONNECION is defined?
(I guess the connect2Server function has a out parameter, the last one looks promising, to return the result of the operation).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
I want to convert CListCtrl items from Check Boxes to radio buttons
please let me know how can i do that
thanx in advance
|
|
|
|
|
There's no inbuilt method, u'll have to do it manually.
Come online at:-
jubinc@skype
|
|
|
|
|
hummm thanx for the info
let me know how to start of if u have any idea
|
|
|
|
|
ListCtrl needs to be made Owner Drawn. While drawing, use CDC::DrawFrameControl() to draw the radio button. Implement u'r own logic to get the selected Radio button item.
Come online at:-
jubinc@skype
|
|
|
|
|
Heyy Don
here is an other way i have done .. thought its useful for all so posting here
Create image list with cheked and uncheked dadiobitmap button images and and set it to list view control
CBitmap tmpBmp;
CImageList m_imgList;
m_imgList.Create(16,16,ILC_COLOR | ILC_MASK, 0, 255);
tmpBmp.LoadBitmap(IDB_RADIOBTNS);
m_imgList.Add(&tmpBmp, RGB(255, 0, 255));
myListCtrl.Create( Styles ,CRect(0,0,0,0), this, IDC_SOMEID)
//myListCtrl.SetExtendedStyle( set tyles what ever u want );
myListCtrl.SetImageList(m_imgList, LVSIL_STATE);
--
feel free to revert me back for info if any body needs more
|
|
|
|
|
sarat wrote: I want to convert CListCtrl items from Check Boxes to radio buttons
Are you wanting to ensure that only one item can be selected at a time?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
Then make sure to use the LVS_SINGLESEL style.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hello everyone,
How to get the performance counter index and name relationship? Is there a table?
(like integer 180 for working set counter)
I can not find from MSDN,
http://msdn2.microsoft.com/en-us/library/aa372648.aspx
thanks in advance,
George
|
|
|
|
|
Are there situations where you cannot refer to an item by its name? The performance API allows you to construct counters using a name. If I've misunderstood your question, please explain.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi DavidCrow,
I am reading some other people's code and it has a list of numbers (performance counter index), so I have to know how to get name by index.
regards,
George
|
|
|
|
|
But how do you know there is a corresponding name?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Thanks DavidCrow,
I only know a rough name from perfmon tool, and I do not know whether it is exactly the same name which could be used to find the index by the API, and I think the API should do exact name match, right?
regards,
George
|
|
|
|
|
George_George wrote: ...right?
Until you can provide an example where a name is used in place of a number, I've no idea.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi DavidCrow,
I have found the result by,
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\LangId
regards,
George
|
|
|
|
|
Since my machine uses English, it would be:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\009\Counter
Now that you've "found" this, what exactly does it help you do that was not possible before?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Sorry DavidCrow,
English is not my native language. You mentioned "what exactly does it help you do that was not possible before?", do you mean what objectives could I achive if I know the mapping between index and name of performance counter?
If I do not understand your points correctly, please say the sentence in some other words.
regards,
George
|
|
|
|
|
George_George wrote: ...do you mean what objectives could I achive if I know the mapping between index and name of performance counter?
Yes. I've done plenty of performance counter code, but have never needed such information. I don't do non-English stuff, however.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi DavidCrow,
Do you have an email address, I can send you the sample code I am learning if you are interested.
regards,
George
|
|
|
|
|
hi all,
I have a MFC work space which i m trying to build on WDK. Hence writing make file and sources file.In VC++ workspace i have an included directory (C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\MFC\SRC)at the path Tools->Options->Directories-IncludeFiles. Now i want to include this path in my sources file to get it worked on WDK. I tried to include this path under INCLUDES part of the sources file but probably i didn't know the actual format of mentioning this path. can somebody help me out to include this mentioned path in my sources file..?
Thanks in Advance
kathir
|
|
|
|
|
Hi, all
I download and installed platform SDK.
Some project in this SDK\sample, but I can not open these sample, because these samples have not *.sln or *.dsw file but have a makefile.
So, how can I open the makefile by Visual Studio 2005 (VC8)
|
|
|
|
|
|
AFAIK, VS doesn't have a built-in utility to make a project from a makefile.
That means you'd have to parse it yourself (open in a text editor and see
what files and compiler/linker settings are used).
If you don't want to go through that trouble, you can build them from the
command line...
Open a DOS box, go to the visual c/bin folder and run vcvars32.bat (for 32-bit builds):
Setting the Path and Environment Variables for Command-Line Builds[^]
Then, without closing the command window, go to the folder with the makefile and run nmake.
That should build the samples
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|