Naheem's Q&A profile
Visual Studio Express Editions Users Name Space help
I always get good advice here so thanks in advance. I am writing a password keeper in vb2005 express as a learning experience. I have it saving encrypted passwords on a thumb drive and want to expand it so anyone who signs on to XP machine will have access to their passwords only. Can anyone give me an idea of the name space I need to explore to get the XP users info and setup accounts on the thumb drive Dave not exactly sure what you mean and how this will work. you shouldnt really be having a password keeper as it can easily be stolen or hacked into or whatever but understand its more for your experience/learning. ...you can obtain the current logged in user by doing... System.Security.Principal.W ...Show All
SQL Server VB Express SQL Expert needed for Merge Replication support.
I have done a couple of little projects in VB express and was pleased with the results. Now I have something bigger in mind and need to know if VB express version of SQL will support merge replication. If not will the full version support it Thanks Dave ...Show All
SQL Server Parameter = "Select All"
Hi, I am trying to pass an url to my report. In that url I want to pass my multivalue parameter with "Select All" as the parameter value. The probelm is, I don't know what value should I pass in the url which will be equal to selecting "select all" in the reporting services. I hope I am making my self clear, I case you have any doubts please ask me. Thanks, -Rohit ...Show All
Windows Forms GenerateBootstrapper - install a Microsoft hotfix
Hi; How can I set up GenerateBootstrapper to install 3 specific Microsoft hotfixes - based on if they have Word installed and what version (I assume the hotfix testers handle that in determining if they need to run). The hotfixes are: http://support.microsoft.com/default.aspx/kb/907417 http://support.microsoft.com/kb/908002 From those install: a) lockbackRegKey.msi b) office2003-kb907417sfxcab-ENU.exe - (Office 2003 only) c) extensibilityMSM.msi How can I get these as part of the bootstrapper thanks - dave AFAIK the bootstrapper can search for ProductCode guids, so you need to do a search for whether these productsd are installed: LockbackRegkey.msi {64F3B15C-24C7-4B2B-9B72-65CCBBD7F06B} Extensibility ...Show All
.NET Development RegularExpressions: Backreferences inside Lookbehind ???
Backreferences only work AFTER the lookbehind For example, ( <=(.)\1) is not taking exception but not matching anything either but ( =(.))\1 is OK. Am using v2.0. ...Show All
.NET Development Access a Batch file on different server from a Web Service
Hi, I'm trying to access or execute a .bat ( batch file) which is sitting on a different server. I have the correct path of the .bat file in the Web.Config and when i'm trying to execute it is throwing an error " Access is denied". I have tried giving Full control permissions to my computer, my username etc it still throws up the error. Is there any easy way to execute a .bat file from a web service. The following is the code i'm using to start the batch file. proc.StartInfo.FileName = ConfigurationSettings.AppSettings("BatchFile").ToString() proc.StartInfo.UseShellExecute = False proc.StartInfo.WindowStyle = ProcessWindowStyle.Normal proc.Start() proc.WaitForExit(6000) proc.Dispose() ...Show All
SQL Server Login Page just refreshes with ASP.NET 2.0 Login Control
I am try to login using the ASP.NET 2.0 Standard Login Control. When I enter the correct userId/Password and hit the Login button, the page just refreshes, no error is displayed. But if I enter wrong userid/password..it give me an error. Also I check the Membership.ValidateUser() returns true , that means the user is validated, but still I am able to redirect to ReturnURL. Is there something wrong with the Authentication, or Creating a cookie. Can somebody shed some light on this, I have the following machine configuration Windows XP Pro Service Pack2 IIS 5.1 SQL Server 2000 Visual Studio 2005 DISABLE ANONMYOUS ACCESS IN IIS ENABLE WINDOWS AUTHENTICATION I am getting the following output : Membership.ValidateUser(Logi ...Show All
Visual C++ MultiByteToWideChar of VC8 went wrong, but VC7 worked.
Dear all, For example: MultiByteToWideChar(CP_UTF8, 0, str, (int)strlen(str)+1, wstr, 1024); Assume "str" is a "bo-po-mo-fo" Chinese phonetic alphabet such as "ㄉ", in VC8, this function always failed; however, it worked fine in VC7. Does any one know how to fix it Thank you very much! Sincerely, Mike The provided code page was CP_UTF8. According to MSDN document (http://msdn.microsoft.com/library/default.asp url=/library/en-us/intl/unicode_17si.asp): Note: For UTF-8, dwFlags must be set to either 0 or MB_ERR_INVALID_CHARS. Otherwise, the function fails with ERROR_INVALID_FLAGS. When I send UTF-8 encoded Chinese character into this function in VC7, it w ...Show All
SQL Server sql beginner - saving views to a file
is there anyway to automatically save a view to a file at a scheduled time Thank you for any help or pointing me in the right direction. Yes - just change the results in QA for query results to "Send to File" instead of "Grid" or "Text" Then when you run the query you'll be asked for a file name. I thought you wanted to automate the process. By the way, if this answers you're question, make sure you mark it as "answered" so that others can quickly locate the topic. Thanks! Buck ...Show All
Visual C# Convert array to nullable array
Hi, The following code does'nt compil : int[] tab = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; int [] nulltab = (int [])tab; Cannot convert from 'int[]' to 'int [] How I can cast my array Thanx int and int are assignment compatible but not blittable. Workarounds are to make "tab" of type int [] or to create nulltab and copy the tab elements. Moved to C# Language forum. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problems with DirectX 9 and Forms(VS2003 + C++).
Hi,I’ve some asks for u: How do I to work with Directx in VS2003 and C++ The examples what I looking dont use Forms, the windows are manually created, I’ve the window and inside it, I’ve a groupbox, I need show this animation inside the groupbox, follow the animation’s code, now, How do I to draw this example inside groupbox (working with Forms) and using C++, watch librarys have I include to work right Thanks and so sorry the poor english, because I’m brazilian and i dont speak english frequently. D3DUtility.h -------------------------------------------------------------------------------------------------------------------------------- #ifndef __d3dUtilityH__ #define __d3dUtilityH__ #include <d3dx9.h> #i ...Show All
.NET Development about all workgroup withinn a network
How can I retrive all workgroup name of my network I have tried the Domain property of Win32_NTDomain class. But it gives me only the domain name of my computer only. I want to retrive the other domains as well. How can it possible Listen: Try "net view command in command prompt" if you get the desired results then I tell you how to do it programatically to get the same results been dumped to a text file and view when needed. Cheers ;-) ...Show All
Visual C# Cannot run startup form
I'm sure this is trivial, but .... My application starts with standard code in the main form: /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); Application.Run(new frmMain()); } When the debuger hits the Run command I get a FileNotFoundException. It can't find the form that the code is running in. Thanks. Normally the main form is in the same assembly as the main entry point. If it is then it isn't the form itself. The exception will tell you the name of the file that it can't find. Perhaps your form is referencing a file or component that can't be found. If ...Show All
Game Technologies: DirectX, XNA, XACT, etc. ODE.NET2
Hello, - I've updated ODE.NET2 to work with XNA math. - Bumped it up to the 0.7 version of ODE (ode.org). However, not all functionality has been "wrapped" yet. - No samples yet. I only tested a few primitive collisions but it seems fine so far. Can't test mesh's yet. - I'm also working on ODE Components for XNA. :P For those wondering, ODE is a physics engine. http://www.pepperboy.net/ vidalsasoon wrote: As for the pure managed ODE... I think it would be easier to create a new physics engine from scratch using newer tools. I don't think you have to look at the ODE source code for long to second that ... Trouble is that this is the hardest subsystem to code by a long shot, and reverse ...Show All
SQL Server SSIS Logging
Hi, I have migrated DTS package into SSIS. One of the ActiveX Script contains the following code. I have a question regarding changing this code. What is the equilaent object of reading LogFileName in SSIS I setup the Logging in SSIS, but didn't fidn any option using which i can refer to logfile as it is done in the following DTS code. It'll be a great help if somebody can assist me in this. Thanks in advance. Neetu Code: Function Main() Const ForReading = 1, ForWriting = 2, ForAppending = 8 dim fso dim pkg dim filename dim srcfile, logfile dim inchar set fso = CreateObject("Scripting.FileSystemObject") set pkg = DTSGlobalVariables.parent set logfile = fso.OpenTextFile(DTSGl ...Show All
