Answer Questions
Roose ObjectInputStream - cast exception
Hi; I make the call: ObjectInputStream ois = new ObjectInputStream ( new FileInputStream (serFile)); Document correctDoc = ( Document ) ois.readObject(); And get the exception: 1) testTemplates(net.windward.format.wordml.test.TestWordMLParser)java.lang.ClassCastException: Unable to cast object of type 'System.Byte[]' to type 'System.Object[]'. at java.io.ObjectInputStream.fillArray(Object obj, Int32 len, Class elemType) & ...Show All
Roberto Sonnino - MSP Why is the J# Redistributable package needed?
Hi! Why is the J# Redistributable Package needed to run a J# application Or can I just redistribute some assemblies For example, if I develop an application in Borland Delphi using WinForms, I can compile this application to an exe file. This exe file can be executed on any computer that has the .Net Runtime Framework installed. No Delphi .Net Redistributable Package exists. If I develop an application in Dephi using the VCL.NET api all I ha ...Show All
shaht Using jxl.jar with VJ++
Hello, I have a problem. Can any one plz help. I am using VJ++ to read and write Excel Files. Is there a good API which can help me After searcing, i found jxl.jar. but when i use it with VJ++, i get the following error. java.lang.NoClassDefFoundError can u plz help me Here is the code: package com.netech.rf.lsr; import java.io.File; import jxl.write.WriteException; import jxl.Workbook; import jxl.write.WritableWorkbook; import jxl.write.Writabl ...Show All
Artur82 Enterprise Mobile Apps: Java, J# or C#?
Hello sirs., First of all, sorry for my English, I'm brazilian. I am a PHP programmer from about 6 years and last year I founded a company (Auriumsoft LTDA - www.auriumsoft.com.br) focused to develop Mobile App. The fact is that I'm lost of what language and plataform to choose. I even thought in choosing C++, but I have a lot of hurry, so this is impossible. What do I want to do - Develop enterprise mobile applications for Pocket PC, its desk ...Show All
Ste2006 Shuffle
Is there a shuffle-method for System.Collections.Generic.List like the java.util.Collections.shuffle() One of the implementation is GNU Classpath. See the following page. http://cvs.savannah.gnu.org/viewcvs/classpath/java/util/Collections.java root=classpath&view=markup I have never seen it for the .NET. But you can probably write your own. It should only b ...Show All
Mazen Nahdi Problem with first program.
Im working on J# Express. Made first program. There is a button, the text label and the text box. When im writing in text box, label shows "writing", when i press the button, text box i cleared and the label shows Click x (where x is how many times i pushed the button). All working, but after cliking, text box is clear, x is increasing value, but the label still shows "writing". After second clicking it changes. The button co ...Show All
Zhila unhandeled exception and sql connection problem
Ok, i actually think I have two problems. I'm trying to connect to my websites mysql database and I'm fairly certain that im putting in the url wrong as its the first time I've ever tryed to use a database from inside an application. I'm also getting this error at the "stmt = con.createStatement();" line in the below code. "An unhandled exception of type 'System.NullReferenceException' occurred in TerreDominion.exe Additional informat ...Show All
Lakshmi Kanth Return a class in a get-method
How do I return a userdefined classtype (other than Object) in a get-method It is easy in java, but in V J# public class WhatEver { private MyClass myClass; public WhatEver() { myClass = new MyClass(); } public MyClass getMyClass() { return myClass; } } You might misunderstand Ramakrishna's reply. For example, new System.Collections.Gener ...Show All
Azeem Khan timer event using J#
Hello. I'm a C# programer, so I don't know alot about java events. I'm trying to create a Console project, and use the System.Timers.Timer object. I can't sign to an event (Elapsed in this case) using the += operator, so how can i sign to the event Hi, J# syntax is bit different here. For each event it exposes a add_XXXXX() method. Following code snippet should work for you... System .Timers. Timer timer1 = new Syst ...Show All
amed Convert System.Drawing.Bitmap to awt.Image?
Hi guys, I am porting some Microsoft J++ code to J#. Is there a simple, efficient way to convert a System.Drawing.Bitmap to a awt.Image object One of the easy way is saving System.Drawing.Bitmap object as BMP. After that you can create java.awt.Image object using Toolkit.createImage(byte[]) or Toolkit.getImage(String filename) as described below. import System.Drawing.*; import System.Drawing.Imaging.*; import System.IO.*; import java ...Show All
emanon Generating XML documentation for J#
I'm trying to port a core library written in Java to J#. It has worked well so far. But now I need to create .NET compatible documentation for this library, and I'm having problems. I know I can make Visual Studio 2005 generate an XML documentation file for my vjsproj, but I need to do this from a command-line build environment. I've been playing with MSBUILD, but I just can't seem to find the proper incantation to make it cre ...Show All
Lila44602 performance difference in .NET 1.0 and .NET 2.0
I recently upgraded a sockets application from .NET 1.1 to .NET 2.0. I found that the getByName method on the INetAddress class takes several times longer to execute under .NET 2.0 than it did in .NET 1.1. That is INetAddress.getByName("10.0.0.1") is a MUCH costlier operation under 2.0. Any suggestions on how best to go about 'recovering' the lost performance would be appreciated. Currently, I am caching the resolution, but it ...Show All
Jakob Ehn Welcome!
Welcome to the Visual J# forum. My name is Brian Keller, and I am the product manager for Visual J#. Please post your questions here and we'll try to answer them as quickly as we can. Cheers - Brian Keller Product Manager Visual J# I'm working at north europes largest cancer hospital as a programmer in Oslo Norway. I received my MVP award while I was a computer science student. I have been working for 6 months now. My supervisor at my un ...Show All
Ryan Wade axWebBrowser
I have this problem in vusal j#, C:\Work\Form1.jsl(92): Cannot find method 'Navigate(String)' in 'AxSHDocVw.AxWebBrowser' I have no clue how to fix this, the program works on my friends comp but not mine, I'm running win xp sp2 with zone alarm security suite installed. Please reply -- Thanks Ok, so what I did was open cmd, and I typed cd C:\ C:\> aximp c:\windows\system32\shdocvw.dll but it then tells me " 'aximp' is no ...Show All
pippyn VS.NET B2 - Object Test Bench
Hey, I was using Object test bench on Beta1 and that is really amazin feature. I use Beta2 now and I cant use Object Test Bench. In some project it is working.. but others dont include object test bench. I didnt understand what is wrong Will this restriction ever change I usually have multi-project solutions, and my startup project is usually a very thin client that uses objects in my other projects. Thanks, Todd ...Show All
