Schnoogs's Q&A profile
Windows Forms Window Services Authentication question
I'm trying to create a window services using C#. I would like my Window Service to run under the logged-in user instead of Local Systems. In my code I have this.serviceProcessInstaller.Account = System.ServiceProcess.ServiceAccount.User; this.serviceProcessInstaller.Username = System.Security.Principal.WindowsIdentity.GetCurrent().Name; I'm trying to find ways to disable the login prompt when I install the window service. With my current code, when I try to install, I get a prompt to type in the password. Is there a way to associate the logged in user's username and password to the window service authentication The Single Sign-On(SSO) mechanism can help you achieve what you want. For ...Show All
Visual Studio Team System Scripting out user-defined types
When tables are scripted out in VS the underlying types are produced rather than the user-defined types. Is there any way to change this behavior We would rather not lose that information if possible. Andrew, Your reasoning for why it is not scripted out as the UDDT in VS 2005 is reasonable. However, the SQL Server Management Studio, when scripting out the create, uses the UDDT. It appears that the two development groups were not consistent in their reasoning. Ken ...Show All
SQL Server Need some help with DTexec execution
Hi! When i excute in the sql server this works fine xp_cmdshell 'dtexec /f "D:\SSISProject\Integration Services Project1\ArchiveTicket.dtsx "' but when i excute throught the C# code jobCommand = new SqlCommand(@"xp_cmdshell 'dtexec /f "D:\SSISProject\Integration Services Project1\ArchiveTicket.dtsx"'", cconn); It shows up red lines near the " and ' qoutes. I know that quotation marks are wrong but don't know how to solve it. some help please Thanks jas one more guidance needed with regard to the Quotation marks path = @"D:\SSISProject\Integration Services Project1\ArchiveTicket.dtsx"; jobCommand = new SqlCommand(@& ...Show All
Visual Basic Managed to unmanaged in/out parameters and return types
I am trying to call a function from an unmanaged dll written in C from VB.NET 2005 that has the following signature: int32 get_msg(char * , int32 status) The char * is a string containing the contents of a message pulled from a queue. I have tried the following direct calls from VB and am not able to see the returned string. Declare Auto Function get_msg Lib "msg.dll" ( ByVal MsgArea As StringBuilder , ByRef status As Integer , ) As Integer the return value is a required status used for checking successfull completion in VB code. I also tried the following approach of wrapping the function, but without success static System::String^ Get( void ); I am partially able to wrap th ...Show All
Visual C++ unresolved external symbol __invalid_parameter_noinfo
Hi friends, We are building a sample project in debug mode with release build of library say test.lib we got error like "error LNK2001: unresolved external symbol __invalid_parameter_noinfo". Can anybody give solution for this problem Regards, Mukilan i tried with preprocessor option _SECURE_SCL=0, still i am gettting the same error. I buit both test.lib and sample application with _SECURE_SCL=0. i didnt solve my problem. ...Show All
Smart Device Development What Are My Development Environment Options For Developing C#/.NET CF WM5.0 Apps?
Hi. What are my development environment options for developing Windows Mobile 5.0 applications in C# and .NET Compact Framework2.0 Am I limited to VS2005 Are there thirdparty development tools And if not, can I purchase only VC# instead of entire VS suite of development languages Thank you. I currently have VS C# Express Edition. As noted by Microsoft, there is not support for WM5.0 application development in any of the express editions. The problem is I am development applications for at-home personal productivity use. It is very doubful I would ever use the product beyond hobbie work. Please advise. Thank you. You are stuck with Visual Studio 2005. Standard edition will work. If you have currently or otherwise can acquire a previ ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Global lighting
This might seem silly but here goes.. is there a way to set the default lighting for all objects This is what im doing now..(taken after spacewars) Matrix m_view = Matrix.CreateLookAt(cameraPosition, Vector3.Zero, Vector3.Up); Matrix m_proj = Matrix.CreatePerspectiveFieldOfView(MathHelper.ToRadians(45.0f), aspectRatio, 1.0f, 20000.0f); for (int i = 1; i < MAX_MODELS; i++) { foreach (ModelMesh mesh in Enemy .C_Model_m.Meshes) { //This is where the mesh orientation is set, as well as our camera and projection foreach (BasicEffect effect in mesh.Effects) { effect.EnableDefaultLighting(); //effect.LightingEnabled = false; ...Show All
Smart Device Development LDAP Authenication on WM 5.0
I am looking for a solution for an application to authenicate a user against LDAP from a WM 5.0 PDA. After much research I have only found one solution using PEINVOKE and WLDAP32.DLL. My problem is that I am not a C++ programmer, my experience is with VB. Converting the LDAP structure to a VB compatiable structure and making the calls has me scratching my head. Can anybody help with my problem Hi Paul To question 1: Yes, if the OS design on your device supports LDAP wldap32.dll sould be located in the \Windows directory. To get this on the device you have to add the LDAP support to the OS Design - > yes this means rebuilding the platform. To question 2: As far ad I can see you ha ...Show All
SQL Server Flat File to Relational Schema
Hello- I am a complete newbie with SSIS. I started working with Flat Files today and have made some progress. I have a task that requires me to pull out data from a | delimeted list with 160+ columns in a row. I am working with Movie and Entertainment data. So each movie has a number of actors associated with it. For example: MOVIEID|Zoolander|...|...|...|...|..................|Owen Wilson|Ben Stiller|Will Ferrel|...|...|...............| I would like to take all the actors out of the middle of this long line of columns and place them in an Actors table with the movieID. However, when I look at Flat File Source, all I see is my X number of columns in the one row for all the actors (actor1-20). Is there a way to make a new flat file that ref ...Show All
Visual Studio Express Editions Database Connections
How we can connect an Ms Access Database with a visual basic express application Which are best techniques for making database connection & which are faster connection types I use this version on my applications: Using DatabaseConnection As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\db.mdb") DatabaseConnection.Open() 'do work here End Using ...Show All
Visual Studio Tools for Office Can I get the text Range in smart tag Recognize2 method?
I am writing a smart tag recognizer for Word 2007. In the Recognize2 method, I want to get the location of the text so I can recognize different tokens in different parts of the document. However, I can't find any way to get a Range object in the Recognize2 method. Is this possible For example, I only want to recognize certain tokens when they are in a table. If I could get a Range object for the Text, I could use Range.Information[wdWithInTable] to test if the text is in a table. What about deleting the private smart tag and not replacing it with anything That's what I would do if the smart tag doesn't match my criteria to create a public smart tag. Would that cause the Recognizer to re-fire and crea ...Show All
Visual Studio Team System Invalid load test run object
When i right click Run Settings and in the properties make storage='Database' and then run the load test i get this error. "Error occured running test.(Computer name ) oculd not access result repository.Invalid object name 'Load Test Run'.Kindly tell me how to resolve this error. Also how do i generate a proper report out from the results of load test. Please see this help topic for how to resolve this error. http://msdn2.microsoft.com/en-us/library/ms404661.aspx#InvalidName For reports, if you would like something more than what is available in VS, check out this blog post. http://blogs.msdn.com/slumley/archive/2006/02/16/533356.aspx ...Show All
SQL Server changing merge agent profile for HTTPS - mergeSubscriberType = anonymous
Hi We are using HTTPS merge replication Our setup is as follows: subscription.CreateSyncAgentByDefault = False -- I wrote a windows service to synchronise subscription. UseWebSynchronization = True subscription.InternetSecurityMode = AuthenticationMethod.BasicAuthentication subscription.SubscriberType = MergeSubscriberType.Anonymous Some of our subscribers have low-quality internet connections - how do I get the agent at the publisher/distributer use a slower profile - I've read How to: Work with Replication Agent Profiles ( Replication Transact-SQL Programming) but can't see where you specifiy an alternate agent profile On the distributer / publisher (same machine) I go to replication monitor -> Warnings and ...Show All
Visual Basic Persisting Presentation Layer?
Could anyone point me to some online reading material where I could learn how to make Persisting Presentation Layer controls like whats used in VS2005 and VB express IDE I know you can dock panels etc...and use them as containers etc...but what is the best method for implementing the roll-out and -up of the docked panels -will Either create your own user control or google for third party controls with that functionality... http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=498688&SiteID=1 ...Show All
SQL Server 2005 SP2 Install Failed, and Now SQL Server is Unusable.
Hi, I have a problem with my SQL Server 2005 instance after trying to install SP2. My machine has a default instance of SQL server 2005, and 2 instances of SQL 2005 express. I installed Express SP2 and this installed without a hitch. Then I installed SP2 for SQL Server 2005. After the install, all the components had installed correctly except the Database Engine, which had a status of failed. I did not investigate why, I simply re-ran the install. It failed again, so I investigated further and I found out it failed because it had not been able to start the service VSS Writer. I looked at the service, and found I had changed the user which gives the service rights to start. I changed this back to Local System so the service c ...Show All
