|
Of course it is. Everyone might need help one day.;) specially a beginner programmer like me.
// "Life is very short and is very fragile also." Yanni while (I'm_alive) { cout<<"I love programming."; }
|
|
|
|
|
Done! but no need to shout like that actually
By the way, is this a new rule? I never did this already.
// "Life is very short and is very fragile also." Yanni while (I'm_alive) { cout<<"I love programming."; }
|
|
|
|
|
does upper case alphabets means shout?
if it is like that, please tell me, i shall modify the content to lower case or delete it.
by the way,
it is not a new rule,
it is only a new standard (convention), just to show gratitude towards the guru who has solved it, and also to differentiate between solved and the not.
gud luck and thanks.
|
|
|
|
|
chandu004 wrote: does upper case alphabets means shout?
I think so. I read somewhere that in internet communities or chat rooms, uppercase = shouting! so a little bit impolite.
I didn't give that message a 1, but I think the reason for that uni-vote is exactly this.
chandu004 wrote: it is only a new standard...
Nice idea, and would be better to suggest it in the suggestion forum to add an icon for that type of message, for example. I also give a 5 to the true answers both to express my thanks and also the red text describes a true answer to other members.
// "Life is very short and is very fragile also." Yanni while (I'm_alive) { cout<<"I love programming."; }
|
|
|
|
|
thanks for information about the uppercase letters.
actually,
i was not aware of hte caps lock on.
and however,
i have posted it in suggestions forum 3 days ago and i got good reply.
i request you also to suggest those who get their problems solved.
thank u.
|
|
|
|
|
Hi Freinds,
I have third party dll and header file. Can I do static linking of this dll? Can I generate entire library file out of this third party dll?
|
|
|
|
|
No, you need to have the source files and recompiled them as a static library. There is no way to statically link to a dll (or even generate a static lib without the source files).
|
|
|
|
|
But logically it has to be possible, right?
- NS -
|
|
|
|
|
Hi,
It is said that using the registry key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion\Policies\System\DisableTaskMgr
we can disable Task Manager for all users of a computer.
Refere to :http://www.pctools.com/guides/registry/detail/163/.
As I test it, in both Win2k and WinXp, its not true. The registry key is only effective if used with HKEY_CURENT_USER, not with HKEY_LOCAL_MACHINE.
Can anybody help me with that, plz?
Plz, remember that I have to do this in a MFC C++ program, so I can't use Group Policy Editor of Windows.
|
|
|
|
|
If you will disable the task manager using registry key, any one who have the knowledge of Registry can enable it again.
I think try writing hook and disable the taskmgr.exe application itself.
|
|
|
|
|
Anurag Gandhi wrote: any one who have the knowledge of Registry can enable it again.
Permissions permitting.
Steve
|
|
|
|
|
I have already solved this problem using the 'Restrict Run' feature of windows(which also uses registry keys). Using this feature I inhibit running of all programs except the programs that I state. Hence, the user can't run regedit.exe program to edit the registry.
Plz, just help me with disabling task manager for ALL users of a PC.
Or tell me why HKEY_LOCAL_MACHINE does not work, despite being mentioned in many websites.
|
|
|
|
|
I was talking about the permissions on the registry keys in question. Just like files, registry keys can have permissions.
Steve
|
|
|
|
|
hi Friends,
My application has dependency on ws2_32.dll. Now this(ws2_32.dll) library has dependency on msvcrt.dll. Do I need to ship msvcrt.dll with my application installer or it comes by default with OS installation?
|
|
|
|
|
vikrams wrote: Do I need to ship msvcrt.dll with my application installer or it comes by default with OS installation?
It comes with os installation.
|
|
|
|
|
|
Hello all, longtime fan of the Code Project - first time posting.
I have some controls on a dialog box that I want to make "Scrollable" in the horizontal direction. There are multiple controls on the dialog box and then entire group of them are around 1000 pixels in width. When this dialog box is less than 1000 the user has the option to scroll horizontally. When scrolling left, the controls to the far left of the dialog will "disappear" to the left. I do this by passing (calculated) negative values to MoveWindow() for the first two parameters (the x,y position parameters).
Now, this all seems to work fine, I just want to make sure that I'm not going to cause some problem by passing these negative parameters to MoveWindow(). I've read all the documentation on MoveWindow() and scoured the web and nowhere have I seen anything that says: "Do not pass negative values to MoveWindow()"...
Anyone see any problem with this? Or anyone think that it's OK what I'm doing?
Thanks in advance - I'd greatly appreciate any feedback from the MFC/VC++ gurus out there.
Zeke
-- modified at 0:18 Tuesday 4th September, 2007
|
|
|
|
|
Oh MAN! NEVER draw controls off the left side of the visible area of the window!!
Then they go into that great mysterious void and re-emerge in other people's windows....not good.
On a more serious note:
Negative coordinates are valid. It's just by design that the origin point (0,0) of the client
area of a window is at the upper-left of the window.
Anything outside the visible area of the window will be clipped.
No problem.
Cheers,
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark,
Thanks for the quick response. I know, I take it you're joking on your first comment, but in all my times of programming in MFC/VC++ I am always, always, always very careful to use functions only how they were designed because I have found that when I don't strange things can in fact happen - even the ones you mention. My favorite is when something works on 9 out of 10 machines (and you don't find it until post-implementation). That's what I was worried about here.
Do you know if any MS documentation exists stating that areas outside the window are clipped? I would not find to too far-fetched if MoveWindow() is poorly implemented and passing in negative x,y values resulted in some memory somewhere being overwritten...
Zeke
|
|
|
|
|
I can't find a specific documented sentence that states this.
This has been the behavior of windows since the start of Windows.
Windows has always kept mis-behaving apps from drawing outside their windows.
You can move all your controls yourself for scrolling if you want to. You're also free to hide
child windows that are outside the visible client area of the window if you feel better about it.
Of course, for child windows partially outside the client area of the parent, you'd need to handle
all clipping. It could be a lot of work for something Windows will do with one function call...
The ScrollWindowEx() API will move the child windows for you if you use the
SW_SCROLLCHILDREN flag. If you try this, you'll see that Windows happily moves the
child windows to negative coordinates.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Cool, much appreciated feedback Mark. Originally my plan was to just hide the controls where any part of them were outside the client area but I think it looks cooler if the controls only disappear beyond the viewable area.
Also, I wasn't aware of ScrollWindEx(). Looks like it will be useful for what I'm doing.
Thanks again, you the man!
Zeke
|
|
|
|
|
Dear Zeke,
your pose was very interesting and the solution given by MARK is highly appreciable.
even i had this doubt long ago,
but some body misleaded that, it is not possible,
so i took it easy.
i request you to prefix your subject name with [SOLVED] such that, it will be very good to see it on the forums.
i request all the other members to follow this idea.
|
|
|
|
|
Hello,
I'm working on an application that uses the Scheduled Task APIs... I am unable to get the "detailed status" that appears in the GUI from anything in the API.
For example, let's say I've got a scheduled task that has a bad user/password.... in the Win2003 GUI, the "Status" column has the following:
"The scheduled task did not run because an incorrect password or user name was entered"
However, nothing in the API can get me this error code (0x8007052E)... I've tried:
ITask.GetStatus = returns 0x41300 (Which is "Task is scheduled")
ITask.GetWorkItemData = return a 0 for the length of the data (so there is no application specific data)
ITask.GetExitCode = return 0 because the last time it did run, it ran fine
What am I missing?
Visuall C++ 6.0 using Microsoft Platform SDK for Windows Server 2003 R2
on Windows XP Prof SP2
|
|
|
|
|
|
I used Win32 and MFC.
I try launch exe file with commands line. How to this?
example: "c:\dir1\form.exe cmd1"
thanks
|
|
|
|