|
Bankey Khandelwal wrote: how to transfer control to child thread repetedly.
please give me sollution ASAP
Create a Thread with higher priority.
Bankey Khandelwal wrote: Bankey Khandelwal
Mobile : 98504-32990
Office : 020 25521888
Solversa Technologies
15, Yeshwant Ghadge Nagar,
Range Hill Road,
Pune - 03,Maharashtra,India.
You love spamers a lot i guess.
-Prakash
|
|
|
|
|
Mr.Prakash wrote: You love spamers a lot i guess.
Seems so
"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
|
|
|
|
|
Bankey Khandelwal wrote: how to transfer control to child thread repetedly.
Which type of control are you talking about activex control or Child controlling the main application... please clarify
"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
|
|
|
|
|
void add_new_item(grahpic_card* gc_add);
grahpic_card gc[10];//declaring the object
add_new_item(&gc);//call the function while passing the object gc address
my class is the graphic card and my object is the gc is there any way i can pass the address of a class to my function? while my class is local class??
if there is please explain and sohw me thx u^^
|
|
|
|
|
neodeaths wrote: can pass the address of a class to my function
Huh? Maybe you meant passing the address of the current instance of your class to a function? Use the "this" keyword.
class A
{
void Method()
{
Test(this);
}
void Test(A *a)
{
}
}
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
i mean passing the address of a whole class to the function
so that i can use this in my function:
cout<<gc_add[i]->model<
|
|
|
|
|
neodeaths wrote: void add_new_item(grahpic_card* gc_add);
Your function expects a pointer to a graphic_card .
neodeaths wrote: grahpic_card gc[10];
You declare an array of graphic_card s.
neodeaths wrote: add_new_item(&gc);
Your passing the address of an array, not a graphic_card .
Try this:
add_new_item( &( g[ 0 ] ) );
Now, this is passing the address of a single graphic_card .
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
How to load bitmap from Hard disk instead of bitmap from resource file?
-- modified at 2:18 Saturday 7th January, 2006
|
|
|
|
|
|
HANDLE hBMP = ::LoadImage(NULL, "filename.bmp", IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE);
------- sig starts
"I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
|
What is the procedure to change the background of list box?
NSS
|
|
|
|
|
The best way is to override the WM_CTLCOLORLISTBOX[^] message.
You'll need something like HBRUSH m_hBrush = NULL; in your class definition and check you set it to NULL in your classes constructor. Once done, override the DefWindowProc for your controls parent window and add to it...
switch( message )
{
case WM_CTLCOLORLISTBOX:
{
if( m_hBrush == NULL )
{
LOGBRUSH lb;
ZeroMemory( & lb, sizeof( LOGBRUSH ) );
lb.lbStyle = BS_SOLID;
lb.lbColor = RGB( 0, 0, 255 );
m_hBrush = CreateBrushIndirect( & lb );
}
SetBkColor( ( HDC ) wParam, RGB( 0, 0, 255 ) );
SetTextColor( ( HDC ) wParam, RGB( 255, 255, 255 ) );
return ( LRESULT ) m_hBrush;
}; break;
}
Obviously when the window / class is destroyed you'll need to destroy the brush you've alllocated so add something like if( m_hBrush != NULL ) DestroyObject( m_hBrush ); aswell.
This will currently set every list box on your window to the colour Blue, if you want to be more selective all you need to do is compare the list boxes handle to the lParam of the WM_CTLCOLORLISTBOX message.
Gavin Taylor
w: http://www.gavspace.com
|
|
|
|
|
Thanks a lot for your answer..
|
|
|
|
|
hi,
i am not able set the check mark when i select the menu item
is there any setting when creating the menu templete...
the following code snapet
CMenu *popMenu=mnu->GetSubMenu(0);
CMenu *subpop=popMenu->GetSubMenu(3);
UINT state=subpop->GetMenuState(ID_TEMP_SETPRIORITY_ABOVENORMAL,MF_BYCOMMAND);
if (state & MF_CHECKED)
subpop->CheckMenuItem(ID_TEMP_SETPRIORITY_ABOVENORMAL, MF_UNCHECKED|MF_BYCOMMAND);
else
subpop->CheckMenuItem(ID_TEMP_SETPRIORITY_ABOVENORMAL, MF_CHECKED | MF_BYCOMMAND);
if any idea please let me ASAP.
thanks in advance.
FAILURE is the first step towards SUCCESS
|
|
|
|
|
Try this in the UI handler for the menu item.
Love Forgives--Love Gives--Jesus is Love <marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" style="background-color:'#44ccff'">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
|
Hi,
I wanted to set /NOENTRY option for resource DLL IN VC++ 6.0. I had serched the MSDN online Net but MSDN
is only helping out to set that Option in VC++.Net(7.0).
Plz Help me in setting tht option in VC++(6.0).
Nitin Patil
India
|
|
|
|
|
I dont know if there is a option to enable or diable that setting but you can do that manually.
In the project settings, under the link tab, There is a edit box called as Project Options, in that box add /NOENTRY with the other options similarly you add any other linker options.
-Prakash
|
|
|
|
|
Thanx for helping me out
Nitin Patil
|
|
|
|
|
Mr.Prakash wrote: in that box add /NOENTRY with the other options similarly you add any other linker options.
you getting 1 vote quite often...
"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
|
|
|
|
|
ThatsAlok wrote: you getting 1 vote quite often...
yeah, coz i have my own personal downvoter.
-Prakash
|
|
|
|
|
Mr.Prakash wrote: yeah, coz i have my own personal downvoter.
Whom!
"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
|
|
|
|
|
ThatsAlok wrote: Whom!
I dont know, but he/she is out there, waiting for me to post new messages to be downvoted
-Prakash
|
|
|
|
|
Mr.Prakash wrote: I dont know, but he/she is out there, waiting for me to post new messages to be downvoted
seems you have many enemy *ahem* downvoter here... but you are very polite guy... how come thats possible.. anyways, now I am correcting that person mistake , also we have four vote ( gold member vote weight is four time more then any normal member) .
as if we take worse condition is your downvoter is atmost gold member .
"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
-- modified at 0:14 Tuesday 10th January, 2006
|
|
|
|