|
|
What kind of exception? In general you can set a debuggers policy of each type of exception. In MSCV6 this in in the "Debug"->"Exceptions..." menu item (only accessible when you're actually debugging) and in WinDBG it's in the "Debug"->"Event Filters..." menu item. Set the debugger the break on the break on that exception before the exception handler is executed (first chance exception).
Steve
|
|
|
|
|
|
Errr, just call the function the standard way. What problem do you have exactly ?
|
|
|
|
|
What do you mean exactly ?
1) Do you want to create a thread and make it execute a function ?
If so
CreateThread(NULL, 0, ClientThread,(LPVOID)param, 0, NULL);
Here ClientThread() is the function which will be executed by the thread . Note : here the function is not "created" in the thread but just executed in the thread.
2)Do you mean to say you have a prototype of a function defined inside the thread 0 and want to call it from thread 1 outside ?
redindian
|
|
|
|
|
|
Hello,
I have a problem that I hope you can help me solve.
I have a server application that creates folders and files in Program Files. The folders and files created should be available to the Users group from NT based machines (2k, XP Pro and 2003). The application works great for English version of Windows but one user with XP in Spanish has reported that the application does not work as supposed. The problem is that the Users group in Spanish is named Usuarios.
If anyone knows a good article that I can review in order to be able to build a global (independent from the Windows language) please let me know.
Thank you,
Dan.
|
|
|
|
|
Hi,
I think one thing will be all time the same - I mean SID of Users group - S-1-5-32-545.
-----------
Mila
|
|
|
|
|
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!
|
|
|
|