redneon's Q&A profile
Windows Networking Development How to lock out a user after a set number of login attempts?
reply plz.thx in advance. The PAM (Pluggable Authentication Module) module pam_tally keeps track of unsuccessful login attempts then disables user accounts when a preset limit is reached. This is often referred to as account lockout. To lock out a user after 4 attempts, two entries need to be added in the /etc/pam.d/system-auth file: auth required /lib/security/$ISA/pam_tally.so onerr=fail no_magic_root account required /lib/security/$ISA/pam_tally.so deny=3 no_magic_root reset The options used above are described below: onerr=fail If something strange happens, such as unable to open the file, this determines how the module should react. no_magic_root This is used to indicate that if the module ...Show All
Visual C++ Function name conflict with ENUM name
Suppose I have a ENUM T_MuxPos_type, where T_MuxPos_type{fixed;flexible;}. While I am coding, I have T_MuxPos_type Mux_pos. When Mux_pos = fixed, I have no problem with gcc but a compilation error with mvs2005: c:\mvs2005\bs_module\source\config.cpp(1925) : error C2872: 'fixed' : ambiguous symbol could be 'c:\panliu_bs\mvs2005\bs_module\source\declareenum.hpp(43) : T_MuxPos_type_E fixed' or 'c:\program files\microsoft visual studio 8\vc\include\ios(183) : std::ios_base &std::fixed(std::ios_base &)' If I solved this problem by Mux_pos = T_MuxPos_type::fixed, gcc compiler will complain about it. So what is the classic method to get rid of this ambigurity I seems to me I should use namespace to solve it, but I don't n ...Show All
Visual C++ Associating an HotKey
I'm working on a program to take screen shots. What I want to do is to make my program respond when the key "Print Screen" is pressed, even if my program doesn't have the focus. I searched the Internet for hours but didn't managed this, probably because I'm a newbie in C++. Can anybody help me I'll greatly appreciate it! Thanks And another thing: how can I make the program wait indefinitely without displaying that MessageBox This would be really all :) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. OpenGL's modelView to DirectX World matrix
Hello. I'm writing a rendering library for this application that originally uses OpenGL. I am to write an alternative DirectX renderer. So my problem is, what do I have to do to the OpenGL modelView matrix to be able to use it as the World matrix in DirectX This is the projection matrix setup used in OpenGL: gluPerspective(45.0f, (GLfloat)width/(GLfloat)height, 0.1f, 100.0f); This is my DirectX Projection matrix setup: D3DXMatrixPerspectiveFovLH(&proj, D3DX_PI * 0.25f, width / height, 0.1f, 100.0f); I set my View matrix to identity. I'm using the same vertex coordinates as in OpenGL, and need to (obviously) get them to transform to the same coordinates on screen. So I need to do *something* to the modelView matrix and pop it i ...Show All
Visual Studio Express Editions Unload project/Edit project/Reload project
The Unload project / Edit <projectfilename> / Reload project context menu items seems to be missing from the Express Edition. Are they really missing and I've got to find another way to edit the project file or have I missed some setting somewhere You haven’t missed them... they aren’t included in the Express editions with their scaled back interface. In order to have them you'll need to use one of the higher versions of Visual Studio. ...Show All
.NET Development Setup a VPN connection with .NET
Hi, I want to create a gui that creates (managed or unmanaged) a new VPN connection in the networks settings area with a provided ip, username and password. Can somebody give me some basic code to start with Thanks a lot Hi Mike, I am sorry, but this post only describe how to connect to an existing connection, but not how to create a new one :(. I want to create a complete new VPN connection by code ...Show All
.NET Development trouble installing the .net framework 2.0
when I try to install the .net framework 2.0 I get a message saying"Error creating process <C:\DOCUME~1\"username"\LOCALS~1\Temp\IXP000.TMP\Install.exe> Reason: C:\WINDOWS\system32\advpack.dll" I've tried all the ways mentioned on the forum so far and I keep getting the same error. I would assume for development needs. I'm taking a C# class in college, and we are to use .net at home for projects. I didn't know there was a difference between visual studio and the .net framework 2.0. I know I need to program windows applications (GUI), so I guess I do need visual studio.net, right ...Show All
Visual Studio Guidance automation toolkit(February 2007 CTP) is unable to be installed
I downloaded GAX(June 2006 CTP) and GAT(February 2007 CTP). GAX was successful to be installed, but GAT is failed. I searched the same problem on the net and someone said it's the old GAX version has been installed, however I have not installed any version before. I logined as a administrator to install them. Visual Studio.net 2005 version is: RTM 8.0.50727.42 . Window XP sp2. The prompt imfromation as follows: "Unable to get installer types in the D:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PublicAssemblies\MetaGuidancePackageInstaller.dll assembly. --> Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information". The installation log as ...Show All
SQL Server more tables do search,please help me,sql server stored procedure problem
i have more tables exmaple: table1(id,title,content,date) table2(did,type,title,text1,text2,requestdate) table3(subid,value1,value2,value3,value4) .......................15 tables left,some exmaple now i want use stored procedure do search for asp.net asp.net send search keyword to sql server,sql server get keywords execute search and return results to web application(asp.net) i don't konw how what write t-sql,please friends help me. because table colums is different,so need write t-sql put the temp DATA TO Temp DataTable,last return Temp DataTable to asp.net,asp.net execute split pager display data,eventable colums is different,so on asp.net links is different,need t-sql programming,hope friends can help me comp ...Show All
Smart Device Development Missing .NET Framework installation?
Hi All, If already completed installing .NET CF 2.0 onto the smart device but when running the application an error message occurs saying need to install .NET Framework v2.0 50727. Please can anyone tell me how to solve this problem if there any way to know if the .NET CF is working or not and what version is it on the smart device. Thanks Attempt to install NETCF V2 RTM on AKU 3.0 device with NETCF V2 RTM in ROM would fail with error message stating this version of NETCF is already installed. Installation is not needed in that case. ...Show All
Windows Forms ToolTip IsBalloon
I am having a problem with the ToolTip in .NET 2.0. When I set the IsBalloon to true, on some computers, the tooltip will not display at all. I thought maybe that is just displaying off screen, but I have also tried to hard code the coordinates. On my computer its fine, on my testers computer it is fine, but on the users computer it doesn't display. If I set the IsBalloon to false, it will show up, but it's the ugly version, that is all square and doesn't have the pointer to the control that I want it. FYI - I have created a Setup project and that is what was installed on the users PC's. So they should have everything that the program uses. Anyone have any ideas Murph Dear maddman I've the ...Show All
Visual Studio 2008 (Pre-release) ListView, I would like somthing like SelectionMode.None ?
I know it’s a little odd. But is there a way to make the ListView “readonly”. I was thinking something in the line of: ListView1.SelectionMode = SelectionMode.None; I know I could just ignore the SelectionChanged event. But the problem is that the styling shows that an item is selected. Best regards, Thomas S. Andersen BTW, as a workaround I'm using this at the moment: ListView1.SelectionChanged += delegate ( object sender, SelectionChangedEventArgs e) { (sender as List View ).SelectedItem = null ; }; Drew: I can’t change the style, because our application will support (runtime loaded) customer styling. But thanks for the xaml paste, it ...Show All
Visual Studio 2008 (Pre-release) Adorners
How to change the rendering order of adorners Say i have a triangle which will always show up and when I'm with the over the triangle I add another adorner on the same layer and this adorner comes on top if the triangle. How to put it beneath. ...Show All
Visual C++ How to associate user data to a workbook by using excel automation?
Hi, I need to store some user data into the excel workbook and those data should be invisible to the user. What is the best way or easy way to do this I am using vc++. Thanks. JJ Hello Re: How to associate user data to a workbook by using excel automation Such questions are outside the scope of this forum - for the scope of the VC General forum please look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=19445&SiteID=1 For such issues please use the newsgroups at http://msdn.microsoft.com/newsgroups . OTP Thanks Damien ...Show All
Visual Studio 2008 (Pre-release) is it possible to specify relative URI in xaml
hi guys. is it possible to specify relative URI in xaml. that nearly answer my question. but can you specify the syntax (veery simple example) for me. i find uri stuff quite confusing. im a beginner anyway. thank you very much Schmidt. ...Show All
