|
Thank you. This might work. I will give it a try.
Again thank you for your time.
Best Regards,
Dan.
|
|
|
|
|
Isn't localisation wonderful?
Do you mean the local machine Users group, or the domain level Users group?
If you mean the local machine users group, then for WindowsXP/2003 you can use something like CreateWellKnownSid with WinBuiltinUsersSid as the sid. For 2K you'd have to manually create the SID yourself, although this isn't too hard as it is a fixed value "S-1-5-32-545", so something like
SID_IDENTIFIER_AUTHORITY auth = SECURITY_NT_AUTHORITY;
AllocateAndInitializeSid(
&auth,
2,
SECURITY_BUILTIN_DOMAIN_RID,
DOMAIN_ALIAS_RID_USERS,
0,
0,
0,
0,
0,
0,
TheSID);
would do the trick. You can use LookupAccountSid() if you want to know the localised name, of course
Steve S
Developer for hire
|
|
|
|
|
Thank you,
I was reffering the local machine and I had tried this approach and it works as intended. Thenk you for your time.
Best Regards,
Dan.
|
|
|
|
|
Hello All,
I am stuck up at a point where in a batch file copy command the destination path includes spaces and copy fails.
Please suggest me to generate short paths with '~' from long paths specially containing spaces.
Thanks and Regds.
Amar.
|
|
|
|
|
Just quote the pathname
eg:
copy "C:\dir one\text.txt" "C:\dir two\test.text"
|
|
|
|
|
Hi,
DWORD GetShortPathName(
LPCTSTR lpszLongPath,
LPTSTR lpszShortPath,
DWORD cchBuffer
);
-----------
Mila
|
|
|
|
|
Thanks for the replies,
To elobrate the problem,
I need to get the short dos path name the one with ~ (For Ex:Prog~1) from the long path names from the doc command prompt.
Is it possible to through DOS?
Please comment.
Thanks and Regds.
Amar.
|
|
|
|
|
Thankyou for the suggestion,
I have the following problem at dos command prompt:
--------------------------------------------------------------------------------
C:\>C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\BIN\
STSADM.EXE stsadm -o upgrade -forceupgrade -url http://amarjeet-yqt4x9:8080/
---------------------------------------------------------------------------------
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
C:\>
----------------------------------------------------------------------------------
The problem is,
DOS command prompt is not recoznising the spaces between the path names.
Please guide.
Thanks and Regds.
Amar.
|
|
|
|
|
Hi,
Your path should be enclosed in quotation marks:
"C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\BIN\STSADM.EXE" stsadm -o upgrade -forceupgrade -url http://amarjeet-yqt4x9:8080/
unles you prefer that notation :
C:\PROGRA~1\COMMON~1\MICROS~1\WEBSER~1\60\BIN\STSADM.EXE stsadm -o upgrade -forceupgrade -url http://amarjeet-yqt4x9:8080/
-----------
Mila
|
|
|
|
|
hi,
i hav used menus in my dialog box.ex: say menu header - SUBJECT
under subject i have the menuitems as -english,maths,chemistry
when i click the english menuitem i want to display a messagebox.
can ne body help me,
thanks in advance,
suresh.u
|
|
|
|
|
You can insert Add Event Handler for items on menu.
Right click on items and select Add Event Handler and click Add and Edit now you have a function in this function use of MessageBox();
|
|
|
|
|
in the right click of items there is no option called add event handler????
what to do???
suresh.u
|
|
|
|
|
In resource window click on menu folder and open menu
|
|
|
|
|
thanks it works!!!!!!!!!!!!
suresh.u
|
|
|
|
|
Hello
use the following in your menu handler function
MessageBox(HWND handle,LPCTSTR lpText,LPCTSTR lpCaption, UINT type);
or simple
CString str="your message"
AfxMessageBox(str);
redindian
|
|
|
|
|
"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
Support CRY- Child Relief and you
|
|
|
|
|
I would like to know how to stop function recv and run it again?
Please help!
|
|
|
|
|
Hello
You can not *stop* recv() once control passes to recv(). I assume you are talking about how to retrieve messages endlessly . Implement recv() in a while(true) loop in your main app. Else create a thread specially for recv()ing messages and implement this while() loop there - this will make your recieving thread non blocking .
For more info search for Nish's article "Simple TCP server" in CP
redindian
|
|
|
|
|
|
If you want a server code which manages multiple client connection developed in console app , I can send you
redindian
|
|
|
|
|
LaHaHa wrote: I would like to know how to stop function recv and run it again?
any specific reason for doing same!
|
|
|
|
|
hi
Im developing a application for color calibrator using eye-one but i dont have a sdk with me
does anyone of you have one... I already wrote to gretagmacbeth through there website but dont have any replies from them yet...
thanks in advance...
|
|
|
|
|
Hi all,
I would like to set transparency to IE pages using VC++. I searched for information regarding this. I could not find any. If anyone knows about it. can you please help me in this.
Thanks in advance.
Regards,
Ram
|
|
|
|
|
|
I have a dialog bar in which i have placed several bitmaps as static controls and using them as buttons to activate different Child Frames.
I want to change the bitmap as i click on the button so as to show which child is activated...
I am using the following code in the message handeler...
<code>
void CTabDialogBar::OnDLInstructions()
{
CMainFrame* pMainWnd = (CMainFrame*)AfxGetMainWnd();
pMainWnd->TToolTab(2);
HBITMAP m_hBitmap = LoadBitmap(NULL,MAKEINTRESOURCE(IDB_InstructionsD));
if (m_hBitmap == NULL)
{
MessageBox("Error loading bitmap");
return;
}
m_button_instruct.SetBitmap(m_hBitmap);
}
</code>
But its not working the bitmap is'nt changing and it gives an error at runtime. Please help me in the problem.......
Keyur Bhatnagar
|
|
|
|