|
HI!
Is it possible to call a method (from a JAVA class) from a VB project??
When YES... please give me some examples.
thx!
|
|
|
|
|
I would use J# to compile a .NET version or JUMP to migrate it to C#.
Then, I would call it from VB.NET or try to expose it as a COM component to a VB 6.0 project.
I see dumb people
|
|
|
|
|
gicio wrote:
Is it possible to call a method (from a JAVA class) from a VB project??
Gosh, is it not possible to port the Java code to another language? Hmm, well in any case, have you tried to add a reference to it in VB? I am not sure of the COM support that Java has built into it directly.
Nick Parker
|
|
|
|
|
Nick Parker wrote:
I am not sure of the COM support that Java has built into it directly.
Nil, Nada, Nothing, Nyet, Niente.
Java supports CORBA, not COM, though there are libraries (which suck) for COM in Java.
I see dumb people
|
|
|
|
|
Daniel Turini wrote:
Nil, Nada, Nothing, Nyet, Niente.
So are you saying there isn't any.
Nick Parker
Not everything that can be counted counts, and not everything that counts can be counted. - Albert Einstein
|
|
|
|
|
Can someone explain to me how I can create a program which can have 16 tiles, each with a separate picture/image, and the user can then move the tiles around to form a 4 * 4 square. Each tile can have the image rotated by 90 degrees clockwise or 180 degrees clockwise.
If the tiles could automatically stick to each other when they get close, so that each tile is set to the same hight as it's neighbour that would be great.
Sorry, if this sounds quite easy, but I have don't do much graphics work normally.
Cheers
|
|
|
|
|
I don't know if there's a better way, but i'd implement each tile as an object(class), with a image and rotation property, and a board object with 16 panes or groupboxes. The rest is just drag and drop.
I hope that helps
Notorious SMC
Vb is as VB does
|
|
|
|
|
Don't know if you got your answer yet, but I came across an example in the book VI6 Unleashed. It isn't exactly the solution, but it demonstrates moving graphics around and locking them into place. I don't think there is an IP issue sharing this with you. I also don't know how to attach a file, so here is the source for the page in in line: (Graphics files obviously missing.) I hope it helps.
<title>Flags of Canada
Drag the flag to the
correct province or territory name.
Quebec
Manitoba
British Columbia
Saskat- chewan
Alberta
Ontario
Northwest Territories
Yukon Territory
Newfoundland
Prince Edward Island
Nova Scotia
New Brunswick
Canadian Provincial Flags
David Brooks
|
|
|
|
|
hi ,
I have two forms , from1 and form2. Form1 is having mainmenu1 and is having menuitems in it. Now when i load form1 , in the load event of form1 i do me.menuitem1.enabled = false .
this disables the menu. now i have form2.load in form1 load event.
now the problem here is that in form2 i have a button thru which i want the mainmenu of form1 should be enabled.
so i have wriiten this code behind btn _click of from2
dim frm1 as new form1
frm1.menuitem2.enabled = true
but things dont work???
can somebody plz help me??
|
|
|
|
|
This is very simple. You shout not Dim a NEW instance of your Form1 because it should already open. Instead call the controls on the already open Form:
Form1.MenuItem1.Enabled = True
|
|
|
|
|
Ok, I believe this is called a custom UITypeEditor. What I am trying to do is have a Property that can Expanded and show two Sub-properties for that one. An example of this is the "Size" Type which has an x and y properties.
I want to use this to define a Color gradient.
Example:
BackColor
StartColor
EndColor
ForeColor
StartColor
EndColor
Can anyone point me in the right direction?
|
|
|
|
|
|
I have a vc++6.0 dll(ATL COM), a method in the dll takes a Variant(of type VT_DISPATCH) parameter as input. I am using this dll in vb.Net by imptlb process. The problem is that I am unable to pass the VT_DISPATCH type to my method. I am trying to use DispatchWrapper class as per MSDN but it gives unsupported interface error. Can any one help me out, its a bit urgent. I face the same problem in c# too. A solution in c# or vb.Net will do for me ).
IDL Method Signature
====================
Compress([in,out] VARIANT* DocumentObject, [out,retval] short* retVal);
DocumentObject is of type VT_DISPATCH.
vb.Net code snippet
====================
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
Dim Comp As New XMLCOMPRESSIONLib.JNIXMLCompressionClass()<br />
Dim XmlDoct As New Xml.XmlDocument()<br />
Dim XYZ As Short<br />
<br />
XmlDoct.Load("C:\DEXML\asdfa.xml")<br />
XYZ = Comp.Compress(DispatchWrapper(XmlDoct)) <br />
MessageBox.Show(XmlDoct.InnerXml)<br />
End Sub
I get error "Interface not supported" when I call compress with dispatch wrapper tyepcast.
|
|
|
|
|
Dear, Is there someone of you knows that how can I programmatically select all the items in a Checked List Box? I tried to do it but I couldn't find any property/method which can let me to iterate through the items of ListBox / Checked Listbox so that I may be able to select them.
Thanks for your help.
Sameers
|
|
|
|
|
Sub CheckList(ByVal lst As CheckedListBox, ByVal value As Boolean)
Dim i As Integer
For i = 0 To lst.Items.Count - 1
lst.SetItemChecked(i, value)
Next
End Sub
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
|
|
|
|
|
Thaks dear,
The same thing I did just two days ago myself. You are a little late but it is good that at least you are.
Again, Very very thanks to you,
Sameers
|
|
|
|
|
dim a as label
dim a as new label
dim a as new label()
Can I use a.text immediately after one of the 3 dim ways?
Or should I have to add a line "a=new label" before using a.text in the first dim way"dim a as label"?
I hope you know my means.
Thanks.
this is my signature for forums quoted from shog*9:
I can't help but feel, somewhere deep within that withered, bitter, scheming person, there is a small child, frightened, looking a way out.
|
|
|
|
|
After the first "dim", a is still nothing so you can't use a.text immediately. You can do so after the other two "dims", however. The recommended way is:
dim a as label = new label()
which is equivalent to the second and the third dim.
|
|
|
|
|
But in fact,I see such dim :
dim form1 as form2(form2 is an user-defined class)
and the app uses "form1.param1"(param1 is also defined in class form2) immediately,not use new pointer first.
this is my signature for forums quoted from shog*9:
I can't help but feel, somewhere deep within that withered, bitter, scheming person, there is a small child, frightened, looking a way out.
|
|
|
|
|
Does anyone know how to use the post method to get through two urls to screen scrape information from the second url?
ie - i need to post some values to get to the first url. Then to get to the second url i need to post a second set of values. It's the second url where i need to screen scrape information from. (Note i need to go through the first url in order to get to the second one)
I can get it going in VB6 but not .NET.
Any code, help or suggestions would be truly appreciated.
|
|
|
|
|
Here's[^] an MFC article that might point you in the right direction. I've used WebResourceProvider to do exactly what you want to do.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Ravi Bhavnani wrote:
/ravi
I never thought I would see you hanging around this forum. Kidding...
Nick Parker
May your glass be ever full.
May the roof over your head be always strong.
And may you be in heaven half an hour before the devil knows you’re dead. - Irish Blessing
|
|
|
|
|
Actually it was the "web scraping" thing that caught my eye at the home page. When I clicked the link I realized I'd enter the black hole.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Ravi Bhavnani wrote:
When I clicked the link I realized I'd enter the black hole.
Quick, follow me. Come quickly and I won't mention to anyone where you have been. LOL
Nick Parker
|
|
|
|
|
hello
So I just start working with VB.NET and I encountred a problem.
I created a search form that contains a textbox and a datagrid, so i use the textbox for entering first caracter of the searched record and i execute a parametrised query to display all the names verify criteria.
It works correctly, but the problem is when i want to choose one record by pressing an ENTER key (chr(13)),it is not working.
Excuse me for my bad english and Thank you very match.
***
|
|
|
|