Joffies's Q&A profile
.NET Development Service Pack for .NET Framework 2
Does any of the Microsoft guys know when approximately should we wait for the Service Pack 1 for the .NET Framework 2 I'm specifically interested to override this problem: http://support.microsoft.com/kb/917952 Thanks As far as things needing to be patched for .NET Framework 2... I have .NET 1.1 and .NET 2.0 installed on PCs running XP Pro, IIS v5.1. I get a dialog box with the following error message (I have noticed this on two different machines, both at home and work), right before shutdown (screen has already gone from blue to black): aspnet_state.exe. Application Error. The instruction at 0x6a2a2fec referenced memory at 0x0000000c could not be "read". Click "OK" to end program. Cli ...Show All
Software Development for Windows Vista Visual Basic 2005 + directshowlib.net
Hello, Beginer here.. Using VisualBasic2005 Express and the Directshow lib from sourceforge Im trying to Hook up the IVMR interfaces to the vmr9 Object and seem to hit a wall. How do I set them, in particular, the IVMRMixerControl9 Any Ideas Thanks ___________________________ Public Class Form1 Dim graph As FilterGraph Dim monitor As IVideoWindow Dim mech As IFilterGraph2 Dim master As IMediaControl Dim posi As IMediaPosition Dim Mixer As IVMRMixerControl9 Dim Mixcon As VideoMixingRenderer9 Dim f As IVMRMixerControl9 Dim mpin As IMixerPinConfig2 Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load &n ...Show All
Visual Basic Problem in using Try/Catch/Finally
A textbox(T_TextBox) is bound to a float-type number in a database. The innitial value of the textbox is from that column of the database. I used these codes in my program: Dim T as Double Try T = Double.Parse(T_TextBox.text) Catch MsgBox("Please enter a number for T.") Finally End Try The problem is: every time before I run the program, a message box saying "Please enter a number of T." shows up. This problem only happens at the very beggining. When I change the text later (I select another number from the database, and this is done through a combobox), this message does NOT show up. Anyone knows how to get rid of the msgbox at the begging Thanks, Lili I like TryPar ...Show All
Visual Studio Team System CTP5 Schema Compare Errors
Hi I have installed CTP 5 and am having problems comparing the schema of two databases. I have tried altering the schema compare options and also tried using different databases on different platforms to no avail. This did work for me using CTP 4 but now Visual Studio errors and wants to close. I have included the error dump below and have sent several error requests to you. I would appreciate any help you can give on this. AppName: devenv.exe AppVer: 8.0.50727.42 AppStamp:4333e699 ModName: kernel32.dll ModVer: 5.2.3790.2756 ModStamp:44c60f39 fDebug: 0 Offset: 00015e02 Hi Rob, We would expect that you should get the error message telling the reason why schema compare would not wor ...Show All
Software Development for Windows Vista How to start process in session before user logs on?
I have a need to start a process in a session before the user logons on. On XP I used a Windows Logon Notification Package to do this. When a new session was created, Winlogon.exe in that new session called my WLNP and it was able to start the process before the user logged on. The process is used to support smart card logons for that session. I'm trying to find out how to do something similar on Vista. I know logon notification packages are no longer supported. I know how to write a service to get session creation notification, but I don't know how to start a process in the new session before the user logs on. Is there a function I can use to start a process in another session If so, I could have my session tracking sevice start th ...Show All
.NET Development Problem with decrypting data
I seem to have a problem with RSACryptoServiceProvider. I use it to encrypt a password that's being stored into the database. The encryption is done in a method called EncrtyptPassword: protected override byte [] EncryptPassword( byte [] password) { byte [] theResult; RSACryptoServiceProvider theRsa = new RSACryptoServiceProvider (); theResult = theRsa.Encrypt(password, false ); theRsa = null ; return theResult; } The decryption is done in a method called DecrtyptPassword: protected override byte [] DecryptPassword( byte [] encodedPassword) { byte [] theResult; RSACryptoServiceProvider theRsa = new RSACryptoServiceProvider (); // Exception is thrown at the next line ...Show All
SQL Server SQLCE team: Call to Get___ methods entail boxing?
Greetings - It appears in tests that the calls to the type specific Get___ [e.g. GetInt32()] methods of the System.Data.SqlCeClient.SqlCeResultSet type result in an internal unboxing from some internal storage of values. I've been calling these methods diligently to avoid the boxing tax... Can you confirm this behavior If this is the case, will you be improving the internals or would it be better for me to wrap the native interface myself to avoid this -rory That would be easier - but performance is important. I'm using the SqlCeResultSet object as a live cursor to the in-proc database... otherwise the DataSet/DataAdapter methods make a second copy, wasting memory and degrading performance. ...Show All
Visual Studio Express Editions If...Then for an image
I don't know if I'm jsut doing something stupid wrong, but for some reason, I can't get this to work. I want something like... If PictureBox1.Image is My.Resources.picture Then PictureBox2.Image = PictureBox1.Image End If The problem lies in the If statement. It doesn't seem to register. Basically, I want a way to say "If this picture box is of this image then set another picture box to have the same image." Dave299 wrote: This seems to work: Dim Image1 As Image = My.Resources.picture Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click PictureBox1.Image = Image1 End Su ...Show All
Visual Basic i am getting an exception
i am getting this exception when i try to run my application... i am getting it for a text box on my report that is supposed to be getting a value from an access database. can any explain to me what it means and give any suggestions on how to fix it An error occurred creating the form. See Exception.InnerException for details. The error is: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. looks like you do not have permission for what you are trying to do. Do you know where this error comes from within the code what are you trying to do at the time of this error be sure you are c ...Show All
Visual C++ Can we please get a New Forum
I think a lot of people have questions that involve the microsoft visual C++ .net product that you feel is off topic. We are programming in Microsoft C++ and need a central place to get help from others doing the same. C++ seems to be the red headed step child of microsoft... Hardly any documentation on how to do anything in c++ officially exists; where as tons of information exists for your other languages. We need a place we can pick the brains of others that is centrally located (and hopefully getting a bone or two from microsoft staff willing to give an answer). Telling people this is off topic 200 times a day must mean there is a place for that topic missing in your forums. Wil R. wrote: ...Show All
Visual Studio Missing tools in class designer toolbox
Hello and thanks for any help you can give me with this problem. I'm using VS Professional and was having the Class designer load failuer discussed here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=98590&SiteID=1 . I followed the steps posted to remove and reload the correct version of the dll files. The Class designer loads but when I create a new class library project the class designer toolbox has only 3 items all named class. I've dragged all three items into the design area and each is actually a class object. On another work machine I have VS Prof edition installed and the toolbox also has: enum, interface, abstact class, struct, delegate, etc. How can I get the other tools loaded When right click in the tool box ...Show All
Visual C# Need to make my own COM server with C#
Hi. I've tried to search, but search results on word COM at microsoft.com are amazing. Tell me please, where can I find any tutorial or example to build COM server in C# (.NET 2.0) I've found this http://my.execpc.com/~gopalan/dotnet/classic_com/com.net_quoteserver.html but it not helps to me. A COM server is simply a COM class that provides services to another component (the COM client). You create a C# COM class by creating a normal class and attributing it with at least ComVisible . You should also use Guid to specify a unique identifier. Furthermore you should create a COM-visible interface to expose to COM. The class must implement this interface and the interface can not expose non-CO ...Show All
Visual Studio Tools for Office Exception from Form.ShowInTaskbar=true
Hi, i'm working with VSTO2005 and Outlook 2003. If the user clicks on a menubutton i show a WindowsForm with ShowInTaskbar=true. If the user hits the minimize button the form is minimized to the system tray: private void TasklistForm_Resize( object sender, EventArgs e) { if ( this .WindowState == FormWindowState .Minimized) { this .ShowInTaskbar = false ; this ._NotifyIcon.Visible = true ; } } If the user selects the Show button of the contextmenu of the NotifyIcon, the following code is executed: void Show_Click( object sender, EventArgs e) { this ._NotifyIcon.Visible = false ; this .ShowInTaskbar = true ; this .WindowState = FormWindowState .Maximized; } But in the Line this .S ...Show All
.NET Development pleas help me
Hi, Below is the code i am trying to execute against MSAccess database to return a dataset. And i get the error "An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll" private void Display_Click(object sender, System.EventArgs e) { string strSql; string strCon; strCon = "Provider = Microsoft.Jet.OLEDB.4.0;" + "Data Source = D:\\cc\\c#prog\\10\\student.mdb"; OleDbConnection con=new OleDbConnection(strCon); con.Open(); string s= textBox1.Text; strSql = "Select name ,stno,ave,sex,unit"+" From stTable"+ "WHERE name = @s"; OleDbDataAdapter da=new OleDbDataAdapter(strSql, con); ...Show All
Windows Forms Creating A Simple Send And Receive Serial Connection
Hey guys, I'm using the C# language in Visual Studio 2005 and have created a send and receive windows form. I've connected an RS-232 serial cable between 2 laptops. I've completed the codes here's how it works... From laptop 1's Windows form, I will open the serial port, types a string of message in the textbox and using the "send" button I will transmit this string of message across the RS-232 cable to laptop 2's Windows Form. To view the received message, I will open the laptop 2's Windows Form's serial port and click the "receive" button. The message sent by laptop 1's Windows Form is thus displayed in the textbox of laptop 2's Windows Form. However, I would like to receive the message of ...Show All
