GWW2007's Q&A profile
Visual Studio Express Editions Registration Problem
Okay, so I've downloaded Visual Basic 2005 Express Edition and I tried to register. I got the "thank you for registering sql server 2005 email," but I can't find the registration key. Did I miss something Yes, Spotty is right. I got a free e-book on VB, as well as some pretty cool icons, a whole libary of images from Corbis, and some other freebies. I'd totally recommend registration - if you've got a fast connection, it's definitely worth it! Johannes ...Show All
Visual Basic ADO Stream Write wont work
Hi All I can t get ADODB Stream.write to work. I get Runtime error 3001. 'Arguments are of wrong type, are out of acceptable range, or are in conflict with one another' I use Writeline all the time but this is my first time writing binary. Any clues here is my test code Private Sub subStreamTest() Dim cnnLocal As New ADODB.Connection Dim stmStream As ADODB.Stream Dim strMcomDir As String Dim bufBuffer(3) As Variant Dim bytTest As Byte strMcomDir = "R:\NewDB\" & funDateString & ".tpf" bufBuffer(0) = &H5 bufBuffer(1) = &H2 bufBuffer(2) = &HCA Set stmStream = New ADODB.Stream stmStream.Type = adTypeBinary stmStream.Open bytTest = bufBuffer(2) stmStream.Write bufBuffer(2) ...Show All
Visual C# Use function from DLL file
Hi, I'm a beginning C# programmer and I'm writing an earlier written program(c++) in C#. I have a DLL file called K8062D.dll which has following functions: StartDevice Opens the communication link to the K8062 device StopDevice Closes the link to the K8062 device SetChannelCount(Count) Sets the maximum DMX channel in use SetData(Channel, Data) How can I call these functions from C# Best regards, Yannick Michael_Grumbach wrote: Do I just make sure the dll file is in the same directory, or do I put a reference to it in the code somewhere Putting Dll in the same directory as of your application is enough and you dont need to do anything. Best ...Show All
Visual Studio Team System Need a silent mode for MSTest to run unattended.
Is there some (undocumented ) way to run mstest silently from the command line Currently if a test raises an unhandled exception, mstest will open up an "Unhandled Exception" dialog box. This essentially prevents me from being able to run unattended through a list of tests via the command line. Hi Boris, I have confirmed that when I get this message box it is indeed due to an (unhandled) exception being raised by the app under test on a separate thread. That in itself is obviously a bug in the app under test and we're thankful for the Unit Test Framework for helping us find it :) The issue I have with VSTestHost's behavior in this case is that it raises a message box and halts the unattended exec ...Show All
Windows Forms DataBinding - enforce read
I got an edit dialog which has a tab control with multiple pages. On each page of the tab control are input elements like text boxes. Validation of the inputs should occur when the dialog is confirmed with the OK button, e.g. check for mandatory values. All input controls on the dialog are databound to an underlying class instance. The problem is that the databinding only seems to become active when the control becomes visible. So if the user opens the dialog, changes something on the first page and confirms the dialog, validation errors occur for the pages of the tab control he has not visited - mandatory values are supposed to be missing. The validation triggered by ValidateChildren triggered the validation of all the controls on the ...Show All
.NET Development get data from access and save it into a new excel file using vb 2005
Can some1 give me a small sample of how to do this Below is a very simple example: Dim AccessConn As New System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=c:\Test Files\db1 XP.mdb") AccessConn.Open() Dim AccessCommand As New System.Data.OleDb.OleDbCommand("SELECT * INTO [Excel 8.0;DATABASE=c:\Test Files\Book1.xls;HDR=NO;].[ExcelSheetName] from [AccessTableName]", AccessConn) AccessCommand.ExecuteNonQuery() AccessConn.Close() ...Show All
Visual C++ [OTP] EnumFontFamilyEx won't enumerate Tahoma
I'm trying to use the standard Tahoma font on Windows XP. When I call CreateFont() requesting "Tahoma", I get the bold version instead. When I call EnumFontFamiliesEx "Tahoma Bold" is enumerated, but not regular Tahoma. Yet when I call ChooseFont() Tahoma shows up as an option, both bold and not bolded. There is no problem using Tahoma in Wordpad. Here is what I get when enumerating: ... Georgia Franklin Gothic Medium Palatino Linotype Tahoma Bold Trebuchet MS Sylfaen Microsoft Sans Serif ... Here is my call to CreateFont(): CreateFont( nHeight, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, ANSI_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, DEF ...Show All
Visual Basic Position of double clicked item in listbox
As the code below shows, when I double click an item in a listbox the item is returned and displayed. What I need to know is what position in the listbox that item is stored. Private Sub ListBox11_Doubleclick( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox11.DoubleClick MsgBox(ListBox11.SelectedItem) End Sub Thanks Thanks Ken. The first method worked for me, but I'm sure I'll need what you suggested soon. Robert ...Show All
.NET Development reduce the time tring to connect tcpclient
hi, i'm building an app that searches diff host to see if they exist or not, the host are microprocessor on a car, so when they are in the area i can connect to them otherwise i cannot. but when i am trying to connect i takes to long, and during this i cant do anything else with my form is there a way to speed the try of connection up currently i use this in a loop: tcpclient micro = new tcpclient(); //start loop try {miro.connect(ipadress,portnr);} catch {//change ipadress} plz help thx Also, in V2.0 of the framework, there is an overload to TcpClient.BeginConnect() that takes an array of IPAddresses. It will try to connect to each of the addresses you specified and ...Show All
Smart Device Development Treo emulator test phone call problem
We are trying to make some test call from the treo 700w emulator. In our application we have catching the phone call event from the device and doing some db insertion. But when we try to call from the emulator we get the following error “The phone has not been activated. Contact your mobile service provider to activate your phone.” Please let us know how we can surpass this message and do some test call from the treo emulator. One thing is clear.I am developing for windows mobile 5.0 devices.I have developed a version of my application for smart phone as well as pocket pc.Treo 700w is one of the devices which our client is going to be use.I think this is the best possible forum where I should get m ...Show All
Visual C# Application design
Hello everyone! When you start a new application in C# do you create a WindowsApplication project, add your controls in the designer, double click them and enter what should happend in the eventhandler or how do you design your applications I've searched for simple tips on application design but all I find is advanced documents for enterprise solutions. I want simple tips like, use the Command pattern for all the actions in the application, etc. Thanks in advance! -Martin hi, those are some videos to give you a good start, but you still need a good book for better understand , http://msdn.microsoft.com/vstudio/express/visualcsharp/learning/default.aspx one more thing double click the control will provide you the default ev ...Show All
.NET Development MSXML 6.0 parser is not supported by the Processor type
Hi All, I'm caught in a huge problem. I am using Windows server 2003 (64 bit) and Intel XEON (3 GHz) processor with 8 GB Ram. While installing the MSXML6.msi (downloaded from microsoft) I am getting this type of message "MSXML 6.0 parser is not supported by the Processor type" and the installation is terminated. Can anyone please tell me why this error is coming and what is the outcomes. Thanx in advance Bhaskar Joardar Have you tried msxml6_ia64.msi or msxml6_x64.msi instead of msxml6.msi Sounds more what you need for a 64 bit system (although I have no clue which one is right for the system you describe). ...Show All
Visual Studio Team System Can only connect VS to Team Foundation Server from server machine
Fresh install, 2 tier server config, one App and one Data. Service pack 1 beta. We have a strange problem regarding VS TFS: When we connect from the local machine using VS/Team Explorer everything works correctly. All functionality is functioning as expected. When we try to connect from another machine, in the same domain, from the same domain account (domain admin) we get the following error when we try to add the server to Visual Studio: TF31002: Unable to connect to this Team Foundation Server: ........ This is with the exact same installation media for the team explorer software, on the local network with the TFS server. When we try to open the web service manually we are presented with it's methods, so that lead us to beli ...Show All
.NET Development passing objects with webServices
i'm trying to write a web service that will store objects that are created on the clients. clients will send the objects to the server and the server will save them then, when one client calls the server will pass the object to the client again. How can i do that HI. yes. you must invoke your classes's method through WebMethod. but ,it is a good way. If your webmethod design by coarse grain way. the client just collectes Data and does some DataValidating, then post the data to server , then logic process. just lkie webform post a formdata. except for it use DataTransferObject (DTO) than using Form Input Data Element. by the way , if you want your application can deploy easily like webappliction. the logic beside in Server ...Show All
Visual Studio Tools for Office How to get VSTO.
I am a college graduate with no money. I use Visual C# Express editions. I am sick of using VBA. I want to use VSTO but it requires an expensive Visual Studio version. Is there any way I can get my hands on it One thought, if you're interested in the VSTO 2005 SE (Add-ins): I think you can download a trial version of Visual Studio, and perhaps install VSTO 2005 SE on that. But you can't get the full VSTO for document-level projects. ...Show All
