|
John Simmons / outlaw programmer wrote: Try to find a place to download the WFC library (by Sam Blackburn).
http://www.samblackburn.com/wfc/index.html[^]
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04
"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05
Within you lies the power for good - Use it!
|
|
|
|
|
Use NetShareEnum to enumerate the network shares on your server. Level 2 will give you the local path for each shared folder.
It sounds like you really want to know the permissions granted to the 'Everyone' group for each shared folder. For this, you will need to examine the access control list (ACL) for the shared folder. Use GetFileSecurity or GetNamedSecurityInfo to retrieve the discretionary access control list (DACL) for the folder. If you look in the MSDN here[^] you can find information on security, ACL's, etc.
Software Zen: delete this;
|
|
|
|
|
|
Sir
i want to know how to increment a int value when i press and hold a button , if i release the button increment must
stop. please help me to solve this problem.
thank u
Satishvarma
|
|
|
|
|
Try GetAsyncKeyState function!!!
|
|
|
|
|
|
E.Satish wrote: i want to know how to increment a int value when i press and hold a button , if i release the button increment must
stop
I don't want to blow my own horn, but here is my solution to this from years ago:
Simple Auto-Repeat (Fire Control) Button Control: http://www.codeproject.com/buttonctrl/repeatbutton.asp[^]
I haven't had occasion to use this since VC6 but it shouldn't be difficult to adapt to your needs.
|
|
|
|
|
how to transfer control to child thread repetedly.
please give me sollution ASAP
Bankey Khandelwal
Mobile : 98504-32990
Office : 020 25521888
Solversa Technologies
15, Yeshwant Ghadge Nagar,
Range Hill Road,
Pune - 03,Maharashtra,India.
|
|
|
|
|
Hello,
How do you mean "transfer control to child thread"? Why do you want to do this? The OS does this for you repeatedly...
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
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
|
|
|
|