JohnWH's Q&A profile
Visual Studio shortcut key ALT+INSERT and other newb ?
hi i am trying to learn how to make add-in's and one thin is how do i make a shortcut key binding to ALT and INSERT have tryed with command.Bindings = "Global::alt+insert" ; that dos not work but it works with command.Bindings = "Global::alt+y" ; is there some special thing with the insert key or another thing is i want to search the active document line for line and do some processing if a creteria is met but i have difficulties finding a way to search the document the only thin i have found is to get the selected text but i want to get all the document hope somebody can help The ...Show All
Visual C++ After the machine automatically updated itself last week, I started getting this:
Microsoft Visual C++ Runtime Library Assertion failed! Program:...am Files\Microsoft Office\OFFICE11\WINWORD.EXE File: .\scoring.cpp Line: 133 Expression: ret For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts (press retry to debug the application - JIT must be enabled) I am a medical transcriptionist - I have no idea what any of that means - I just want it fixed right away. I use my computer to do my work and now Office and Outlook are both messed up as I keep getting this message pop up. No doubt this is posted in the wrong place. It is so difficult t ...Show All
Software Development for Windows Vista VISTA re-install
Hi all, I installed Vista on a new PC. Now I want to re-install Vista and it tells me that the partion I want to use does not have enough space. But I want to completely re-install. How do I do this Thanks for your help. Linley For some strange and bizarre reason, unknown to me, Vista requires at least 8GB of a partition to be free to install. As I was doing my install on a test box with a 10GB Drive, I also found this problem. The only option I had was to boot the vista Install from CD, and format the drive. I was then able to install vista. ...Show All
Visual Studio Team System Error Publishing Test Result
Hello, I have Team Build installed and the builds are working fine. However, when ever we try to publish a test result to the build we always get the following error: Status: Failed Error Message: Publish operation failed. What does that mean How can I fix it I can't seem to locate any logs or items in the event log. Thanks, Cindy The root cause of the failure you were seeing is the fact that the build service and application tier accounts are different. This is a known issue that will be fixed for RTM. The failure occurs when we try to set the permissions on the test results directo ...Show All
.NET Development which symtol file should I download?
Now I am debugging my 64bit program with Windbg,I don't know which symbol file I should download from MS's homepage. there are XPsp1,XPsp2,2003Sever,and so on .My OS is Windows XP x64, which symtol file should I download hupo1982@discussions.microsoft.com wrote: > I changed my setup as you says,but I can't set a breakpoint all the > same.When I started debugging,the windbg show that: > > *** ERROR: Symbol file could not be found. Defaulted to export symbols > for C:\WINDOWS\system32\msvcrtd.dll - > ModLoad: 00000000`4f9b0000 00000000`4fa41000 > C:\WINDOWS\system32\msvcrtd.dll > (4d0.5dc): Break ...Show All
Windows Forms Referencing a Form's method from an assembly in the same Namespace
I'm trying to call a method declared in my main form from an assembly that is in the same Namespace, but I can't get it even to compile. There are some limitations that I would like to comply with: - The method in the form can't be Static because I need it to access a control in the form. - I shouldn't create a new instance of my main form in the assembly because I need the method to be called to access the current values of some fields in the form. - I don't like the idea of declaring a field of type Form_Main in the assembly and then make it to reference the main form at runtime. It got to be a cleaner way. I'm looking for s ...Show All
Visual Studio 2008 (Pre-release) Security options reduced when hosted in IIS?
When self-hosted, one can use ServiceSecuritySettings.SetUserNameAuthentication to specify a custom MembershipProvider or even custom UserNamePasswordTokenAuthenticator for validating users. Similarly, when self-hosted, one can use ServiceSecuritySettings.ThreadPrincipalMode with GenericThreadPrincipalMode to specify a custom RoleProvider or supply a custom ThreadPrincipalMode class. When hosted in IIS, however, these options don’t seem to be available. SecurityServiceSection, which is a nested BehaviorSection, doesn’t seem to have any code in it for specifying a custom UserNameTokenAuthenticator or even a MembershipProvider. I worked a lit ...Show All
Visual Studio Can't debug ASP in VS2005
VS2005 doesn't seem to support debugging ASP pages. Is this really so That's a serious problem if it is. Thanks Jeremy What sort of problems are you seeing I can't seem to get it to work either. I get messages saying that the server (I'm developing on the server) is not configured to support debugging, with a suggestion to see some non-existent topics on configuring ASP.NET and ATL debugging in the documentation, and messages saying that the "current trust level does not support the 'debug' attribute." I've played a little bit with the groups and permissions based on what I could find, placing the ASPNET user ...Show All
Visual Studio Team System Web Testing using Anthem (ajax)
I am using web tests within team system and I am trying to record a test on pages which uses Anthem (ajax similar to Atlas) - the teste arent recording the ajax and I have attempted to use fiddler to record the traffic and have managed to do this, however when I try to manually add the steps in I am getting an issus wheer the test cannot find one of the anthem controls. WebTestRequest request2 = new WebTestRequest ( http://localhost/Default.aspx ); request2.ThinkTime = 7; request2.Method = "POST" ; request2.QueryStringParameters.Add( "Anthem_CallBack" , "true" ); FormPostHttpBody request2Body = ne ...Show All
SQL Server Multiple Log Files
Using an expression to set the log filename to include the date and time results in 3 log files being created. Ummm. Why I only ran the package once. Is SSIS not sharing my log file connection among the different components On first thought my workaround would involve using a script task to "set" the log file name to a variable and use an expression to set the log connection to the variable. But the problem with that is that logging starts BEFORE the script task is run... Hi, It would be great if you can give more details about your package. Are you creating the log file in the 'OnPostExe ...Show All
Visual C++ Converting System::String to Int32 and back again in hex in C++
OK, I have a simple question: I have a window where a user can enter a hex value, like 10BF00D1. Another one where the user can enter a pure binary number like 1000011101101001. I want to grab the String and put the data into an integer, manipulate it and turn the result back into a String. How do I do this with the managed System::String class in Visual C++ 2005 It was easy to do back in the "C" world, why is it so hard to find the new way Thanks, Dale Hi, To do the conversion you should use Convert::ToInt32. By the way, if your are going to do a lot of .NET programming Managed C+ ...Show All
Visual Studio Office SP2 after Visio for Enterprise Architects (after SQL 2005 Dev Ed)...
Installing on Win XP SP2 w/ Office 2003 SP2. I installed SQL 2005 Dev Edition followed by VS 2005 Pro. Then I installed Visio for Enterprise Architects (I believe this is Visio 2003). Now Office Updates says I need SP2 again, but it won't install... any ideas This was my planned install order: Win XP SP2 Office 2003 SP2 Windows critical updates, Office critical updates SQL 2005 Dev VS 2005 Pro Visio Ent Arch Office updates Visual Studio Tools for Office 2005 MSDN 2005 Sounds like an Office SP2 detection issue. You should post on the Office forums (I can't find it) or call help desk. ...Show All
.NET Development About securing a method execution.
Hi All I’m using .Net v1.1. I’ve an EXE named as “myApp.exe” and a DLL named as “myLib.dll”, in the DLL I’ve public method named as “foo()” All I want is to secure this method execution. i.e) this method should get execute only if it is called from myApp.exe and the method should throw an exception if it is called from any other sources. How can I achieve this Thanks & Regards Karthikeyan Hi Shawn Thanks a lot for giving me the various ideas to implementing security.. Sorry for delayed thanking! Actually I adm ...Show All
Visual C++ MFC 8.0 problem: afxcomctl32.h structure alignment is 8 bytes (in MFC80.DLL)
Summary: In the release versions of MFC80.DLL the structure alignment when building afxcomctl32.h is 8 bytes. This is different from any other structure in MFC 8.0 (things normally use 4 byte alignment). I was having a crash with the CComCtlWrapper class when calling some of the CImageList functions (e.g. GetImageCount) I finally isolated the problem to alignment issues. Did you know that certain parts of MFC 8.0 are now alignment sensitive I was building my MFC app with 2 byte alignment, and the MFC80.DLL is built with 8 byte alignment. In previous versions of MFC, it was not required to use #pra ...Show All
Visual Basic Help With Code
I have got this bit of code which I have written, but I don't know how to say Number = (Any Number). So the effect would be if the text in TextBox1 is a numeric value, it would do the calculation. Otherwise it would display "You Must Enter A Number Into The TextBox" in the toolstrip status label Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Number = If TextBox1.Text = Number Then Dim i = Val(TextBox1.Text) Dim o = 2 ^ (i - 1) Label1.Text = Integer.Parse(o) Else : ToolStripStatusLabel1.Text = "You Must Enter A Number Into The Text ...Show All
