XWVUE's Q&A profile
SQL Server SQL 2005 SP1 install Failure
I have attempted to install SP1 on to my SQL 2005 Server numerous times and cannot get it to be successful. It failes on database services everytime and the log and event log report that my account cannot change permissions on the Data directory. My system is running Server 2003 R2 Ent x64. I have a Cluster setup with no second node at this time (future additon). I am also using a mount point inside the Data directory for logs. I have monitored the install using FileMon and do not see any file access issues during the installation process. I have also looked at the files and directories within the Data directory and all security ACLs seem fine. I am running the install with an account that has admin permission on the box. The service accou ...Show All
Visual Studio Tools for Office Speeding up Visio batch job
My C# 2.0 application runs a batch job that involves generating several Visio document. I go through a loop that opens a Visio instance, drops a bunch of shapes and saves the document. The problem is that it is really too slow, so I was wondering if you could share some tips on speeding it up. Is there any way to have Visio run "in the background", without doing all the layout work as my app is dropping shapes on it what's the faster way to do this if all you care about are the visio documents generated by the process and you want to minimze any other process that might slow visio down This forum specifically addresses the VSTO technology, not general Office automation questions. Since VSTO does ...Show All
Visual Studio 2008 (Pre-release) Security Validation with Operation Attributes
Say I want to place attributes on the interface for a services operation or on the concrete implementation of the services operation. [OperationContract()] [MyAttribute("This is the sample attribute on an operation")] void MyOperation(); Now, during the authorization process, I want to be able to get the attribute off that operation for the current operation. I can't find the OperationDescription nor can I find how to get the type that will be instantiated and the method it would call so I can find the attributes that are applied to that method. Should I be using an IOperationBehavior instead and where should I put the info I'll need to extract so that the ServiceAuthorizationManager can get access to it to do a retrieva ...Show All
Visual C++ Where did CImage go in PlatformSDK 2003?
I am beginning to port a lot of my projects to 64-bit and also just using the updated platform sdk since I plan on eventually switching to VC++ 2005. Question is, where did CImage go I make a lot of use of this class and losing that breaks my code to a point that will be very time consuming to fix. Is it gone for good All the wonderful methods in CRect are also gone, but that not as big an issue as CImage. At one time, when the Platform SDK was the only way to get 64-bit tools, it included versions of MFC and ATL that were also adapted for 64-bit development - these were older versions of MFC and ATL (based of Visual C++ .NET 2002 I believe). I suspect that this is how you were getting CImage and CRect. Now that Visual C++ 2005 h ...Show All
Smart Device Development what
i downloaded what the link said would be the device emulator but got bpvault.asp, what do i do with that am i not getting the right link or something or do i have to get the program off of the bpvault is it like an image or something Ludy wrote: i have the same problem as the other guy. i'm trying to download DeviceEmulator050419.msi . this is the link that it sends me to .http://beta.microsoft.com/source/bpVault.asp ProgID=1522000000&ContentID=121412 ...Show All
Visual Studio Express Editions Cannot download VB Express
I just recently reformatted my computer and cannot seem to download VB Express from the microsoft website. No matter what link I click they all come up errors. I have been getting this alot recently with most any microsoft download. I tried the autoinstaller and the manual iso and img links and none of them work. Is there another place where it can be downloaded I did have it on disc but cannot seem to find it. Thank you, Troy L Internet Explorer cannot display the webpage Most likely causes: You are not connected to the Internet. The website is encountering problems. There might be a typing error in the address. What you can try: ...Show All
Visual Studio Express Editions Update TextBox based on Variable
I am reading a text file using StreamReader. ln = MyReader.LineNumber My text file has about 20 lines, I am only need the first 11. I would like to populate the textbox with the first 11 (I have the code in place to do this, just need to update textbox 1 through 11. I guess I need to know how to concatenante the control with the variable. textbox(ln).text = currentrow(3) textbox(ln).text = currentrow(3) with ln incrementing each time. Add the textboxes to an array Dim arTextBox(20) As TextBox Private Sub Form1_Load( ByVal sender As System. Object , ByVal e As System.EventArgs) Handles MyBase .Load arTextBox(1) = TextBox1 arTextBox(2) = TextBox2 arTextB ...Show All
SQL Server login failed for 'user' (Application Role)
I've created a database in SQL Express and I have a Windows form attempting to connect to it through SQL Authentication. Connection string: private string connString = @"Data Source=.\sqlexpress;Initial Catalog=SQLTestDatabase;User ID=SearchAppRole; Password=password;" ; The role I have added to the database is an Application Role. It has been added to the Database permissions with Grant checked for "Select" and "Authenticate". If I test this with query analyzer, it returns expected results (if I remove Grant from 'Select', it fails) sp_setapprole 'SearchAppRole', 'password' select * from recipe If I edit my connection string (for testing purposes) to use the sa account, the applicati ...Show All
Visual Studio Custom Wizard
How Can i preform validation on Project Name.. i want to enforce and directory to be with My prefix for example i want that all my projects will start with Avishay Hi Avishay, sounds like you would need to create a template for your projects. You can do this simply by opening a default project in VS and then using the export template menu command (file->export template). Make sure you fill out the default name to include Avishay at the begining. Then whenever you start a new project, choose this newly created project as the starting point. You can read more details about this and other .vstemplate features in this article. http://msdn.microsoft.com/vstudio/default.aspx pull=/library/en-us/dnvs ...Show All
Audio and Video Development How to combine DShow filters and IWMWriter together
Hi All, I read all the post on IWMWriter and DirectShow stuff here and I am still having problems on how to mix them together (Obviously IConfigAsfWriter and related interface used in Asfcopy project is fading away..., so we are not going to use them much longer): 1) Can we add IWMWriter to the directshow filter graphs directly 2) If #1) is out of questions, how can we convert encoded avi files (compressed) to the WM file (WM files) by using IWMWriter 3) Lets say this AVI file has both audio and video output and If we have the sample grabber for both the Audio and Video pin, how could we mix it back together when we write to the WMV files Thanks you very much in Advance! Gordon ...Show All
Visual Studio 2008 (Pre-release) Problem with Listview, XAML and hover
Hi, I have a program that is done in XAML with C# code behind. I have a ListView that is employing the GridView layout. I need to be able to detect the ListViewItem over which the mouse is hovering so that I can make another form pop up (similar to a ToolTip) displaying information relevant to the user contained in that item. The ListView is instantiated in XAML, so the GetItemAt event only allows me one argument, index. I would like to be able to use mousePoint.X and mousePoint.Y to get the item that the mouse it currently over. I tried this event handler: grdUsers.AddHandler(ListViewItem.MouseEnterEvent, new MouseEventHandler(Tip_Opening)); however, it doesn't give me the ListViewItem as the sender, but, instead, gives me the ListView it ...Show All
Visual Basic Force asynchronous method to terminate immediately
Is there anyway of forcing an asynchronous method to stop immediately You can do Thread.Abort() but i'm not sure how to determine the thread that the async method is running on. I know you should place periodic checks in your async method to see if the method is pending cancellation but I also need to be able to immediately stop the thread. Any ideas You can determine the current thread using the System.Threading.Thread.Current. However, it sounds like you want to do the killing from another thread. In that case, you need to save a copy of the thread in a variable when you create. You can do that like so: dim savedThread = new Thread(AdrressOf AThreadProc) And then do savedThread.Abort() whene ...Show All
.NET Development Will ado.net transaction sql server peformance
Hi All, I have a scenario where i have to use ado.net transaction. This transaction losts for almost 10min. During the transaction period none of users will be accessing the application. I am using many temporary tables in stored procedures which participate in the transaction. I would like to know after the ADO.Net transaction is complete will there be any hit on sql - server peformance. When the sql server and applicaiton server(IIS) is on the same machine ( test enverionment) after the transaction is completed my system is giving me a message saying virtual memory is low blah blah... Can you kindly let me know the answer and reason. Thanks, Raghunath K Although trnsaction are expensive objects, they should be cleared after the ...Show All
Visual Studio Tools for Office Doubt regarding Logon method of "mapi" namespace.
Dear all, I have the following code: CApplication m_app; COleException e; if ( m_app.CreateDispatch("Outlook.Application", &e ) == TRUE ) { m_mapiNameSpace.AttachDispatch ( m_app.GetNamespace("MAPI") ); return PIM_OPERATION_SUCCESSFUL ; } else return; // Create a variant containing NULL COleVariant varEmpty ((long)DISP_E_PARAMNOTFOUND, VT_ERROR); // Create a variant with profile username COleVariant varUsername("user", varShowDlg((long)0); // create a variant with password COleVariant varPassword ("userpasswd" ); // Logon to the user profile m_mapiNameSpace.Logon(varUsername,varPassword, varShowDlg, varEmpty); It will display the message box (with OK and ...Show All
Visual C++ Keyboard Hooks
Hi, I'm creating a keylogger to test an antivirus program I am making, and from what I've heard, the best way to do this is with a Keyboard Hook. If somebody could not only post the code involved in creating a Keyboard Hook but possibly give some basic explanation of it. If anyone could do this for me I would greatly appreciate it because I've looked around this forum and the internet to figure out how to do this hook but I havent had any luck yet. Most people familiar with system-wide hooks will be skeptical of your motivation. My guess is that in this case, there is ample justification for being suspicious. It took me a couple of months to get a system-wide hook to work. I studied everything I could f ...Show All
