PDA

View Full Version : VB & VB .NET, I'm Confused



RizlaUK
04-10-2008, 07:45 PM
whats the differance between an application made VB and one made VB .NET?

If i make an application with VB6 Pro and use all custom non .NET controls, dose my app still need .NET runtimes ?

see, i have this plan for a program but im confused, im drawn in the direction of VB6 cos i can use all the controls i want/need to use and have already purchased, and there is a wealth of information and examples to learn from, but im a little stupid in the whole .NET thing

is the botton line, VB = .NET Runtimes, or is it only VB .NET and Enterprize editions that need the runtimes ?

rexzooly
04-10-2008, 07:51 PM
whats the differance between an application made VB and one made VB .NET?

If i make an application with VB6 Pro and use all custom non .NET controls, dose my app still need .NET runtimes ?

see, i have this plan for a program but im confused, im drawn in the direction of VB6 cos i can use all the controls i want/need to use and have already purchased, and there is a wealth of information and examples to learn from, but im a little stupid in the whole .NET thing

is the botton line, VB = .NET Runtimes, or is it only VB .NET and Enterprize editions that need the runtimes ?

as long as you don't add a . net componant it should be ok and as long as tis just a standard windows form thing you pic sorry forgot its name i stoped using VB when i started to work with lua long team.

RizlaUK
04-10-2008, 07:56 PM
How would i translate this line from VB to AMS/LuaCOM


Amp3dj1.Spectrum.ColorBands(0) = RGB(255, 0, 0)

i tried (as it was the only way the script editor would acecpt)

Amp3dj1.Spectrum.ColorBands(0,Math.RGBToNumber(255 , 0, 0))

but nada!

also, is "luacom.Connect" the only way to recive events from a control, i have the event functions setup but they not reciveing any events.

also, one last thing, could my above problems be anything to do with LuaCOM's limitations?

* LuaCOM currently supports only exposes COM objects as ``single use'' objects. That might be circumvented by exposing many times the same object. This restriction might be removed under request;
* LuaCOM doesn't support COM methods with variable number of parameters. This could be circumvented passing the optional parameters inside a table, but this hasn't been tested. This may be implemented under request;
* LuaCOM doesn't provide access to COM interfaces that doesn't inherit from IDispatch interface. That is, only Automation Objects are supported. This restriction is due to the late-binding feature provided by LuaCOM. It's possible to provide access to these COM interfaces via a "proxy" Automation Object, which translate calls made through automation to vtable (early-binding) calls. It's also possible to implement this "proxy" directly using LuaCOM C/C++ API, but this hasn't been tested nor tried;


i can use and access all other methods and properties, just the above are giving me a headache.....might switch to VB for this project

RizlaUK
04-10-2008, 08:30 PM
^^ that was ment be a new thread


Cheers Rex, i tought it was something like that :yes

rexzooly
04-10-2008, 08:35 PM
^^ that was ment be a new thread


Cheers Rex, i tought it was something like that :yes

Riz way are we still up lol :D

np's i might have to get VB again for some mini windows programs i use to
make maybe i don't know i like lua too much :D

clueless
04-10-2008, 08:37 PM
Sside has made a color dll that does the job of the RGB function in Vb.

I think Vb.net is a class based system that can also be use to program online code.

RizlaUK
04-10-2008, 08:51 PM
Sside has made a color dll that does the job of the RGB function in Vb.

Do'h, why dident i think of that, i'll give it a try

rexzooly
04-10-2008, 10:05 PM
Do'h, why dident i think of that, i'll give it a try

we always overlook the simple things :D ok time
for sleep also sorry for the
spaces on my xda mini,
also known as the imate kjam,
mda and also the main or
should I say manufactures
name HTC Wizard

Dermot
04-10-2008, 10:47 PM
How would i translate this line from VB to AMS/LuaCOM


Amp3dj1.Spectrum.ColorBands(0) = RGB(255, 0, 0)

i tried (as it was the only way the script editor would acecpt)

Amp3dj1.Spectrum.ColorBands(0,Math.RGBToNumber(255 , 0, 0))

but nada!

also, is "luacom.Connect" the only way to recive events from a control, i have the event functions setup but they not reciveing any events.

also, one last thing, could my above problems be anything to do with LuaCOM's limitations?


i can use and access all other methods and properties, just the above are giving me a headache.....might switch to VB for this project

When setting properties that accept paremters, you need to use : just like a function call. Something like this maybe. Don't know what control you are using so it's hard to know.

Amp3dj1.Spectrum:ColorBands(0,Math.RGBToNumber(255 , 0, 0))
or

Amp3dj1:Spectrum():ColorBands(0,Math.RGBToNumber(2 55, 0, 0))

Also some activex controls require you to use 'set' and 'get' when setting and ready properties. This only applies to luacom.

Amp3dj1.Spectrum:setColorBands(0,Math.RGBToNumber( 255, 0, 0))

RizlaUK
04-11-2008, 06:52 AM
AMP3DJ.Spectrum:setColorBands(0,4227327);

i did try with ":" but still nothing,

with "set" it works perfect :yes

Thanks Dermot

now iv only to figure out the event thing and im good to go