|
in you code, ob is a CObArray. What does the CObArray::operator[]() return ??
maybe the compiler cannot cast from the returned value to CAsynSocket*
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Hai, can u help me in my problem? how can i find out how many users are currently connected to one application.whether i can store in memmory?then how?pls help me...
shan
|
|
|
|
|
Is this an application that you wrote that you are wanting to keep a connection-count of, or are you wanting to know how many connections there are to some other application?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
hai , i want to know connection count of each application(client server based application)
shan
|
|
|
|
|
I'm guessing that you already have code on the server side that handles client requests. Yes?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
I want to attach a file with the mail to send in Pocket PC 2003.IMessage provides the method to create attachment and write stream in it .how can i attach an existing file stored.
pls help me.
Learner always
|
|
|
|
|
Hi:
I overload funcion fun(char) and fun(char*),when I call fun(0),the compiler said:" ambiguous called ....",but when I call fun(1),the compiler will select fun(char).why?
I also define fun(int) and fun(int*),to my surprise,I call fun(0) in the same way. The compiler compile successfully and select fun(int),Why?
your friend:bobi
|
|
|
|
|
I'm not a compiler expert, but suppose that the compiler tries to convert (cast) the input argument to something. Since 0 is by default an integer it tries to cast to char but it also can be casted to NULL pointer. So the compiler doesn't know which is the best solution. In the second case the 0 is an integer and the compiler found the method, doesn't need conversion (casting). I suppose if you call the function as fun(0L) it will have the same result as in the previous case...
To resolve the problem call the function as fun((char)0) .
Hope this help,
Abyss
|
|
|
|
|
i also though of an implicit cast (that is what the compiler does actually), but there should not be any difference between 0 and 1 in calling the function. if 0 is casted to char, so 1 should be too. if 0 is casted to char* (NULL pointer), then 1 should be casted to address 1...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
oH,dear:
I try calling fun(0L),the compiler compile successfully and select fun(int) still.
your friend:bobi
|
|
|
|
|
bobi_zcl wrote:
I overload funcion fun(char) and fun(char*),when I call fun(0),the compiler said:" ambiguous called ....",but when I call fun(1),the compiler will select fun(char).why?
Was this not answered sufficiently here and here?
0 is an integral constant expression. For the char /char* case, neither is a better match for the 0 than the other, hence the ambiguity error. For the int /int* case, fun(int) is an exact match for 0, thus no error.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
|
I have added the CWebBrowser control to my MFC program. I can Get/Set the URL, using methods Navigate and get_LocationURL but was wondering if it is possible to get hold of some of the data being displayed on the Web Page; e.g. labels, tables elements and current Combo selection.
Cheers,
|
|
|
|
|
|
how can we find out the difference(number of days) between system date and decide date.
|
|
|
|
|
|
You can check COleDateTime class as well.
"Aerodynamically, the bumble bee shouldn't be able to fly, but the
bumble bee doesn't know it so it goes on flying anyway." - Mary Kay Ash
My Articles
|
|
|
|
|
What is a "decide date?"
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
maybe a date fixed at the day you like...
use your imagination
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Hi all, I am trying to hide the captoins of a tab control but cant seem to find any way to do this. Any kind of hints or pointers would be appreciated. Thanks.
- tareq
|
|
|
|
|
|
Thanks for your reply... but unfortunately this is not what i was looking for. This will still show the buttons there with no text on them... I just dont want to see those buttons there.
- tareq
|
|
|
|
|
Tareq Ahmed Siraj wrote:
This will still show the buttons there with no text on them
yes, that is what i understood in your "I am trying to hide the captions of a tab control...". For me, the caption is the text associated with the button...
well, what about ShowWindow(SW_HIDE); ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Sorry about the misunderstanding i've created. Let me be more specific. I havent done much programming with tab controls... I have a MFC tab control. I've got rid of the borders by setting the tab style to buttons. Now i have the tabs with buttons associated with them. Now i dont want even the buttons to be there. I want to control the tabs using SetCurSel()... no button clicks. Thanks in advance.
- tareq
|
|
|
|
|
if u want to hide the button use.....ShowWindow();
eg:
GetDlgItem(IDC_BUTTON1)->ShowWindow(FALSE);//TO HIDE
GetDlgItem(IDC_BUTTON1)->ShowWindow(TRUE);//TO SHOW
OR
if u have declared an object linkeded to thiz control using ddx,then just use......
object.ShowWindow(FALSE)
hope that helpz.....
cheerz.....
"faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13
|
|
|
|