|
It is when I assign a brush color I think.
|
|
|
|
|
The assertion says that there is already an object handle associated with you CGdiObject class. You probably attached a GDI object (a brush?) to the variable previously and forgot to detach it before you reused your object to the new brush.
If this is not the case please post the code where you use the GDI object and class.
Cheers
Steen.
"To claim that computer games influence children is ridiculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"
|
|
|
|
|
|
I am writing a simple client/server program to be used for a simple game program. It works fine within my computer(both server and client running in the same computer), but when I try to connect to the server program (running in my computer) form other computer ( from internet cafe') it doesn't connect.... I think I am missing something. could you please give me some suggestions or information useful to make my clinet program connect with the server program running in different computer. thanks!!!!
santosh Neupane
|
|
|
|
|
Do you have a fixed IP-address for your home computer?
Do you have a firewall on it?
"Time to give a Newtonian demonstration,
of a bullet, its mass and its acceleration."
-Stephen Hawking the gangsta rapper
|
|
|
|
|
Yes. I have a fixed IP Address.
I am not sure about a firewall.
thank you.
|
|
|
|
|
Has anyone know how to fix the dsw or dsp in vc when the class tab (info) is lost?
To be very simplistic about it The class tab works, their is no info or + - signs or
eval globals(theApp)
The project still works fine, I went back 1 hour and still no luck.
Any idea's ?
Best Wishes and Happy Holiday's,
ez_way
|
|
|
|
|
Just delete the *.ncb and the *.clw files.
|
|
|
|
|
OK Thanks
Marty
Best Wishes and Happy Holiday's,
ez_way
|
|
|
|
|
In the context of C++, is there technically a difference between, qualifier and modifier. I have seen the phrase "const modifier" and "const qualifier" used interchangeably. Clarification and/or references would be appreciated.
Thanks
Mike
|
|
|
|
|
In the document, "ISO/IEC 14882:1998 Programming languages -- C++",
section 7.1.5.1 The cv-qualifiers [dcl.type.cv]
1. There are two cv-qualifiers, const and volatile. If a cv-qualifier appears in a decl-specifier-seq, the init-declarator-list of the declaration shall not be empty.
Maxwell Chen
|
|
|
|
|
Are qualifier and modifier really c++ syntax? I don't think so. If they're not it's perhaps just names used for functions with a special purpose.
"Time to give a Newtonian demonstration,
of a bullet, its mass and its acceleration."
-Stephen Hawking the gangsta rapper
|
|
|
|
|
Hi,
the following code put set video window to g_hwnd handler..
if i want to return the handler to it's original stat how do i do that?
IVideoWindow *pVidWin = NULL;
pGraph->QueryInterface(IID_IVideoWindow, (void **)&pVidWin);
pVidWin->put_Owner((OAHWND)g_hwnd);
thanks
|
|
|
|
|
How do you delete doubles of an element in a vector??
|
|
|
|
|
Sort the vector first (so duplicates are consecutive), then see: unique()
Shog9
---
You'd better turn back, before the frost sets in.
These desert nights are for weathered men,
The ones who've already given in...
|
|
|
|
|
Hi,
I have two questions on mixing use of MFC and Win32 ,
1. How can I create Win32 childWindow in CDialogs or in other MFC classes after creating a project by MFC AppWizard in eVC3.0 ?
2. How can I create MFC CDialog after i create a pure Win32 application in eVC3.0 ?
Any books or material that i can refer to on the above two problems ?
Thanks so much
|
|
|
|
|
U can refer Programmin VC++ by Kruglenski Microsoft Press.Even I am trying out in same area. ![Smile | :)](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_smile.gif)
|
|
|
|
|
Hi SiddharthAtw,
I have got the book and read it, but I cannot find the stuff related to it.
Could you pls point me to the right chapter of the book ?
Thanks very much.
Patrick
|
|
|
|
|
What is the exact differece between event and mutex w.r.t thread syncronization. I found that they can be used interchangably so where excatly is the difference. If possiable can any one give an example where event will be used and where mutex can be used.
thanx in advance.
Prakash.
My God is more powerfull Than Your God. (the line that divides the world)
|
|
|
|
|
Events can be fired by lots of different threads at the same time, I think, whereas a mutex is something owned by one thread only.
So when a thread is waiting for an event, it can be fired by more or less any other thread, whereas if it is waiting for a mutex, it is one specific thread that releases it.
"Time to give a Newtonian demonstration,
of a bullet, its mass and its acceleration."
-Stephen Hawking the gangsta rapper
|
|
|
|
|
They say that it takes a pinch of salt to make the food tasty thats what you did.
Thanx a lot, now i specifically understood where i can use mutex and where events thanx again "
My God is more powerfull Than Your God. (the line that divides the world)
|
|
|
|
|
Hi:
I want to change the background color of the CTabCtrl(such as the area that doesn't be covered by the tabs).I try onctrlcolor() and onerasebackground(), but seems that they don't work. The background color is always the default one.How could I do? I search this site, but can't find a solution that works .
Thanks
Benben
|
|
|
|
|
even i am looking for the same..! if u know answer please let me know my friend.
|
|
|
|
|
Hi~
How can i read and write DXF file format in vc++?
and where can i get the source code?
Thank's for any help
|
|
|
|
|
You might want to give this a look. Also, read the comments posted to the article - further resources are listed.
Shog9
---
You'd better turn back, before the frost sets in.
These desert nights are for weathered men,
The ones who've already given in...
|
|
|
|