MSNetDeveloper's Q&A profile
Visual Basic "The operation could not be completed. Access denied"
Hello people, I’m a really annoying issue with VS Express, and I can’t seem to find any way around it. If I load a project in VS and press F5, the build is successful and the program runs, but only ONE time! If run my program again, I get the following message: "The operation could not be completed. Access denied". However if I skip debugging by pressing CTRL+F5, everything works fine. If I restart VS, I can use F5 once again, but still only one time, then another restart is required. Below is the output from the build. To me it looks like the build process completes every time, and that it is the debugging that for some reason gives me this access denied. I earlier had an evaluation version of VS Pro, with the exa ...Show All
Software Development for Windows Vista Thread Synchronization between Automation Client and UI Program
Hi all, I have a question about thread synchronization and UI automation. Say I have a GUI application and an automation program similar to the one in the TreeWalker sample in the SDK documentation. Now say that in my automation program, I start up the GUI app by using the methods in the Process class. My question is this: What is the best way to programmatically go about determining when my GUI app is done loading its UI so that I can begin the automation Essentially, how do I stall the automation client until just the right time I tried doing Thread.Sleep for an arbitrary amount of time, but I want to find a more deterministic (and less touchy) solution. Moreover, I tried the Process.WaitForInputIdle method(because I think ...Show All
SQL Server Got BIDS working, was there another way?
i re-installed the SQLEXPR_TOOLKIT.EXE several times(4) trying to get the BIDS part to work. Each time i had the issue of it looking for the devenev.exe as others have mentioned. I gave up on a 5th install and went for the unsupported option of running vs_setup , after the toolkit.exe dumped all the install files to its temporary directory i went in there and ran it sperately... but essentially i did it the same way as this method... http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=368549&SiteID=1 while this did work, it seems to be the unsupported way. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=665067&SiteID=1 Im not opposed to going back and doing it right, but was there ever a conclusion as to why the BIDS prog ...Show All
Visual Studio Tools for Office commandbar not loaded in second instance - word addin error
i have created a word addin in .net 2003. i am using word 2003 but following line gives error whenever i open an existing document: CType(applicationObject, Word.Application).CustomizationContext = CType(applicationObject, Word.Application).ActiveDocument the error is that there is no open word document. my problem in word addin can also be described as: http: / / www. thescripts. com/ forum/ thread373043. html i think its all about getting inspector and adding commandbar items in its event... but i am not able to do that... can anyone please post a code to handle that problem and make it work. ....commandbar button loads in one word app . bt not in 2nd instance of word document This forum does not cover COM Add-ins, ...Show All
Visual Basic Microsoft Agent Request Events Problems
Happy New Year VB Experts, I am attempting to use the Microsoft Agent in an application; you know, the Clipit and Merlin characters. According to the documentation that I have found there is a Request event which is fired by a number of the Agent methods. The agent _RequestComplete event is used to keep the Agent animations and the rest of the program in sync. This is how I attempted to program the Request event. The code sample just contains the code pertaining to this problem. Public Class Form1 Private WithEvents MYAgent As AgentObjects.Agent Private MYChar As AgentObjects.IAgentCtlCharacter Private MYRequest As Object Sub LoadAgent() MYAgent = New AgentObjects.Agent With MYAgent .Connected = True ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Help with moving towards a given point
I'm kinda new to this whole XNA C# programming stuff so sorry if this is an insanely easy question. I have recently tried to play around with some physics for a 2-d game that I am making. I tried to make an object go towards a point that the mouse clicks on. Here the code i used: private void PointPhysics( Vector2 pos, Vector2 force) { totalpos = (Position - pos); mulpos.X = totalpos.Y * force.X - totalpos.X * force.Y; mulpos.Y = totalpos.X * force.Y - totalpos.Y * force.X; Position += mulpos; } Now the mathematics in this aren't entirely worked out because when I use this kind function the object moves only on a diagonal path, from the top left to the bottom right. Any help on this would be useful. ...Show All
Visual Studio Express Editions fatal error RC1021: invalid preprocessor command 'import'
I'm importing the msxml library like this: #import "msxml3.dll" If I do this in cpp files everything is fine. I can compile and link no problem. But I have a header file (qdbclient.h) that defines a class where some of the members of the class are XMLDOMDcouments. So I find that I need to do the #import "msxml3.dll" in the header file as well to get things to compile. After putting the #import "msxml3.dll" in the header file, when I compile I always get: Compiling resources... .\qdbclient.h(1) : fatal error RC1021: invalid preprocessor command 'import' I can get this error message by right clicking on the one resource file in the project and clicking compile. If I individually compile any of ...Show All
.NET Development CompilerParameters.ReferencedAssemblies issue
Hello, I have a C# assembly that compiled in memory using CodeDomProvider.CreateProvider("C#"). I use CompilerParameters.ReferencedAssemblies to add the referenced assemblies by passing a filename as arguments (e.g. MyAsm.dll). For some reasons, the C# compiler cannot find my custom assemblies eventhough they are registered in the gac. It does find the .NET ones though such as system.dll. Why is that I don't have these kind of problems with the Boo compiler which seems to look up the gac for referenced assemblies. thanks for your help. -mab Hi i tried the same by giving the full path as follows: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\embed\3556a345\5 ...Show All
Commerce Server About OrderGroup
Hi Guys I am directly working with Basket object that is, adding forms into the basket and adding lineitems into the forms and saving it. its working fine .. But now i want to create a wish list(Favorite List) and order template, According to some blogs, OrderGroup is used as a template and wishlist and later that can be converted to basket and purchaseorder. How to create an basket from the OrderGroup . it will be very helpful for me.. But there is no option in OrderGroup class to save as basket.. What is the next step to proceed.. and alos what is core differcence between OrderGroup and Basket . then how the basket was diffrencted from the OrderGroup.. Please provide any link to study about more... Praba, I'm not ...Show All
SQL Server Parameter visability dependant on a parameter?
Is it possible to change the visibility of a parameter based on a boolean parameter that a user can view in the report So you have one parameter that is a boolean value defaulted to false, when the user changes the parameter from false to true another parameter, previously hidden, is then displayed. Thanks Dynamically hiding certain parameters in the report viewer UI is not supported directly through RDL. You would need to implement your own custom frontend for handling this parameter logic and then send the selected parameter values to Reporting Services (e.g. via URL access, or by using the report viewer controls in local mode). -- Robert ...Show All
Game Technologies: DirectX, XNA, XACT, etc. RenderTexture?
I would like to be able to render into a texture under DirectX9 i made a simple RenderTexture class however I am not sure on how to tackle rendering to a 2D texture under DirectX10. My first puny attempt seems to fail when I create the render target view using CreateRenderTarget in OnCreateDevice10, the methods BeginCapture are used to start rendering to a texture a to restore render target, respectively. Any help is much appreciated, /// class member data ID3D10Texture2D* md_pMap; ID3D10RenderTargetView* md_pRTV; /// render target view ID3D10RenderTargetView* apOldRTVs[1]; ID3D10DepthStencilView* pOldDS; D3D10_VIEWPORT OldVP; HRESULT CRenderTexture::OnCreateDevice10() { HRESULT hr; D3D10_TEXTURE2D_DESC dt; dt.Width = 25 ...Show All
Visual C# Offsetting UserControl location...
I am having this annoying problem that I do not understand. I have a UserControl and I am trying to change its Location . I want to say: this .Location.Offset(iAdjustX, iAdjustY); However the above does not work. It seems I need to do this: Point pt = this .Location; pt.Offset(iAdjustX, iAdjustY); this .Location = pt; I do not understand why I cannot just apply the Offset method to the the UserControls Location . Am I missing somthing here Thanks, Bob Hi We can't know how properties are doing, what is returned. Example Location could be something like this: return new Point(this.x, this.y); Yours Markku ...Show All
Visual Basic Problem using a data bound combo box
(I'm using VS2005) Instead of using a bindingnavigator, I'm setting one field as a databound combo box with the display member and selected value set to the field. Then the other fields are text boxes and change based on the selected value of the combo box. The problem is that when I run the app, the form won't close. Why does this happen and what can I do to make the form run appropriately Thanks. There aren't any other controls on the form. I basically started a project, added a datasource, set the table to "details" instead of grid view, set one field to a combobox, dragged a couple fields to the form, set the combobox on the form to "use data bound items" (display member and sel ...Show All
Windows Forms How to implement Cut Copy Paste
Hi, I am using different controls in application like text box, numeric text box, list box, combo box and many others. There is a requirement to give cut, copy and paste for these. Do we have a common code or list of properties which needs to be used in each control for implementing cut, copy, paste I am using some htird party controls (infragistics), so it will be great if the solution takes care of those controls as well. Any help in this regard is appriciated. Thanks in advance. Regars, MSGuy One way I do it is to have a single method for Cut, Copy, Paste, SelectAll, then in each one, I check to see what type of control is the active control, then I call the appropriate method ...Show All
Visual C# how to use WM_CLOSE message ??? to terminate APPs...?
help me if there is any way to implement an application that close other running application... thanks in advance.. Process.Kill will cut the process off at the knees. If it's in the middle of writing a block of data to file it could get cut off in the middle (if it's not an atomic write) and corrupt the file. Asking the application to close via CloseMainWindow is the best course of action. If it can't respond then you can think about using Kill: Process[] myProcesses; myProcesses = Process.GetProcessesByName("Notepad"); foreach(Process myProcess in myProcesses) { if(!myProcess.CloseMainWindow()) { process.Kill(); } } I would still advise against using ...Show All
