Answer Questions
HDo Rebuild Issue with Object Test Bench
I am able to create an instance of a class in the Object Test Bench. But everytime I attempt to invoke a method (even an empty void method) of the class, the tool asks me to rebuild it, after which it resets the class and does not execute the method. It does this even though I have not modified the code in any way. I try to execute the method right after I create the instance. This seems to happen if you have multiple projec ...Show All
ezcode Assembly info Attributes
Hi, I am looking at accessing the attributes that you can set in the AssembyInfo file ( I am attempting to do Soup to Nuts lab 5 using Visual J# ) there is code written in VB and C# to access these events, the closest I can come up with, with the help of Instant J# converter is: Assembly asbly = Assembly.GetExecutingAssembly(); System.Object[] attrs = asbly.GetCustomAttributes( true ); System.Collections.IEnumerator e1 = attrs.Get ...Show All
Miccysoft using swing package in J# Browser Control
When I just use awt package, my program runs well. But when I change a awt control Label to swing control JLabel, nothing is displayed and I got "A exception java.lang.securityException occurred in the J# Browser Control." message. Can Anyone help me (I have added the reference to VJSSupUILib ,and my security policy setting is "Area","Local Intranet","Everything".) When I use strong name in my sec ...Show All
J-Thread Problem with File.createTempFile() under IIS 6
Hi; When running an ASP .NET app under IIS 6.0 on Win 2003, I can do the following: String jname = Request.PhysicalApplicationPath + "images\\java_" + fn + ".txt"; java.io.FileOutputStream fos = new java.io.FileOutputStream(jname); fos.write(data2); fos.close(); And it gives the created file the correct permissions (based on permissions in that directory, ASP .NET, ...Show All
G_Mahajan importing classes across projects
Hi, I can't seem to find the right settings to do something very simple. I have one solution with two projects, both of which are windows executable output. I want one project to be able to import classes that are part of the other project. I get compiler error vjs1161 no matter what I add to the references path. Can anyone tell me what I'm missing As an example, consider the projects to be a game and a map editor f ...Show All
LearnSqlServer.com An unhandled exception of type 'java.lang.NoSuchMethodError' occurred in vjslib.dll
I receive the following error in a vb.net app. An unhandled exception of type 'java.lang.NoSuchMethodError' occurred in vjslib.dll. I am referecing vjslib.dll and two other wrapper dlls. The two other wrapper dlls are provided by a vendor. The code builds without error. However, if I try and access a method/function/property within the dlls during runtime, I get the error above. I can also navigate to t ...Show All
VishalKulkarni v2.0 Bugs
Just installed .NET v2.0 and J# v2.0. Boy, what a disappointment. Socket.getLocalAddress() returns 0.0.0.0 for a TCP outbound connection (v1.1 works correctly). I would guess it doesn't work right for Sockets returned from ServerSocket.accept(). I don't have time to debug Microsoft's software for them, however. System.getProperty("java.vendor"), System.getProperty("java.version"), and System.getProperty("java.class.version") ...Show All
No name supplied String to int
Hi, Say I have a String that equals "9+9". Is there anyway that I can make the computer do that calculation and store the answer into a double or integer value What I mean is, is there some method that would take a String, read it, and do the calculation that the String value contains Thanks! No. There is no ready method that would parse string "9+9" to an equasion. you must write i ...Show All
Gideon Schlen 64 bit integer support
Lets say you have a function which accepts a 64 bit unsigned int. In my case this function was written in C++/CLI as a part of a managed wrapper. I am having problems though. It seems the compiler does not do implicit casting for 64 bit values. Here are some examples (in all cases the input is a System.Int64 value): f1(1 ); // This does not work because it think's 1 is an int and therefore thinks I'm trying to reference a wrong function. f1(( ...Show All
Shrish TreeMap and TreeSet bug
Hi I believe you have a severe bug in java.util.AbstractTreeMapImpl that is effecting both java.util.TreeMap and java.util.TreeSet. This bug can be easily recreated by just adding and then removing a large ammount of items from these collections. The remove() operation results in an exception, and, in some cases causes full consumption of cpu. This bug occurs both in Visual J# 1.1 and 2.0. "bug form #1" causes a more severe ...Show All
Robert Verheuvel is there a way to include SWT
is there a way to program SWT inside VJ#, if yes how do we include the JARs in the classpath and where do you provide classpath etc.... am new to VJ# correct me if am wrong anywhere in my question please do correct me. Hi, J# doesn't suppport SWT. It supports functionality equivalent to swing. You may like to check javax.Swing.* packages of vjssupuilib.dll. Please let us know if you need any he ...Show All
Joe Upshaw how to create DLL file in J# or convert J++ dll into J# dll
Please help me...I know nothing about J#. The following code is written by J++ for dll file. I need to either convert those code into J# or create new J# dll file. However, I have no clue how to start it. Could someone help me as soon as you can. I really appreciate it. I only have one day to finish this assignment. import java.io.*; /** * This class is designed to be packaged with a COM DLL o ...Show All
Christian W. method to cast to/from ubyte[]/byte[]
Hi; I know I can copy a byte array to a ubyte array using System.Buffer.BlockCopy. But since the actual data is identical in both arrays, and I have some large arrays, is there a way to just case a byte[] to a ubyte[] thanks - dave Hello, Thank you for your help about this topics. Few years ago, I tried the same code with yours in VJ# 2003 (i.e. on .NET 1.1). But, it threw InvalidCastException' at ' ubyte [] uba ...Show All
LockyBoy1 One app, multiple main()'s
Hi; I have a single project that has about 18 main methods in it. How can I run the created exe (it's a console app) and tell it which main to use as "the" main thanks - dave That still won't let me pick which main to run. thanks - dave Hi; I'm not building, just running it. I don't want to recompile each time I need a different main in the exe. And that would never work when telling customers using it as they don't even have the co ...Show All
InVitro plz help
HI, i need to know all about visual J# it's a homework in University of Programming plz if anyone know a page of Visual J# where is all the information like a) Description b) OS which supports c) Requirements of system Process of Installing the Visual J# how to activate, configure, and test the installment How does it work, how it compile, how to execute the applications plz if someone know something post me at chiraginotz@yahoo.com immediatly i ...Show All
