• Welcome to Valhalla Legends Archive.
 

Vb6 in 64 Bit

Started by Imperceptus, February 19, 2007, 03:40 PM

Previous topic - Next topic

Imperceptus

Is anyone aware of any programming issues with vb.6 in a 64 bit enviroment?  I am running into some rather strange problems that don't make much sense to me.  Mainly withevents hasn't really ever given me any problems.  But now it just plain wont work.   

If there is anything that I might need to look at, please let me know.
Quote from: Hazard on August 07, 2003, 03:15 PM
Highlight your entire code. Press the delete key. Start over again using Cuphead's CSB tutorial and work your way from their rather than raping code from downloaded sources meant purely for learning purposes. If this does not fix the problem, uninstall Visual Basic and get a new hobby. I suggest Cricket.

l)ragon

Quote from: Imperceptus on February 19, 2007, 03:40 PM
Is anyone aware of any programming issues with vb.6 in a 64 bit enviroment?  I am running into some rather strange problems that don't make much sense to me.  Mainly withevents hasn't really ever given me any problems.  But now it just plain wont work.   

If there is anything that I might need to look at, please let me know.
I would suggest converting to VB .Net since its free.
http://msdn.microsoft.com/vstudio/express/vb/
*^~·.,¸¸,.·´¯`·.,¸¸,.-·~^*ˆ¨¯¯¨ˆ*^~·.,l)ragon,.-·~^*ˆ¨¯¯¨ˆ*^~·.,¸¸,.·´¯`·.,¸¸,.-·~^*

Imperceptus

Yeah, But I don't like vb.net, or .net in general.  I have vs 2005 as well, but thanks for the link anyways. I'm just wondering about why my vb6 app is being screwy.  Debugging has come to show me that my class events arent firing for some reason.
Quote from: Hazard on August 07, 2003, 03:15 PM
Highlight your entire code. Press the delete key. Start over again using Cuphead's CSB tutorial and work your way from their rather than raping code from downloaded sources meant purely for learning purposes. If this does not fix the problem, uninstall Visual Basic and get a new hobby. I suggest Cricket.

Hell-Lord

.NET is the future of programming, yes i know it is shame  :-[

Barabajagal

Quote from: Hell-Lord on February 20, 2007, 12:14 AM
.NET is the future of programming, yes i know it is shame  :-[


No, it's the future of Microsoft programming. That's why I'm working on switching to PowerBasic.

Hell-Lord

PowerBasic is great! but at a professional level .NET will always be the most often used programming software. Not many people have even heard of PowerBasic it wasn't advertised like it should have been.

Joe[x86]

Just let VB6 die. Please.
Quote from: brew on April 25, 2007, 07:33 PM
that made me feel like a total idiot. this entire thing was useless.

Hell-Lord

Vb6 won't die out for a very long time....

TheMinistered

#8
[flame] Joe, coming from someone who is a complete newb with every language BUT vb6 and is still, in my opinion a newb at vb6 too... you sound like a complete dumbass for saying let it die... [/flame]

As for vb6 running in a 64bit enviornment, the operating system should have some sort of emulation for 32bit applications otherwise people would be less likely to switch to a 64bit OS as their valuable/pricey 32bit software wouldn't work anymore.

I'd assume microsoft has pretty good emulation for 32bit, but I could be wrong.  Perhaps its a code problem and not the processor... ;) show us your code... just saying there is a problem isn't enough... you should know this by now

Imperceptus

oh yeah, great emulation for almost all 32-bit apps.  Starcraft is a bit hay-wire.  And some of my calls in vb6 just plain don't work.   So I will take a look at PowerBasic, see what it has to offer.  I'm a bit .net'd out after all the crap with RunUO.
Quote from: Hazard on August 07, 2003, 03:15 PM
Highlight your entire code. Press the delete key. Start over again using Cuphead's CSB tutorial and work your way from their rather than raping code from downloaded sources meant purely for learning purposes. If this does not fix the problem, uninstall Visual Basic and get a new hobby. I suggest Cricket.

Joe[x86]

Quote from: TheMinistered on February 20, 2007, 10:54 PM
Joe, coming from someone who is a complete newb with every language BUT vb6 and is still, in my opinion a newb at vb6 too... you sound like a complete dumbass for saying let it die...

I don't care if you call me a newb at VB, because honestly, being the Grand Master of Visual Basic still amounts you to nothing.

As for being a complete newb in every other language, just because I don't release every single thing I program doesn't mean I don't know how to write code. I'm a fully fluent Java programmer, current maintainer of JavaOp2 (yes, I fixed it after lockdown, something nobody else even attempted), and every time I walk into the Computer Programming lab (I'm working during my spare time at school, fixing all the machines for Advanced Comp Sci) I find myself answering more programming questions than the teacher.

But.. being more useful to others than my teacher doesn't mean I know anything. Oh well.
Quote from: brew on April 25, 2007, 07:33 PM
that made me feel like a total idiot. this entire thing was useless.

Barabajagal

Not insulting you or anything... but programming teachers are usually teachers because they couldn't cut it as professional programmers. The first day in my first VB class, I was correcting my teacher on a language I had never used (I was using BASIC 7.2 for the Commodore 128 at the time).

In any case, yes, 64 bit currently sucks. There's very few working 64 bit drivers, the 32 bit emulation is sub-par to say the least, and it slows down 32 bit applications that do work in the first place. PowerBasic does not currently have 64 bit support, and it uses the same API calls as any other 32 bit language, though the compiler is much better designed than any VisualBasic compiler ever was.

MyndFyre

Quote from: [RealityRipple] on February 20, 2007, 11:41 PM
In any case, yes, 64 bit currently sucks. There's very few working 64 bit drivers, the 32 bit emulation is sub-par to say the least, and it slows down 32 bit applications that do work in the first place. PowerBasic does not currently have 64 bit support, and it uses the same API calls as any other 32 bit language, though the compiler is much better designed than any VisualBasic compiler ever was.

Are you using a 64-bit platform?  Or are you just shooting from the hip?

I upgraded from XP32 to Vista64 on my Core 2 Duo at home (clean install on each).  The performance differences are, at the very least, significant.  (Incidentally, the Microsoft benchmark also notices a processor performance increase when moving from x86 to x64).

The WOW64 emulation layer is very efficient; it does NOT slow down application execution time significantly because the WOW64 calls simply thunk the 32-bit API calls to the 64-bit equivalents and then run them.  I didn't have trouble finding drivers for my hardware except the NVidia stuff for Vista, which of course wasn't out yet.  All of my hardware works on Vista x64 which of course requires signed drivers.

PowerBasic not having 64-bit support means it can't compile a PE file to use the 64-bit subsystem, and so it can't use 64-bit references.  It's not a matter of the API in use, it's a matter of the pointers the compiler can generate.

Last, it's important to note that a 64-bit process can't load a 32-bit DLL into its process space, and a 32-bit process can't load a 64-bit DLL into its process space.  That's the only limitation imposed by the environment.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Barabajagal

You're telling me there's no emulation problems, and yet this topic is focused on one of the problems of that emulation...

MyndFyre

Quote from: [RealityRipple] on February 21, 2007, 02:25 AM
You're telling me there's no emulation problems, and yet this topic is focused on one of the problems of that emulation...

It's not even real emulation!  It's a thunk layer!

http://support.microsoft.com/kb/894373/en-us
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/win64/win64/running_32_bit_applications.asp
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.