|
neha.agarwal27 wrote: I have made a SDI application it consist of various threads running together, now my problem is when i close the frame it gives a Don't send error. I close frame using this
How are you creating this frame. Make sure that you always "new" CFrameWnd objects.
Don't create CFrameWnd objects on stack since PostNcDestroy(unless you override) tries to delete the "new"ed object.
Anyway I am just trying to guess the reason. This could be one of them.
|
|
|
|
|
Are you closing various threds running. try in debug build you will get the assersion mostly.
there can be many reasons for dont send error generaly it is memory courrption.
|
|
|
|
|
you should replace it with
this->PostMessage(WM_CLOSE, 0, 0);
it would prevent error in case you were in the middle of something
|
|
|
|
|
In my program I have several classes that I want to separate from the rest by making them into static library (i.e. file .lib and .h)
I have class A, class B and class C. Class A includes B to call some functions from B, and both A and B include C to call some functions from C.
I can easily create a .lib file for class C by creating a new win32 static library project but I don't know how to deal with class A and B.
One more thing, if in class A (for e.g) I want to post an user message to main frame, how to inherit the message identifier from my application when I create A.lib ?
|
|
|
|
|
Hello there cpains,
I was just wondering if is possible to be able to disable a user from pasting text into a CEdit textbox control?
Thanks in advance!
|
|
|
|
|
|
Thankyou WhiteSky...
|
|
|
|
|
You're welcome.I hope it solved your prolem.
|
|
|
|
|
Hi
How can i retrieve a text drawn on a view using DrawText() on a mouselick.
regards
Arun
|
|
|
|
|
|
hai..
i am doin chat program between clients and sever.i need to give login name for each and every user... Using simple socket only i am connecting client and server. how to send the login name at the time of conection itself....
which means with some login name i will click connect button in client side, then the server side with the particular loginname should connect.
how do that.,...
|
|
|
|
|
for multiple users to login please create socket array. keep an index with each and every user name. use this index to refer the corresponding socket
regards
Arun
|
|
|
|
|
Sorry,
i am not clear...Pls, can you give me some more explanation
|
|
|
|
|
You r listening on a socket. When a connection request arrives you are allocating another socket object for further communication. So in case of multiple users you can create an array of socket objects. as you know array elements required an index for referring it. So when a client need to connect to your server it will send a login name , which may be predefined, i think.
you can verify the login name and then you have to allocate a new socket object corresponding to that request. Now you have to keep an index number corresponding to the login name which should be assigned dynamically. Using this index you can refer the socket which is assigned to the user.
I think this is the simple method. for some technical reason i can't provide the code
try to resolve the problem
regards
arun
|
|
|
|
|
Thanks for your explanation...
|
|
|
|
|
hai
i just want to know the brief idea of how an input charecter is being controlled in windows.
please give me the reference
Help Ever Hurt Never
|
|
|
|
|
Hi,
Could you please explain what is character input control.
|
|
|
|
|
how the charecter which is input through the keyboard is controlled in windows. i just want the reference of the function simillar to the windows character input function.
will u please provide the reference material.
Help Ever Hurt Never
|
|
|
|
|
Im using a map to store data.So i want to return the map.
map<int ,usercontrolinfo="">* RSUserControlContainer::GetAnswers()
{
//UserControlInfo is a structure
map<int, answertype=""> mapAnswers = new map<int, answertype="">;
---------------
--------------------------//Other code
-----------------------------------
return mapAnswers ;
}
But It give some errors.So how can i return a map from a function.
bhw
|
|
|
|
|
some syntax i typed here is not visible when i post it.map means map C++ map.
bhw
|
|
|
|
|
use <pre>, <, > symbols from formatting option when you compose the post
|
|
|
|
|
map<int ,UserControlInfo>* RSUserControlContainer::GetAnswers()
{
map<int, AnswerType> mapAnswers = new map<int, AnswerType>;
return mapAnswers ;
} The compiler is probably complaining about returning an AnswerType map when the function's return type specifies a UserControlInfo map.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
map mapAnswers, is not the pointer, Do you forgot it.
|
|
|
|
|
TobetheWinner wrote: But It give some errors.
What errors?
|
|
|
|
|
But you didnt say any thing about errors.
|
|
|
|