David Chalmers's Q&A profile
Visual Studio Express Editions Add numbers
Hello all, I need my program to add nine numbers together and get the some. I am using this code: Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click TextBox2.Text = Txt1.Text + txt2.Text + txt3.Text + txt4.Text + txt5.Text + txt6.Text + txt7.Text + txt8.Text + txt9.Text TextBox2.Text = TextBox2.Text / 9 End Sub It is not doing what i need it to. Without deviding, lets say all of the numbers were 100, it would write 100 tons of times. How can i fix this Ok, Now it has got the adding part down, but now the deviding part wont work. When i make it devide, the average ends up 150 for two 100's! Edit: ...Show All
SQL Server forwarding error
Hi There I am doing the follwing , sending a message from initiator A to service73 at targetA. I am profiling the initiator, forwarer and target. At the initiator everything is 100%, at the forwarder message is forwarded 100%. I am receiving the following error at the target: Could not forward the message because forwarding is disabled in this SQL Server instance. Now i have had these errors before, this was due to the fact that the service did not exist at the target or the service name was incorrect etc. I have check , service73 exists and is fully functional at the target, all message types, contracts etc are all 100%. Queue for service73 is enabled 100% please help. Thanx ...Show All
Visual Basic Rounding Question
Hi all, I am trying to achieve following I want to round a value by passing a parameter for nearest upper rounding value rounding result rounding result nearest to 1 nearest to .5 0.2 1.0 0.5 0.5 1.0 0.5 0.8 1.0 1.0 1.0 1.0 1.0 1.2 2.0 1.5 1.5 2.0 1.5 1.8 2.0 2.0 Please guide me to do this. thanks n regards Srikant The function you're looking for is Math.Ceiling. For example, ...Show All
Smart Device Development Help in UPDATE SQL command IN SQL Server for Mobile
I have a command line that works: oCmd.CommandText = "UPDATE prefs SET autoadd=" + ReaderParams .AutoAdd + "," + "decodebarcode=" + ReaderParams .DecodeBarcode + "," + "addunknown=" + ReaderParams .AddUnknown + "," + "addone=" + ReaderParams .AddOne + "," + "showdigits=" + ReaderParams .ShowDigits; and the following does not work: oCmd.CommandText = "UPDATE prefs SET autoadd=" + ReaderParams .AutoAdd + "," + "decodebarcode=" + ReaderParams .DecodeBarcode + "," + "addunknown=" + ReaderParams .AddUnknown + "," + "addone=&q ...Show All
Microsoft ISV Community Center Forums Creat CSV File
Hello All, I would like to take the following file (180 Pages) and turn it into a true CSV file. I am able to remove the uninteresting characters and insert commas before the port numbers. I then search the document for a comma and do a back space to get the the port number up on the same line as the IP address/host name. My Question is how do I make this macro continue through the whole document All Help is appreciated. BEFORE * + 144.32.1.10 mvsgw.MyCompany.com |___ 1025 network blackjack * + 144.32.3.254 ncc.MyCompany.com |___ 135 DCE endpoint resolution |___ 139 NETBIOS Session Service |___ 445 Microsoft-DS |___ 1025 network blackjack |___ 5168 TrendMicroNormalServer * + 144.32.4.244 h48mv31.MyCompany.com |___ 135 DCE e ...Show All
Smart Device Development How to connect to GPRS network from code?
When Internet Explorer is ran on my mobile phone it automatically connects to Orange GPRS network and I see a popup/hint on top of the screen saying "Connecting to GPRS...". I want to do the same in my application. Detect somehow that the network if available and just connect to it. I've looked in settings and iI think this is somehow connnected to modem connections but still I dont know how to start them from code. Any help/link will be appreciated. None. You need to convert code above from C++ to C#. If you don't know C++/don’t know how to convert/don't want to convert - OpenNetcf.org has a managed wrapper for connection manager. ...Show All
Visual Studio Team System What's the proper way of documenting our code?
In the past I have used Java and and placed header comments in my code so that javadoc could produce excellent documentation from the code. I have also use something called doxygen to document my C++ code to produce similar documentation for C/C++ code. From using Visual Studio 2005, I can tell you guys are doing or planning on something similar with .NET code. In VB.NET, when I type three consecutive ''', it automatically generates header comments. Same with C# when I type three consecutive ///. Unfortunately, C++/CLI doesn't have this feature. From the project settings, I can get Visual Studio 2005 to generate an XML document from these header comments. But this XML document is not very useful as a form of AP ...Show All
SharePoint Products and Technologies Developing a new feature? Or is there a better way?
Hello, at first: I am new to Sharepoint Services, ASP and MOSS 2007. Now: My task is to implement a function to a MOSS server. It's all about employees, who state their Leave Application (correct term for applying to take some days off I'm german ) and their approval by substitutes, supervisor and the HR department. After reading tons of information, I think I'm slowly getting the smaller pieces of the big picture MOSS 2007 and tried to think about a concept: I think, I have to create a "feature". Inside this I define a new list type. All this is XML yet. After that I develop some event handlers, for the calculations (days needed and days available for this employee) and in Visual Studio 2005 I have to implement a Sta ...Show All
Visual C++ faulted while dumping object
Hello, I' ve added #define _CRTDBG_MAP_ALLOC #include <stdlib.h> #include <crtdbg.h> in the "stdafx.h" Header and "_CrtDumpMemoryLeaks();" in my program. If I run and stop my program, I got the following error message in the output window: "Detected memory leaks! Dumping objects -> {62} client block at 0x003B3358, subtype c0, 64 bytes long. faulted while dumping object at $003B3358, 64 bytes long Object dump complete." If I set a memory breakpoint at that memory allocation number, the program doesn't break. Has someone an advice, how I can identify the memory leaking object Is it always the exact same adress Otherwise on the next run the leak might be ...Show All
Internet Explorer Development IE7 activeX Webbrowser control?
How can I use the IE7 webbrowser control in my visual basic (6) applications I had this exact same issue with a vb6 application i was updating. One difference I had was that the control worked just fine after the IE7 update from IE6, I was working with the control in my code. During a debug my application crashed, causing vb6 to shutdown. When I restarted the project, I got the "Class SHDocVwCtl.WebBrowser of control wboProfileOptions was not a loaded control class." error. I checked the class registration, it was still there, but the control was gone. I dont have an older version to install because the updates I was making to my app were to include the use of "SHDocVwCtl.WebBrowser" fo ...Show All
.NET Development IEnumerable.GetEnumerator()
Greetings, I have some questions on IEnumerable.GetEnumerator(): 1. Should each invocation return a distinct enumerator object 2. If so, should the enumerators keep their state in sync or independent of each other 3. If independent, can distinct enumerators (returned by the same method) enumerate the underlying collection in different orders MSDN Lib seems to have left these unspecified, so maybe it's all up to the method implementer, but since the interface is tied to foreach sematic, perhaps there are specific answers/rule for the interface If MSDN Lib specifies the answers to these, I'd be grateful if you can point me to the URL. Thanks for any info, Dasa The current version of th ...Show All
Visual Studio Express Editions An error about an error
Hi all, Sorry to bother you all yet again (I'll bet you're getting sick of me by now), but I have yet another odd question for you. When I run my program in debug mode (Press F5 in VB 2005), it comes up with an error message and highlights that exact piece of code. Here is the full block of code it picks up on, and the highlighted bit is both the error message it gives me, and the bit the debugger highlights. <System.Diagnostics.DebuggerNonUserCodeAttribute()> _ Public Property Signature_File() As Byte () Get Try Return CType ( Me ( Me .tableTime_In_Table.Signature_FileColumn), Byte ()) Catch e As System.InvalidCastException Throw New System.Data.StrongTypingException( "The value ...Show All
Visual C++ Smartbridge Alerts
I too am receiving the "entry point not found" message. I have very little technical knowledge and would appreciate assistance in any fashion. thanks. Helen McLaughlin Ok, I think I got it solved here. Here's what I found. After searching my system for files with PSAPI.dll in the name, it returned 4 files that were Verizon Online references and one of them had a subheading of SmartBridge. All 4 were an older date than my system/32 PSAPI.dll file. I renamed those 4 as PSAPIOLD.dll. Since each had different subheading names there were no conflicts. I restarted my system and the error message had departed. Hope this helps. Bob S. (viobass) ...Show All
Visual Basic Problems joining a String and Variant
I'm fairly new to this, and can't get past a simple task to create a new string from a Variant and a number. I'm trying to generate a list of (string) names which consist of a 2 or 3 letter club name joined to a digit such as 1,2 or 3. Sub Generate_team_list() Dim num_of_teams As Integer Dim row_counter As Integer Dim MyStr1 As String Dim MyStr2 As String row_counter = 1 For club_counter = 1 To number_of_clubs current_club = Range("Club_Names").Offset(club_counter - 1, 0).Value For team_counter = 1 To 3 MyStr1 = Application.WorksheetFunction.Text(team_counter, 0) MyStr2 = current_club Range("Starting_Cell").Offset(row_counter, 0).Value = MyStr1 & MyStr2 row_counter = row_c ...Show All
SharePoint Products and Technologies MOSS2007 standalone no search results
Hi I have done a standalone install and added a couple of users, a couple of sites and a couple of documents. Searcing for any of these returns nothing. The default content access account (NT authority\local service) has Full read permissions to all zones under 'Policy for web application' in Central admin. A crawl has been completed but the following warnings are in the crawler log: " http://csciisris2 The object was not found. (the item was deleted because it was either not found or the crawler was denied access to it) Local Office Sharepoint Server Sites". Similarly for sps://csciisris2 and sts://csciisris2 Additionally there are some gatherer warnings in the event logs: "The start address < ht ...Show All
