Topics
-
-
- Leaders
- 6 replies
- 1.6k views
We have been receiving a lot of high capacity flash drives with bad memory in the upper parts of the drive. For a 16 GB flash drive, most would probably never notice it, but once you do, the drive may become unreadable and all the data is gone! One way we have been testing the drives is by copying just under 16 GB of photos and MP3s to it, then deleting them back off. But I'm a Developer! I want to develop something to do this instead! I created a simple form with a start button. When the button is clicked, there is a simple loop inside a Try statement that writes data using a StreamWriter object: Dim writer As New StreamWriter("F:\\filler.dat") Try While (True)…
Last reply by joe_pool_is, -
-
- 9 replies
- 1.5k views
Howdy folks. I've been searching and searching but have not found a suitable solution yet. My issue is that I have an array of bytes that is holding the data of a audio signal. What I want to do is simply measure the volume. Does anyone have a direction to point me in?? I would greatly appreciate the assist.
Last reply by techmanbd, -
-
- Administrators
- 5 replies
- 1k views
Is it possible to set up a (C# or VB) program to remotely reboot another machine (say a server). The Sys Admin asked about it and I have no clue where to even start looking for something like that. Thanks MTS
Last reply by SonicBoomAu, -
-
-
- Administrators
- 2 replies
- 795 views
I was thinking about how VB.NET auto-initializes its variables if not explicitly written to before being read, something that C# does not allow. The simplest example would be something like this: ' VB.NET: Public Sub MySub() Dim j As Integer MessageBox.Show(j.ToString) End Sub The equivalent in C# would not compile: // C#: public void MySub() { int j; MessageBox.Show(j.ToString()); } The compiler would complain about "Use of unassigned local variable 'j'" at the point where 'j.ToString()' is called. So I wondered what the VB.NET code would look like when viewing the IL. I had expected to find an explicit assignment of 'j' to 0, presumably cre…
Last reply by Mike_R, -
-
-
- Administrators
- 2 replies
- 922 views
Hi, I wanted to post in this category since I assume this is the most read discussion category, and the appropriate category for this thread is rarely read. The .Net 3.5 Beta Exams for ADO.Net and ASP.Net are open to the public! http://blogs.msdn.com/gerryo/archive/2008/04/02/asp-net-and-ado-net-beta-exams-extended.aspx Sgn up now, they are free! Also, the more test data they have, the higher the quality of the released tests and (hopefully) the higher the quality of developers who are certified.
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 11 replies
- 3.4k views
Hi, I am now trying deserialize my employee objects in my XML document into an instance of a class. Here is the class I wish to create an instance of: Public Class EmployeeAdder #Region "Declarations" Private _ID As Int32 = 0 Private _Name As String = String.Empty Private _ActivityID As Int32 = 0 #End Region #Region "Properties" Public Property ID() As Int32 Get Return _ID End Get Set(ByVal value As Int32) _ID = value End Set End Property Public Property Name() As String Get Return _Name End Get Set(ByVal value As String) _Name = value End Set …
Last reply by PlausiblyDamp, -
-
-
- Leaders
- 0 replies
- 6.6k views
Howdo, I've been working on this for a couple of days, I did a VB.NET example of this on a forum a few years ago, but C# presented me with a new challenge & it took a while to figure out. The Idea is to get hold of an open instance of IE ( IE7 in this case ) & grab hold of it's IHTMLDocument2 Interface, giving the ability to manipulate that external Internet Explorer window / grab it's url address, it's html, make it navigate elsewhere, etc... when this code is added to a project, you must make a reference to Microsoft.mshtml using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.…
Last reply by dynamic_sysop, -
-
- 1 reply
- 2.7k views
I am trying to write an application in VB.NET pulls information from an Oracle server and will write it, with other information, to a SQL database. We established a link between the SQL server and the Oracle db and can successfully use "OPENQUERY" to get data from Oracle via SQL. My problem is trying to do the same thing in VB.Net. I get this error: "Could not create an instance of OLE DB provider 'MSDAORA'" I wrote some lines of codes just to test the connection. It bombs out with the error message at the "ExecuteReader" statement Here is my code: (SQL_PROD10 is the linked server name) Imports System.Data Imports System.Data.OleDb Imports System.Data.SqlClient…
Last reply by Diesel, -
-
- Administrators
- 1 reply
- 748 views
I am trying to write a device driver, and I need to set the project's system link to /SUBSYSTEM:NATIVE (as opposed to WINDOWS or CONSOLE), but the option isn't under the drop down box. If I try to type it in myself, it just reverts back to /SUBSYSTEM/WINDOWS. The NATIVE option should be in the list inherently, but for some reason, it's not showing up on mine. Anybody know why?
Last reply by PlausiblyDamp, -
-
-
- Leaders
- 3 replies
- 886 views
I was wondering if it is proper to use the return in a void method to get of of the method as you would use exit sub in VB. It works I know that, but is it the proper way? For example VB private sub WWWW() if intL = 0 then exit sub ' other code here is intL not 0 End Sub private void WWWW() { if(intL == 0) { return; } // other code here if intL not 0 }
Last reply by snarfblam, -
-
-
- Administrators
- 3 replies
- 2.9k views
I know nothing of data structures so I am lost when it comes to even getting the code started. I do have the concept in mind of what I need to do. 1. Pass data to a buffer. 2. when the buffer becomes full dump the first in data 3. move all other data up 4. add new data to the end. 5. When data is needed from the buffer garb it from the end while it is still being written to the front. So there is my understanding of the circular buffer concept . I haven't really found an example I could understand what was being done. Dim delayBuff(9) as string Dim buffPos as integer = 0 Dim blnHasData as boolean = False Private Sub CBuffer(strData as string) Dim I as…
Last reply by ZeroEffect, -
-
-
- Administrators
- 2 replies
- 1.1k views
Hi, This is a subject I researched a while back and to honest shelved it. What I wanted to do was make my own user controls as I would normally do. But instead of referencing the user control in aspx page I would want to have a tab in the toolbox where my user controls are shown. So I could simply drag the control onto my webpage/application. Could somebody give me some ideas to start this off, if only some good web articles this would be great. Thanks, Dave.
Last reply by davearia, -
-
- 0 replies
- 797 views
Hi, I have a Web Service that until about hour was working out fine, but the changes I am making don't seems to show when I update the web reference in my application that is using it. Let me explain. I make two changes one will be to rename a public function and the second will be to rename a public enum. When I rebuild the web service and then go into the application that is using it you can see the function now has the new name. However the enum is still named as it was in the first place. I can delete the enum and it still shows up in the intellisense as if I had not deleted it. I added a structure to the web service class. I could access it fine and then wi…
Last reply by davearia, -
-
- Administrators
- 6 replies
- 1.5k views
Just a quick post to say hello. I have been a user of Xtreme VB Talk since Jul 2006. Since I am now moving to VS2005 Pro at work as well I thought I should expand over here as well. I am hoping to be as active here as I have been at the sister site and look forward to getting and giving help for .NET as well. Look forward to interacting with all of you over here at Xtreme .NET Talk.
Last reply by PlausiblyDamp, -
-
- 7 replies
- 11.7k views
All, I have a textrange object. I would like to add the textrange.text to a textbox, but I would like to limit the textrange to 100 characters. If the text is over a hundred, I would like to include the last word closest to 100 and add "...". I got as far as: If TxtRange.text.length > 100 Then End if I've just started researching this, but I posted here in case someone could provide a quick answer. Thanks. -gk
Last reply by aarathi, -
- 0 replies
- 1.2k views
I Have a Remote Admin Program i coded, and got A msn alert box. i just wanted to know how to make it so this i can customize the msn alert messagebox. This is the code above on the server side that will make the popup appear. If InStr(1, Data, "|MSN6ALERT|") <> 0 Then On Error Resume Next Dim Newalert As New cAlert Newalert.Message = Message Here Newalert.Title = "MSN 6.2 Style" Newalert.Link = True Newalert.sUrl = "http://www.google.com" Newalert.MSN6 Exit Sub End If And this is the code That Would Send It From The Client Side msg = "|MSN6ALERT|" SockMain.SendData msg so i want to make this app to be able to customize the messages from the client s…
Last reply by viruzman, -
- 2 replies
- 1.3k views
I have done work in the past with Multithreading in Java, so I always assumed it would be the same for C# (Well, not taking Syntax and methods into consideration). Anyhow, I have a website, which needs to validate a guest's e-mail. I have that working just fine. When the guest starts filling out my form, they enter all of their information and press a 'continue' button. At that moment, I use Javascript to use a post-behind to connect to the page, which does the actual e-mail validation. If their e-mail is valid, it is entered into a guest database. In order to prevent the guest from waiting for the post-behind page to validate their E-Mail address, which could…
Last reply by Fork501, -
- 5 replies
- 1.5k views
This has been driving me mad all day, thank goodness it's hometime. Basically I have a routine that validates an XML document, here is the code: Private Function ValidateXML(ByRef xmlDoc As XmlDocument, ByVal streamReader As StreamReader) As Boolean Dim buffer() As Byte = System.Text.ASCIIEncoding.ASCII.GetBytes(xmlDoc.InnerXml) Dim memstrm As New System.IO.MemoryStream(buffer) Dim xmlReader As New XmlTextReader(memstrm) memstrm.Close() Dim xmlVal As New XmlValidatingReader(xmlReader) xmlVal.Schemas.Add("urn:pleaseWork", Server.MapPath("XSD/AddEmployee.xsd")) xmlVal.ValidationType = ValidationType.Schema AddH…
Last reply by Diesel, -
- 2 replies
- 9k views
Is there a way to get my ASP responses to output to a <div> tag? In my code, if there is an error or if I just want to view the data, I simply write to the screen with Response.Write(data). The trouble is, this looks tacky! Expecially if your customer happens to see it before you have cleaned it up. I'd like to have the response write to a <div> tag, instead. Then, the <div> tag can be visible only while I am debugging. Also, if I ever have to do work on the code later, make the <div> tag visible again, and off I go!
Last reply by joe_pool_is, -
- 3 replies
- 1.2k views
I need to get IIS running on 2 separate test machines. One PC has been in the company for several years. When I Opened the IIS Console, I saw there was a website called "Sales Portal" running, using ASP.NET Version 1.0, and the IP Address under the identification was not reachable through PING. I *guess* this PC has a lot of old data that isn't even used anymore. The other PC has nothing set, but IIS is installed. I need to do testing on these two machines, and I'd like to know the fastest way of getting this done. Should I uninstall IIS on the old PC, then reinstall it? I'd guess that would wipe everything out, wouldn't it (Unless Microsoft doesn't clean out …
Last reply by Diesel,
-
Who's Online 0 Members, 0 Anonymous, 54 Guests (See full list)
- There are no registered users currently online