Lawrence 007's Q&A profile
.NET Development Password Protect exe
Hi, We have a requirmement which asks us to protect a list of program son users' machine. After they log onto windows, we need to provide an extra layer of protection by asking username/password when uers click on one of the protected programs on our list (might it be word, outlook or whatever) I'm wondering how do I program for something like that How to you "hijack" a process before it gets executed btw, the username/password will be authenticated against a sql server database. Any suggestion is greatly appreicated it. Liming The approach that would probably work here is to write a windows service application that does almost exactly what you suggest. That is it catches (or highjacks) th ...Show All
SQL Server Concurrent queries in SQL Server 2005 Express
If applicable, what's the limit on concurrent queries supported by SQL Server 2005 Express Also, if there's a limit, does next connection after the max errors out or merely queues up Thanks, Phillip hi Pjhillip, PhillipM wrote: If applicable, what's the limit on concurrent queries supported by SQL Server 2005 Express Also, if there's a limit, does next connection after the max errors out or merely queues up Thanks, Phillip as in MSDE 2000 (and full blown SQL Server's editions), there's a "tecnical" limit of 32767 connections... and this can not be workarounded.. MSDE has another "limit", a built in Governer, but it does not prevent futher conne ...Show All
Visual Studio What is KB918525
Hello World, This is regarding the Beta SP1 for Vs2005, Can you please suggest, what are the fixes available in this patch. I am not able to find the Knowledge base related to this patch, KB918525. Thanks and regards, Karthikeyan. KB918525 is the "Microsoft Visual Studio 2005 Team Explorer - ENU Service Pack 1", VS80sp1-KB918525-X86-Beta-ENU.exe "This service pack is for Microsoft Visual Studio 2005 Team Explorer - ENU. If you later install a more recent service pack, this service pack will be uninstalled automatically. For more information, visit http://support.microsoft.com/kb/918525 " ...Show All
Smart Device Development Application login
Hi, i am building a mobile application, in which the users needs first to login, and then can perform several operations against dedicated web services. we hold an offline table in Sql Mobile with the users that can login into the application. now, considering that the user has successfully logged in (checked againsted the offline table) - how do i check in the web service that the requester of the method is a legitimate user. should i send out the user+password on each call to the webservice what is the best practice to work with web services , where i want only authenticated users to use I read a while ago, that i can login once (using a login method in the webservice), get a token and use it is the next calls. Th ...Show All
SQL Server call store procedure from another store procedure
I know I can call store procedure from store procedure but i want to take the value that the store procedure returned and to use it: I want to create a table and to insert the result of the store procedure to it. This is the code: Pay attention to the underlined sentence! ALTER PROCEDURE [dbo] . [test] AS BEGIN SET NOCOUNT ON ; DROP TABLE tbl1 CREATE TABLE tbl1 ( first_name int , last_name nvarchar ( 10 ) ) INSERT INTO tbl1 ( first_name , last_name ) VALUES ( exec total_cash '8/12/2006 12:00:00 AM' '8/12/2006 12:00:00 AM' 'gilad' , 'cohen' ) END PLEASE HELP!!!! and God will repay you in kind! Thanks! Hi Moria, Try this: SELECT @re1 ...Show All
Visual Studio Remote debugging - Security Exceptions
I work with VS2005 / Framework 2.0. I installed the Remote debugger on a client machine (as application, not as service). Then I start the remote debug application. I configure the Debug Section of the dev-machine: - Start external program: \\remoteHostName\c$\Programme\_TEST\ConsoleApplication2.exe - Use remote machine: <The configured "ServerName"> Sample Code: using System; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { string hostName = Environment.UserDomainName; Console.WriteLine(hostName); } } } When I get to the line "string hostName = Environment.UserDomainName;" I get an SecurityException: System.Security.SecurityException was unhandled Message=& ...Show All
Microsoft ISV Community Center Forums Hide/unhide
I have a button that when the user presses the button the program will search an ordered column for values equal to 0 and hide the rows that has values equal to zero. If the rows already are hidden then they shall be revealed by pressing the button. My code is: Sub showHideButton_Klicka() Dim relativCell As Range Dim i As Integer, j As Integer, k As Integer Dim blnFirstFound As Boolean, blnLastFound As Boolean, blnIsHidden As Boolean Set relativCell = Worksheets("Berakning").Cells.Find("Rel.", LookIn:=xlValues) 'hittar forsta och sista cell med varde 0 Do Until IsEmpty(relativCell.Offset(i, 0)) = True Or blnLastFound = True If blnFirstFound = False Then If relativCell.Offset(i, 0) = 0 Then blnFirstFound = True k = i ...Show All
Visual Basic ProgressBar in VB.net
Okay, I have a progress bar that I want to use to track the reading of a text file and the creation of a CrystalReport. The file size will vary from .txt to .txt. How would I set this up I have read many things online about the progress bar but everyone is setting their ProgressBar.Maxiumum to a static number, I need mine to be dynamic based on the file size. After the file has been completely read and shows 100% on the ProgressBar, I want it to reset itself and show the progress of the CrystalReport being generated. Please anyone HELP me!!!! Im lost! Okay so.... I have the following so far: Private Sub GenerateScheduleBTN_Click( ByVal sender As System.Object, ByVal e As System.EventAr ...Show All
SQL Server Is it ok to post a SSIS contract vacancy on this forum?
Hi, I wonder if anyone could tell me whether it is acceptable to post a SSIS contract vacancy on this forum If not, where would be the best forum/site to find UK-based SSIS developer contractors Many thanks, Gavin. I do not beleieve it is acceptable or the right place. If you are looking for places to post resumes perhaps you want to look here . ...Show All
Visual C++ Dialing through Modem VC++.net
Hi, I need the find a method to dial a phone number from my visual c++.net program. Hope some one can help me. dki Thanks Peter But i need some more things. actually i am dialing to a dialup server. so need to transmit the username and password too. hope you can give me a help dki ...Show All
SQL Server It seems there is no solution for this question??????
Hi guys, I posted this question a couple of weeks ago, however, I got no response at all, . It seems that no body tried this before. Anyhow if anybody did the same thing, here is my issue; Assume I have a pie chart whose Value: is Internet Sales Amount and Category group: is Product Subcategroy . Suppose I have 5 segments(slices) with the value 200,150,80,50,and 40. Now, here is the question; I want to aggregate those values that are less than 100 (in this case the last three values: 80+50+40 = 170) and put the sum(170) in one segment, so that in the new pie chart we will have only 3 segments with the value 200,250, and 170. Any idea is appreciated. There are several other ways of doi ...Show All
Windows Live Developer Forums 3d Control compatibility
I have some compatibility issues. i have my culture settings set to german(coz i am german), if i create a pushpin via new VELatLong(52.5,9.5) its no problem to show the pin in 2D mode, coz the 2d api always wants 52.5 no matter what locale i have set(in german culture settings 52,5 is correct), but the 3d control takes care of, so if i set my locale to german, it recognizes 52.5 as 52 million and 500000, and hangs. I thought everything was tested to support multiple locals, but bummer, its not yet. Not sure how actively Microsoft VE developers monitors this forum. You will probably get better results with making developers aware of bugs by using the actual dev site for feedback. http://dev.live.com/virtualearth/ ...Show All
Software Development for Windows Vista Accessing Windows Services Status
I have noticed a few things have changed in my ability to access information regarding Windows Services. If anyone has any good tips I would appreciate them. Apparently the security rights just to interrogate or query service information has been increased. When I used to call OpenSCManager and OpenService I used to be able to use a GENERIC_READ and SERVICE_ALL_ACCESS Now, I can only use STANDARD_RIGHTS_READ which is ok but... When I try to call the following I get an Access Denied. bResult = ControlService(scService, SERVICE_CONTROL_INTERROGATE, &lpServiceStatus); I've also tried QueryServiceStatusExe(...) but its denied access. What does a program have to do before it can access this information Anyone have ...Show All
Commerce Server How to search the UserObject by a custom property
Hello, I have extended the UserObject with a custom property called 'PartnerId' (type of string). With Commerce Server Manager I enabled the Physical attribute 'indexed' in the DataSource section. In the Profile Definition Section I checked the 'searchable' option. I have been able to assign value to this field programmatically. This means the property is configured properly. With the customer and order manager I am also able to search the user by this PartnerId. When I try to get the user profile by partner id I keep getting errors. This is the syntax that I use to get the profile: _UserProfile = csContext.ProfileSystem.GetProfile("GeneralInfo.PartnerId","ABCD1234","UserObject") ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Anitaliasing when rendering to sprite
I'm hoping someone can help me get antialising working in my game. I figured out that when rendering directly to the screen I can set antialiasing using these fields at the top of my render function. myDevice.RenderState.MultiSampleAntiAlias = true ; myDevice.PresentationParameters.MultiSampleType = MultiSample.SixteenSamples; myDevice.PresentationParameters.MultiSampleQuality = 8; I've been building a library though, where every asset has it's own render function, and the screen is rendered to a RenderTarget2D and displayed on a sprite, and I cannot for the life of me antialias the 3D objects in my screen. I tried setting these fields in the game render function, on the render functions of all the individual objects, on th ...Show All
