01-09-2002, 09:41 AM
Im useing Visual Basics 6.0 and haveing quite a few problems, if i may add, Im makeing a 3d file which i need to find a 3d library. Im makeing a program named LandRover its pretty much just a program to tinker with while i get better with VB6.0, im also haveing problems editing my texts, my old files i had running are still showing up as the regular files. Ive read threw-threw and i still cant find the problem. So, i turned to the smartness of the people that use this forum to help. Hopefully it works. Thank you and have a Productive day!
01-09-2002, 09:50 AM
As smart as we might be, most of us aren't mind-readers and
psychics. So, most of us don't have a clue what you are asking,
because we can't see what you see. Any additional, specific info
you can give will only increase your chance of getting help. ;)
01-09-2002, 09:58 AM
User-Defigned type not defined
The "lazy" kid in my class says we need a 3d library, and ill give you an example of what it its poping up as the error is.
Dim DX As DirectDraw2
and all the other Dim DX's
Set DXSCenario1 = LoadBitmapIntoDXS(DX, App.Path + "U:\LandRover\cenario1.bmp")
Set DXSCenario2 = LoadBitmapIntoDXS(DX, App.Path + "U:\LandRover\cenario2.bmp")
Set DXSCarro = LoadBitmapIntoDXS(DX, App.Path + "U:\LandRover\lunar.bmp")
Set DXSNuvens = LoadBitmapIntoDXS(DX, App.Path + "U:\LandRover\nuvens.bmp")
Set DXSEnemy01 = LoadBitmapIntoDXS(DX, App.Path + "U:\LandRover\enemy01.bmp")
Set DXSBarra = LoadBitmapIntoDXS(DX, App.Path + "U:\LandRover\barra.bmp")
Set DXSBase = LoadBitmapIntoDXS(DX, App.Path + "U:\LandRover\base.bmp")
Thats the problem im haveing with it loading up my textures, well thats not the error but thats what ive got down :P
01-09-2002, 10:02 AM
You might not realize it, but you are trying to use a library called
DirectX. The error comes because you haven't set a reference to
the DirectX object library. Go to the Project menu, select the
References dialog, look for DirectX, check and ok. I doubt this will
solve all your problems, but it is a start.
01-09-2002, 10:19 AM
This will certainly not work:
App.Path + "U:\LandRover\base.bmp"
Either remove the App.Path or remove the drive letter -> App.Path & "\LandRover\base.bmp"
01-09-2002, 10:25 AM
Unless App.Path is the root, in which case, you have to remove that leading "\" also.
01-09-2002, 02:03 PM
You will need a DirectX 2 library. There was never an official one for Visual Basic released from Microsoft until DirectX 7, so unless you want to be tinkering with 3rd party DLLs, then you might as well switch to DX 7 or 8. Besides, they use better technology, are more stable, and once you get the basics, are pretty easy to work with. Good luck...
01-10-2002, 09:26 AM
C: as you all know is your main drive(hard drive), U: is the network for the schools connection. Which d/l a hole 4-5 kB per second, so in other words.... im never going to finish this DX file, so ill go home,D/L it, Burn it, and bring it up here. Thank you for you help and if i have anymore problems i will turn to you.
01-11-2002, 09:50 AM
How might you go about makeing sounds to add into the program?
01-11-2002, 10:41 AM
You have a number of options
Dont make sounds, buy them
Download free sounds off the Internet
Buy a microphone, plug in, and start recording
Hire a recording studio for a day
Consult/employ a professional
01-14-2002, 09:30 AM
I mean like whats the codeing to add it in to your program, ive not exactly learned all of the programing yet, still trying to figure some of this stuff out
01-14-2002, 01:48 PM
You have several options:
Use DirectX sound. Fairly complex but pretty powerful. Has the disadvantage of requiring the DX library but if you are using DX for graphics then its not a problem.
The PlaySound API function. A part of Windows and very simple to use. However, it does not provide much control over how the sound is played and for how long.
The waveOut API Functions. Low level functions that provide a very precise degree of control but are fairly complex to use.
The MCI. Very simple to use (including scripting) but very slow to trigger.
02-07-2002, 09:32 AM
Ok ive looked everywhere in my vb books, and i cant find the codeing threw it. What am i sposed to code. Yes i know that you have to have something off of your harddrive/internet. What is the codeing to set up the sounds.
02-07-2002, 02:11 PM
DirectX in plain VB books? nah, you gotta get specialized books for it. don't look in the beginner's section. and if you want sound, get a microphone and some sound creation software.
02-08-2002, 07:57 AM
Are you still using VB2 here?
02-08-2002, 09:20 AM
Not that i just want to know how to set up some background music. ive got the *.wav files... i just dont know how to set them into my form threw the codeing.
02-08-2002, 09:53 AM
Search this forum for "PlaySound".