Page 5 of 17 FirstFirst 123456789101112131415 ... LastLast
Results 41 to 50 of 163

Thread: Media Engine - VBcoded vehicle mp3 interface + source

  1. #41
    It ain't easy being a green moderator meddler's Avatar
    Join Date
    Aug 2002
    Location
    Steps out the front of Henson's workshop or Sydney
    Posts
    2,783
    Keep at it.... It wouldn't be worth doing if you could do it first go... It's great that you have the time,skill and patience to do it.
    As for the things that I would like to see in your software, all of them have already been mentioned in this forum.
    Never let the truth get in the way of a good story

  2. #42
    Maximum Bitrate CarComp's Avatar
    Join Date
    Oct 2001
    Location
    Indiana
    Posts
    515
    This is such a pain in the ***.

    I keep getting port already open errors, or VB just crashes entirely. I have uploaded the source that I have been working with.

    Somebody please take a look at it (preferably someone who owns an IRman controller)

    ABCD??? please? hehe

    Click here to downloadthe problem source code.








    <space>
    Get MediaEngine !!!
    Media Engine Download

  3. #43
    FLAC
    Join Date
    Apr 2001
    Location
    Here, There, Everywhere
    Posts
    1,436
    mate,

    you do only have one MSComm32 control in the code dont you, and not ones all over the place/forms??? if your trying to do things with multiple MSComm controls I would be looking at changing that first...
    Project - GAME OVER :(

  4. #44
    Newbie
    Join Date
    Jan 2001
    Location
    atlanta
    Posts
    36
    How about just letting the program work in 640x480 rather than changing the resolution of my desktop?

    Or, allow that as an option, so we could test/configure the software on our main PC before installing in in the car.

    (All my desktop icons were re-arranged!)

  5. #45
    Maximum Bitrate CarComp's Avatar
    Join Date
    Oct 2001
    Location
    Indiana
    Posts
    515
    I cannot figure out how to have only one mscomm control with multiple forms... I have been using one per form and turning them on and off as I switch forms.

    How do you switch forms??

    load form1
    unload form2

    or

    form1.hide
    form2.show



    What ? It seems like the forms don't like what I am trying to make them do. I seem to crash VB alot.

    The new version of media engine allows for all resolutions. The first version was just a test... I already figured out control placement and stuff like that.

    I am still working on the code though... If anyone feels like submitting me some code for form changing, I would really, REALLY appreciate it.

    [email protected]

    Thanks.

    CarComp
    Get MediaEngine !!!
    Media Engine Download

  6. #46
    FLAC
    Join Date
    Apr 2001
    Location
    Here, There, Everywhere
    Posts
    1,436
    I cant speak for my system, since it is all bitblt with a single form.... but in your case I would suggest adding another form to just hold the MSComm control.... hide it so its not seen, but it will keep runnin the com port events, etc....

    easy!
    Project - GAME OVER :(

  7. #47
    Maximum Bitrate starfox's Avatar
    Join Date
    May 2002
    Location
    Australia
    Posts
    451
    Hiding the form is safer than unload it, just don't forget to unload them when your project exists.... and don't unload a form with code in itself..

    Eg. if in form2 you have a command button called Switch, don't do this:

    Private Sub Switch_Click()

    Form1.Show
    Unload Form2

    End Sub

    As there's the possibility that you'll continue to execute code in Form2, and VB'll have to load and initialise Form2 again. If you have multiple MSComm controls, they might both try to initialise the same serial port and your program'll have a crap.

    The ideal thing to do is to have one MSComm control for the whole project on a hidden form.

  8. #48
    Maximum Bitrate CarComp's Avatar
    Join Date
    Oct 2001
    Location
    Indiana
    Posts
    515
    Thanks starfox. That last one really helped me out. I noticed that happening (code reinitializing after unload), but I didn't know what was causing it.

    I have written the mscomm control into an invisible form, that loads on start. I have also put code into that form that does all the "pre-checking" so it doesn't have to be in the main menu form.

    Check out this fixed code...
    Get MediaEngine !!!
    Media Engine Download

  9. #49
    Maximum Bitrate CarComp's Avatar
    Join Date
    Oct 2001
    Location
    Indiana
    Posts
    515
    Can someone please help me with this VB coding problem...

    I am able to get all the keys on the keyboard with keydown except arrow keys, and enter.

    Those are pretty important, huh? I know why I cannot interpret those keys, but I don't know a way around it.

    Is there any way to low level interpret keyboard actions?

    These will not work.

    form_keydown
    form_keyup
    form_keypress

    any other ideas?
    Get MediaEngine !!!
    Media Engine Download

  10. #50
    Maximum Bitrate phat_bastard's Avatar
    Join Date
    Sep 2002
    Location
    St.Louis, MO
    Posts
    549
    Perhaps someone else has a better idea, but I think the only way to do this reliably is by subclassing. Subclassing lets you replace default window messaging routines so you can do things that were never meant to be done in vb. =) Look at M$ Knowledge Base aricle Q177992 for a good place to start.

    http://support.microsoft.com/default...;en-us;Q177992

    WARNING - running / debugging subclassed apps in the IDE without a subclassing plugin for VB is alot like juggling running chainsaws. What this means is you'll probably want to put in a debugging variable and if/then branch to disable the subclassing when you're developing / debugging, or the first time VB traps an error it'll most likely crash (without saving your work).
    '01 Chevy Xtreme Stepside (pics)

    FIC K7MNF-64 / Athlon 3200 | 256 DDR | 120 GB 7.2k WD
    WinXP Pro | MediaEngine | 12.1 VGA TFT Touch|Creative CIMR-100
    350w Vector | 320w mATX PS | Hellroaring BIC95150 | ButterflySDC

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •