fulish1's Q&A profile
Visual Studio Express Editions How to make a search box in an application
Hi. I have a database that has a table named "Main", this table has 4 elements "ID, Blue Number, Year, Description" . What i need is how can i make a form that has only a search box to search using any given blue number, and once the blue number is entered into the text box the program will search the database for all other elemnts to that blue number. Anyone can help plz Here I am ... A couple of problems...First get rid of the 'Do loop' and second... Set your connection string: Dim MyConnection As New OleDb.OleDbConnection (" Provider = Microsoft.Jet.OLEDB.4.0 ; Data Source = C:\mydatabase.mdb ; User Id = admin ; Password = ;") instanti ...Show All
Visual C# Execute program with code
How can I start a program such as cmd.exe, notepad.exe, etc. by writing code. Like the P/Invoke of executables maybe... Stevo you could just do this: System.Diagnostics.Process.Start(" application "); instead of creating another instance of an object and giving it into the Process class Start method. you could use the ProcessStartInfo class to further customize the way the process should/can be ran: http://msdn2.microsoft.com/en-us/library/system.diagnostics.processstartinfo.aspx ...Show All
Visual Studio Express Editions USB port
Hey guys, I've been searching for a while now about how can i connect to the USB port using C# but i found nothing so if any one here knows how can i do it can he share it with us. Hi, If your cell phone has intalled windows CE, you can use Microsoft ActiveSync. Otherwise, you must contact your cell phone provider with this issue. Thank you ...Show All
.NET Development BinaryReader.PeekChar fails when checking for end of file
VB.NET 2005 - Beta 2 I create a new filestream and then a binaryreader from that filestream. I then loop doing a ReadByte until PeekChar = -1. On one file in particular that I am reading, somewhere while reading the file (it may be at the end of file, but I am not sure) I get the exception message: The output char buffer is too small to contain the decoded characters, encoding 'Unicode (UTF-8)' fallback 'System.Text.DecoderReplacementFallback'. Any idea why this is occurring and how to get around it Here's the code: Dim strLine As String Dim fs As FileStream Dim br As BinaryReader Dim newByte As Byte Dim blnEOL As Boolean fs = New FileStream(fiTemp.FullName.ToString, FileMode.O ...Show All
.NET Development Modify System.Exception in SetILFunctionBody
I am wondering if I can get some help on this. We have working "Proxy" that is invoked via insertion into methods and gathers all the calling arguments, etc. and passes to a handler. We are using the SetILFunctionBody during JIT compilation. It works fine for 1.1, but in 2.0 ONLY works when using LoaderOptimization other than SingleHost when hooking corlib methods such as the System.Exception .ctor. We are hooking many methods - all NON core methods work well. I have come to the conclusion that it has to do with Domain Neutrality of mscorlib (only) being in the shared domain. So, my questions are this: Other than the LoaderOptimizationAttribute OR the args to the CorRuntimeBindEx to load the CLR - how can one override the Loade ...Show All
Visual Studio 2008 (Pre-release) Why can I not see the wsdl file?
Hello friends. Well, when I self-host services and enable mex of course, I can see the wsdl file. However when I host it on IIS7, even the most basic sample, I can host it and I can use svcutil to download metadata and everything, but when I click on the URL for the wsdl file, the page gives me error and I can't get to wsdl file. Did anyone have the same problem as I do Is there any solution for this Thank you. Sorry guys, I got it working. Well the problem was, when I accessed svc file, it gave me the address where the wsdl file is. Instead of "localhost", it gave me "computer name" on the address. So the error I was getting was, it cannot look up the ipaddress of "computer name" and DNS server gave back the&nbs ...Show All
Visual C++ C++/CLI managed code calling methods on unmanaged C++ classes call incorrect functions
Hi, We are doing a transition project where we are wrapping unmanaged C++ code with C++/CLI managed classes. The various methods and properties on a given managed wrapper class are mostly just pass-through calls to the wrapped C++ class. Mostly this works fine. Sometimes, however, the call from the managed code ends up in the wrong C++ function. IOW: void ManagedMethod1( void ) { m_pUnmanagedObject->Func1(); } actually calls pUnmanagedObject->Func20(). So far, it seems that every time this happens, the called method on the UNmanaged C++ class is declared "virtual"; it also seems that the incorrect method that is actually called is also declared virtual. I have tried in one or two situations to change the leg ...Show All
Visual Studio 2008 (Pre-release) O/R Frameworks and private vs. protected visibility - please use protected
Hi there, I have a general request to the LINQ team as well as the Databinding Teams. As a VSIP Partner we are always extending the MS Frameworks - just like the company customers do. Therefore it would be helpful if private members could be changes to protected members. Thank you very much. I understand your desire to modify the framework. Unfortunately, exposing implementation details like this is difficult since it increases the testing cost and impares our ability to fix or modify the implementation in future releases. ...Show All
Visual C++ Bitwise << and floats
Hi! Trying to read all the bits in a float and write them to a string by doing something like: for ( unsigned int Iterator = 0 ; Iterator < 32 ; Iterator++ ) { if ( ( unsigned int )FromFloat & ( unsigned int ) 0x80000000 ) ToString[ Iterator ] = '1' ; else ToString[ Iterator ] = '0' ; ( unsigned int )FromFloat <<= 1 ; } The actual problem is this: error C2106: '<<=' : left operand must be l-value. Now I can't even begin to see why the compiler doesn't think it can write to "( unsigned int )FromFloat". And skipping the type casting is even worse as it seems bitwise operations are illegal on floats. TIA! , Espen Thanx for your help. ...Show All
Visual Studio 2008 (Pre-release) Databinding not working in 1st XAML test app
Databinding not working in 1 st XAML test app using code from: Get Started Using Windows Presentation Foundation http://msdn2.microsoft.com/en-us/library/ms752299.aspx . I went through the tutorial step by step and re-pasted the code several times to make sure I didn’t miss anything. Databinding works in the fist page when the app loads as I can see items in the list. But when I select an item from the list and click on the button to load the 2 nd page, all the code seems to execute OK but no databinding takes place. I’m stumped at where and how to start trouble shooting this. Although I’m using vb, I found code in c# at: C:\Program Files\Microsoft SDKs\Microsoft SDKs\Windows\v6.0\Samples\Demos\Ex ...Show All
.NET Development Working with FtpWebRequest and Special Characters
Hi, I have been working with FtpWebRequest perfectly, downloading, uploading, etc., until I found myself into trouble when the file name has special characters like this: Escnoqqwna#.jpg and it just doesn't work, no matter what, I always get the "error 550 file unavailable" when trying to download, so I tried to rename the file and trying to access the file name with httputility.urlencode(str), but I can't still modify the name so I can download it. Dim fReq As FtpWebRequest = WebRequest.Create( ftp://192.168.254.1/2203/Escnoqqwna#.jpg ) fReq.Credentials = New NetworkCredential( "XXXXX" , "XXXXXX" ) fReq.Method = WebRequestMethods.Ftp.Rename fReq.RenameTo = " ftp://192.168.254.1/2203/Es ...Show All
Windows Forms Data grid Problem Master/Detail update
Hi Guys i am new to vb.net and i am using visual studio 2003. I have created a master detail relationship between two tables. My problem is i am not able to update the changes. I am pasting the code please help me. Imports System.Data Imports System.Data.SqlClient Imports System.Configuration Public Class AsnEdit Inherits System.Windows.Forms.Form Dim cn As New SqlConnection(ConfigurationSettings.AppSettings("constring")) 'OleDbConnection i Dim cmd As New SqlCommand("Select * from asnhdr_sql", cn) Dim da As New SqlDataAdapter(cmd) Dim ds As New DataSet Private Sub AsnEdit_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load da.Fill(ds, "asnhdr_s ...Show All
Smart Device Development Restoring Windows Mobile AutoPlay defaults
I'm sorry if this is not the correct forum for this topic, I searched and could not find a forum devoted to Windows Mobile users. I had an Mpeg clip, and my windows media player wouldn't play it due to it being divix. I installed a player and it set itself as the defualt player for wmv, mp3, wma and mpegs. I have since uninstalled it and now I can't play mp3's as ringtones on my phone, or listen to them by clicking on them in the file browser. It tries to startup the uninstalled player. Does anyone know how I might set windows media player back to the default player If there are forums on Microsofts website that this should be placed in please let me know so I can move it there if I need to. Thanks in advance! Scionwest ...Show All
SQL Server Error 1418 and Good Basic Setup Guide
Hi, I'm new to DB Mirroring, and I am trying to get it going in a test enviroment between two SQL 2005 Dev Servers. I have followed documentation that I have found but cannot get past a 1418 error when establishing a connection between the servers initially. Does anyone know of any good step by step guides that I could look at, in case I have missed something stupid. Thanks in advance Stupots Why you use differential ports 5022 and 5023 You sets the partner connectionon 5022 for all partners (it looks like), but one of the partners endpoint on 5023 I see no requirement to do that... I use 5022 for all partners and witness, and it works fine! Torsten ...Show All
Visual Studio Forcing a clean build - especially for Unit test DLL's
G'day, On of the problems I'm finding frustrating to resolve is how to do the equivelant of the /clean project command in the GUI build process. "C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\Devenv.exe" /Clean /project UnitTest C:\Data\Customers\xyz\Development\TheSolution.sln I know there is a Solution explorer right click option to "clean". But I really want to be able to switch that on perminantly for a project, so I can just build/debug it an know that all the latest files are being used. This seem particularly critical for Unit test DLL's for instance. I've had a snoop around the Pre-Build Events for Visual Basic solutions, but the help doesn't seem to give enough examples for me to work out ...Show All
