crazy_boss's Q&A profile
.NET Development sent and received data size!
hi.. how can i make sure that the socket doesnt send more data than i want it to send ! and that it does not receive more data than that was sent to it!! to be more clear im sending pics from a client to a server.. the max size of the image is 4500bytes.. but some times the size received on the server is more than that!! how come! thnx i meant that i send 3k for example ,,, but when i receive it on the server using.. int irx = Socket.EndReceive(async) this will return the amount of data received by the socket.. so the problem is i send 3k but the irx is 4k or so.. and not all the time but this happens every 100 times.. thnx ...Show All
Visual C++ I can't see the variable value in the Watch view
I am using visual stutio 2005 on windows XP sp2 platform. it happened to me that I can't see the variable value in the watch view, though I can see the value when I use "cout<<" to print it on the screen. In the watch view, there are always errors, said: symbol *** not found. I am quite sure I didn't make misstake in spelling the variable name, but why I get these errors It really cause problems in debugging. can someone help me Thank you! Make sure you are running the debug build, and that there are no optimizations enabled for this build (Hit ALT+F7, go to Configuration Properties -> C/C++ -> Optimization). You can also try adding a breakpoint within the variable's ...Show All
Windows Forms DataGridView: Select Rows and retrieve the values of the cells
Language: VB.NET 2005 Framework: 2.0 Database: SQL Server Express 2005 I have a DataGridView that is populated with data from a SQL Server DB. I need to allow the user to select Rows of interest and then the values of some of the cells on the selected Rows needs to be retrieved for Math calculations. I can retrieve values from cells I just need to know how to get VB to notice that a Row has been selected and only retrieve the vallues on the selected Rows. How to retrieve Values from a DataGridView - May Help Someone OutPut = DataGridViewName.Item(columnIndex As Integer, rowIndex As Integer).Value.ToString txtOut.Text = grdCboTest.Item(3,0).Value.ToString Thanks in advance for any help, Mike ...Show All
Visual C++ VS.2005 constantly crashes when trying to compile, start or debug an application
Hi everybody, We are currently trying to migrate our (unmanaged) C++ code base from VS.6 to VS.2005. Some smaller projects have already been migrated successfully, but unfortunately, we're experiencing lots of problems with our major project (which is a single big application build from about 4.000 C++ files in several static libraries). The main problem is that VS.2005 constantly crashes whenever we try to compile, start or debug the application. This may sound odd - since one cannot start an application without beeing compiled - but we've managed compiling the project using the IncrediBuild plugin. However, if we choose "Build Solution" (or "Rebuild Solution"), or try to "Start Debugging" or "Star ...Show All
.NET Development XML
How to make the page well formated using XML Your post is cryptic. What is "the page" Do you mean "file" or "document" instead of "page" XML is always well formed. If you try to process file that is not well formed with XML tools they should give you an error. Fixing this errors one by one you can format your files according to XML rules. You can open XML files in the VS XML Editor. It should all errors and helps you navigate to the position in the file where you can fix the error. ...Show All
Visual Studio Team System Best Practices for Data Generator Based Tests?
I'm having a bit of a hard time grasping how to make meaningful tests based on the randomly generated data vs making my test in a transaction where I feed it initial data and check for an expected outcome. For example's sake if I had an SP called DivideTwoCols that would divide colA by colB in table0... If I were making tests with known data, I'd probably make a test using two positives, one negative and one positive, two negatives, colA = 0, colB = 0, and no rows in table0. If I were just testing randomly generated data how would I know I had my cases covered would the random test just pick a random row to try it with using select top 1 colA, colB from table0 order by newid() I can appreciate throwing in some randomness in te ...Show All
SQL Server SQL Server Integration Services and Web Service timeouts
Hi, A coworker of mine is experiencing some problems with SQL Server Integration Services (SSIS) and long running Web Service calls. Any feedback on the problem would be greatly appreciated. The problem is as follow: He has a large SSIS-package that, among other things, contain a few Web Service Tasks. All of the tasks are executing as expected for small amounts of data. All the Web Service Methods have in common that they have a long running time. The running time depends on the amount of data. During requests with large amount of data the Web Service task fails with the error message “The operation has times out”, but on the server they see that the service call completes as expected (after quite some time, approx 200sec). The ...Show All
SQL Server manipulate field value from select statement
Hi all, any assistance will be much appreciated on this one .... a bit clueless at the mo! I've been trying to execute the code below in which part of my select statement is a calculated value i.e. Right([ED],2) & "/" & SUBSTRING([ED],5,2) & "/" & Left([ED],4) AS ENDDATE code: SELECT vw_contract_dates.[ContractNo], vw_contract_dates.[Title], vw_contract_dates.[CC], vw_contract_dates.[Sponsor], Right([SD],2) & "/" & SUBSTRING([SD],5,2) & "/" & Left([SD],4) AS STARTDATE, Right([ED],2) & "/" & SUBSTRING([ED],5,2) & "/" & Left([ED],4) AS ENDDATE, vw_contract_dates.[CEILING], [CEILING]-[SPEND] AS Remain, vw_contract_spend.[SPE ...Show All
Visual C# Dll Import
How do I import a dll into my project and then use it for the project's layout Ok now I got it... thank you! Now I need to know how to use that dll in my form [ DllImport ( "ShellStyles.dll" )] private static extern void Example(); ...Show All
Visual Studio Team System Error checking out of TFS - dbo.func_ComputeEffectiveMappingsEx Error
I receive the error below in the event viewer when trying to check out of TFS Source Control. I haven't been able to find anything on function dbo.func_ComputeEffectiveMappingsEx that the error reports on. Thanks. Event Type: Error Event Source: TFS Version Control Event Category: None Event ID: 3000 Date: 1/30/2007 Time: 5:20:08 PM User: N/A Computer: TFS Description: TF53010: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for the administrative staff): Date (UTC): 1/30/2007 10:20:08 PM Machine: TFS Application Domain: /LM/W3SVC/3/Root/VersionControl-3-128146659614662968 Assembly: Microsoft ...Show All
Windows Forms Watermark TextBox in winform
Trying to create a control like Atlas control that will put a watermark inside a textbox while it is empty. My original idea was use UserControl1_Enter and UserControl1_Leave and set this.Text appropriately, but this method could foul up other code using the Text property. My next idea was to use the Paint method, but I am not even sure that TextBox has a OnPaint event at all. Any tips Jon, as far as I know there is no way you can override the painting the a TextBox control, short of drawing everything yourself. There is a solution that should do the trick for you, though. You will need to sublcass the TextBox and override a few things. Consider the following code I put together (far fr ...Show All
Visual Studio Team System Code Coverage Results in Web Tests - "Empty results generated: none of the instrumented binary was used."
Code Coverage Results after running test: Empty results generated: none of the instrumented binary was used. Look at test run details for any instrumentation problems. The test run details show a warning for each of the assemblies regarding instrumentation, but this leads me to believe that the instrumentation process succeeded: Warning VSP2013 : Instrumenting this image requires it to run as a 32-bit process. The CLR header flags have been updated to reflect this. My scenario: In trouble shooting this, I’ve scaled down to a single test that logs into the site and views a single page. D etails: My Test Project contains a single web test (.cs) file and the localtestrun.testrunconfig file ...Show All
Visual C# Adding a item to a IDictionary<String, List<String>> object
Hello! I know this must have an stupidly easy solution, but now I just can't find it :( I have this collection: IDictionary<String, List<String>> publishers = new Dictionary<String, List<String>>(); The keys will be some web publishers names, such as "wired.com", "internet.com", etc. The values associated with these keys will be lists of urls (I'll be reading the urls from a txt file). The code: StreamReader sr = File.OpenText("blah.txt"); //initialize the dictionary structure for (int j = 1; j <= numberOfPublishers; j++) { this.publishers.Add(publisherName, new List<String>()); } string url = sr.ReadLine(); do { if (Regex ...Show All
Software Development for Windows Vista Reading a Hard Disk Serial Number
Hello, I am testing an application which reads the serial number of the first hard-disk (C:\). The application is written in VB6 to work on Windows 95 through XP and I am currently testing it on Windows Vista. I am using the function DeviceIoControl from "kernel32", to read the serial number on disks that have SMART technology enabled. While testing, I noticed that I get a different serial number if the application is opened with the limited access user account or with administrator account. I suppose the real disk ID is shown when the application is opened with administrator privileges, but then how is the other number generated, and is it unique, or at least randomly generated once on each computer Thanks for your help, Davi ...Show All
Windows Forms Key, Tag to store the primary key in listview against the item we load.
Hi all, I am loading data in listview conrol. In that i want to store the primary key in listview key or tag property something else. I want to display the name in that listview . Any one can help me Regards, sureshp Surezhp wrote: I am loading data in listview conrol. If you can show the code that loads the data...We should be able to show you how to put the pk in the tag ...Show All
