Carlos Enrique Figueroa's Q&A profile
Visual C# How to Deserialize Java Serialized object in C#?
I want to deserialize the java Serialized object. For this I write the following code: // Main Method [STAThread] static void Main() { try {Sample p = new Sample(); Stream s = System.IO.File.OpenRead(@"C:\test4.bin"); BinaryFormatter b = new BinaryFormatter(); p = (Sample)b.Deserialize(s); Console.WriteLine("I:" + p.name); Console.WriteLine("I:" + p.age); } catch (Exc ...Show All
.NET Development .NET avoiding function within event handler?
I'm pretty new to .NET i must admit, but i'm stumped by this. It's on a pocket pc but i dont see how that makes a difference. This is in regard to handling SerialPort DataReceived event. The event fires ok (well mostly sometimes it hangs up for a few seconds). "void onReceiveData(object sender, EventArgs e) { String str;   ...Show All
Visual Studio Team System TFS Rc installation : "error 28002. unknown error"
HEEEELLLLPPPPP.... I'm banging my head with this one... i'm trying to install the RC version, single server. all goes fine until, in the middle of the installation, the error pops-up. The msi log file : TfsGSSInit - Irrecoverable error: TF50604: There was an error getting identity information from Active Directory. 03/06/06 10:42:20 DDSet_Status: Process returned 6130 03/06/06 10:42:20 DDSet_Status: Found the matching error code f ...Show All
.NET Development MODI not working with Windows 2003 Server
Hi, We are developing an application which uses MODI 11.0 type library, which ships with the MS Office 2003, for OCR functionalities. Everything seems to be working fine with the development machines which are having Windows XP SP2. Now we want to install the application in our server machine which runs Windows 2003 Server OS (with SP1). But the MODI doesnt seem to be working in the server machine. Everytime we try running the OCR on a docume ...Show All
Visual J# Tooltip and Change Backround
How to make the toolip for example on button, then you are on button , it shows tooltip. and one more qestion How to change main form image by pressing for example button. You push the button, and the backround image changes. How to programme that Hi, To crate a tool tip for any JComponent, you need to use the setToolTipText method to set up a tool tip for the component. You can see the following code snippet : JButton jb = new JBu ...Show All
Visual Studio 2008 (Pre-release) How to expose an already instantiated service object in WCF
Iam trying to achieve something similar to CAO in .NET Remoting using WCF. Is there a way i can publish an already instantiated Service object I know i can expose a Singleton object like follows m_host = new ServiceHost (myService) m_host.AddServiceEndpoint( typeof ( IService ), binding, baseAddress); m_host.Open(); How can i do the same for a non-singleton Any leads is much appreciated. Thanks Scott, i t ...Show All
Windows Forms Converting the value of a textBox to an int
Hiya, i need to convert the value of a textbox to an Int For instance: while(i < tbValue) wont work because tbValue isnt an Int. say i had a counter and the user types a number in the textbox, and the textbox is called amount: int counter = 0; while(counter < amount) { counter++; } Im fairly certain theres a way to i can make amount an Int somehow, i just dont know how thanks, Atomican ...Show All
SQL Server how to include a sql database in a web service
i am using vs2005 and sql 2005 and i want to include a database in a webservice, how to do that and where are the items in the toolbox Hi, If you are looking to add a database to SqlExpress in a webservice application please have a look at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=276342&SiteID=1 posting which mentions that you can add a database by using "Add New Item...". Another ...Show All
.NET Development The common language runtime could not be loaded by xxx.XLS. Please contact your administrator for further assistance.
I faced the captioned error message after deploying my VSTO project suddenly, anyone know what's the reason (I can run my project in Debug mode successfully). Thanks, ...Show All
Visual C# What algorith does garbage collector uses,Why it is non -deteministic ????
Recently I faced an interview in which this question was asked "What algorithm garbage collector uses and why its non-deterministic " Please explain it... If you want even more info, check out the following episode of .NET Rocks. This was an interview with Chris Sells, one of the people who complained to Microsoft about the lack of clean-up optimization until the Dispose() pattern was implemented. http://www.dot ...Show All
Visual Studio Extending Designer Toolbox
Are there any extensibility kits/ packages available for extending/adding the following features in Visual Studio .NET 2005 - 1. Adding custom menu items (say e.g "View my Designer") to the menu bar that appears on right clicking a asp.net website project. 2. Invoking a designer page on clicking the "View my designer"menu item. 3. Add custom designer toolbox (similar to the existing Class Designer ...Show All
Visual Basic LOAD DATA IN A DATAGRID OR OTHER GRID VERY FAST (10763 Rows -Regs.)
What's the fastest form to load data in a DataGrid or other Grid The System Read a DataBase from a CD the old System take only 2 seconds, my System is te New System But take 2 minutes to load the registers in the Data Grid and is a Big Problem !!! 'Declarations Public cnTesis As New Connection Public cmTesis As New Command Public recTesis As New Recordset The Recordset is Open of this form : cnTesis.ConnectionString = strCad ...Show All
Visual C# Real time graphs
Hi, I need to build a application that shows a realtime graphs (like bandwidth ones) Does any one knows any component or .... to do it easy.... Thanks As I needed a bar graph, I doing it using a table and images.... Like, My value is 89% so in a table with 100% of width I print an image with 89% of width did youo get it Hope it help.. ...Show All
Visual Studio Tools for Office Saving word doc silently
From within a word doc project in VSTO, I am trying to create and save a word doc to the server without starting an instance of word. Something like this: Private Sub ThisDocument_Startup( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Startup Me .Range.Text = "Hello World" Me .SaveAs( "C:\Temp\WordDocTest.doc" ) End Sub Running this in my local visual studio projec ...Show All
Visual Studio Team System B3 Refresh Bug - Double click on word and try to type letters
Using VSTF Beta 3 Refresh. Created team project using CMMI process template. Created new requirement and typed a couple words in description field. Double-clicked on a word in the description field and then tried to type over top of it. Nothing happens; it doesn't display the letters being typed. You are welcome to let us know about issues here. We monitor this pretty regularly. You can also submit bugs at http://lab.msdn.m ...Show All
