Webbert's Q&A profile
Visual C# How to check if I am using VStudio 2003 or 2005 (or .net 1.1 or 2.0) in C#
I have a program that was written in VS 2003. The program runs fine without a hitch. A few days back, I installed VS 2005. The program compiles fine, but everytime I run it, I got the an IllegalCrossThreadCalls Exception (something like its not reccomended to access a thread from another thread). Since I know for sure that my code won't cause any problems, I just want to turn off this exception. I found the following code that does the job: >> Control.CheckForIllegalCrossThreadCalls = false; The problem is that this line doesn't compile under VS 2003 (the .CheckForIllegalCrossThreadCalls is specific to .NET 2.0). I want my program to compile under both VS 2005 & VS 2003. So, I want to auto-detect the version of Vis ...Show All
Smart Device Development Camera API's stopped working
My camera capture method below, no longer seems to works on my i-mate SP5 (HTC Tornado).. The code worked and ran perfectly for the last few months, on both NETCF2..0 and the Beta of NetCF2.0 Service pack 1, but since I upgraded my device today to the new release candidate (non Beta), it no longer works and throws an InvalidOperation Exception on CameraCaptureDialog.ShowDialog(); method. The .Net themselves seem to work alright, except the camera functionality no longer works /********************************************************************** * METHOD: startCamera **********************************************************************/ public String startCamera(CameraCaptureMode incCaptureMode) { /*** ...Show All
Windows Forms how to add a frozen total row?
How can I add a frozen row in DataGridView contains the sum total of each column You can frozen Datagridview by DataGridViewRow.Frozen Property ...Show All
SQL Server Capturing Execution Results
Hi All When running an SSIS Package from BIDS, we get to see the "Progress" tab which explains us the progress of the SSIS Package. During production, is there any way to capture this log. I am interested in using this as a log file for each run of my SSIS package. Thanks, S Suresh Hello, I am not sure, I understand the difference between the two and would appreciate it if you could clarify how to implement package logging as opposed to SQL Server Agent Logging. I have enabled the package logging property, however, would like to obtain a file that is in the same format as that displayed in the 'Execution Results/Progress' tab. Thanks, Subah. ...Show All
Visual Studio Express Editions Script Control Help Please
Good morning, I hope to get some advice, council and wisdom about the MS Script Control 1.0. I have not been able to find a reference that deals with implementing this control in a VB 2005 application. In my application I want to evaluate an expression which has been entered in a TextBox and include a variable from VB. Here is the code that has been giving me a problem. Dim tbText As String = """String1 "" & V1 & ""String2""" Dim txt As String = "GrandpaB " ‘mScriptControl.AddCode("V1=" & txt) mScriptControl.ExecuteStatement( "V1=" & txt) TextBox1.Text = mScriptControl.Eval(tbText) In the app ...Show All
.NET Development Accessing secure web service from a different secure web site
Greetings, I have a web service page that is inside a website using the membership security provider (asp 2.0) . To simply call up the page (page1.asmx) I need to login to the page. To access the functions in the webservice from another website, I need to get past the 'redirect to a login page' part of the transaction. There is security built into the webservice, so bypassing membership is ok.... The second website that is trying to get to the webservice is using forms-based authentication (not membership). How do I either exclude the web service page from the membership rules --or-- setup some kind of trust between the two websites (both internal on my Intranet) . Either way, I really just need to get to the web service f ...Show All
Visual Studio Team System How to view WorkItem Form programmatically in Web Form?
Hi All, I am creating a web application. I need to view the WorkItem Form in my Web Form. How do i do it programmatically Please help me in this regard. Thanks in advance. Hi, one option is to use webview of workitem. Its URL is in the format: http://server:port/WorkItemTracking/WorkItem.aspx artifactMoniker=<workitemid> This will give readonly view. If you want an editable view, there isn't a built in functionality - see this thread for options you have: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1164214&SiteID=1 ...Show All
Visual C++ Help Me Please
Hi im learnig VC++ 2005 and something wierd is goin on with my compiler.. when ever i build and run my projects an error pops up saying "This Application Has failed to start because MSVCP80D.dll was not found. Re-installing the Application may fix the problem." but here is the wierd part the file MSVCP80D.dll is present in my C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c folder i can see it but how come VS is not detecting it and i even tried re-installing the software but it doesn't seem to work can someone please help me!!! Thanks im sorry it does not seem to work here is what i got in the debug dialog Debugger:: An unhandled non-continuable STATUS_ ...Show All
Visual Basic VB 2005 Blues
I retired 12 months ago and I tried my luck with programming before senility took completely over. I was successful constructing six programs all dictionaries of chords (Guitar, Bass and Keyboards) and/or scales of 53 types of mysic (Mongolian, Hungarian-Gypsy and Persian included) in all 12 keys. Unfortunately I did them in VB6 and not possible to add sound hence VB 2005 with NET 2.0 promises possibilities. But what was ease whith VB6 I find impossible with VB 2005 and no amount of Wizard upgrading was able to assist me. So here I am asking any direction or assistance from You Lovely People It will be GREATLY appreciated. Private Sub List1_Click() if List2.Text = "A" Then ...Show All
Visual C++ Last Question..
There are two '\n' characters in buffer(stdin) when we have successful input or not. Following codes show that two of '\n' are exsisting. #include<stdio.h> void main() { int a; scnaf("%d",&a); printf("%d %d %d",stdin->_ptr[0],stdin->_ptr[1],stdin->_ptr[2]); } When we input the data to program, we press the enter button once. But two of '\n' are in the stdin buffer. Someone who konws the reason demonstrates me.. please.. Please answer by using the _ptr,_base.... In the real memoy if input is successful you will see that "_ptr" move the next position. In the real memory I think that scanf can rea ...Show All
Windows Forms DataGridView Rows help pls
hi all. I've a DataGridView control. There Are Two Columns. I'll add rows this control at runtime. my problem for example There are 5 rows at grid. I'll add 6. row but it must be on 2. order not 6. order DataGridView.Rows.Add("Sample1","Sample1") DataGridView.Rows.Add("Sample2","Sample2") DataGridView.Rows.Add("Sample3","Sample3") DataGridView.Rows.Add("Sample4","Sample4") DataGridView.Rows.Add("Sample5","Sample5") now add new row DataGridView.Rows.Add("Sample6","Sample6") when run, grid must show like this DataGridView.Rows.Add("Sample1","Sample1") DataGridView.Rows.Add("S ...Show All
SQL Server How to suppress result sets returned from a stored procedure?
I have a novice question. How does one suppress result sets returned from a stored procedure I have created a procedure which makes use of multiple stored procedures . The purpose of this procedure (lets call it procA), is to count the rows returned from other procedures. The “Other” procedures will return rows having an unknown number of columns. I would like to limit any changes which may be needed to be made to the “Other” procs. Once procA has collected all of the information (@@rowcount) from the inner procedures, then it will return a result set having several columns – mainly the subProcedure name and number of rows returned. The purpose of procA is to query several subsystems and identify which one ...Show All
Visual C# Win32 API & Disk Management
For Educational purposes I really want to learn how to access hard drive I mean everysector in the drive and so on, how to move one sector to another one, how to create disk defragmentation software Vitalijus wrote: I know i can't do this in C#. That's why i downloaded Platform SDK. Hello, First, as discussed this is not possible in .Net You have Windows SDK, try to locate functions which may help you in doing this and then you can call those functions from C# application. For intropability help you can use this website http://pinvoke.net I belive you'll find all the functions usage there. It has the usage of functions of all the common dlls in windows from managed application. B ...Show All
Visual Studio Team System Strange Results From a Smoke Test
Hello Everyone, I have a little problem that is puzzling me, and I have turned to the superior minds here for help ! I have only just started working with VSTS and am setting up a load test for a website being created by my company. One of the first things I wanted to do was to smoke test VSTS with a very short "mock-up" test against a very small "mock-up site". In particular I was interested to find out how many users I could simulate on a single machine before I maxed out either the processor or memory. So........ I set up a load test starting at 10 users, and adding 10 users every 10 seconds all the way up to 2000 users. Thinking that a very long way before that point I would exceed the resources availabl ...Show All
Windows Forms IIS: Server Application Unavailable for aspx
I get this error message every time I try and run a local and personal aspx page on my local IIS server (IIS v6, .net2.0), server that i have just installed on my XP pro box. Any idea what the cause could be thanks in advance for your help and happy new year! ERROR: Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request. Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur. IIS LOG: #Software: Microsoft I ...Show All
