Anyone know whats wrong with this code


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Dec 2004
    Location
    Scarborough UK
    Posts
    77

    Unhappy

    Hi Jerson

    I tried the mod u suggest but it does not work, it locks the prog up as before.
    I was looking on the MS website and i think i found a clue, I may be placing the code in the wrong place ?.
    The MS example i found uses a command line interface with the code snips place in a code module.
    What i am doing is simply placing a button on a form and putting the code snips in the buttonclick sub.

    The worst thing is that MS doesnt provide a simple working example and i cant find anyone that KNOWS how to do this one simple thing, its driving me bloody nuts.
    Reading the datasheet & understanding it are two different things.

  2. #2
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    967

    Default

    Bonxy

    try the usual way. Like I said, at application startup, do the openserialport method call(without the using keyword). Then when you are about to close the app, close serial port(dont know if theres a method for this). I wouldnt mind giving it a shot, but it will take a couple of days since I am very tied up right now with other assignments.
    Perhaps you could ZIP attach the app for me to look at.

    Jerson

  3. #3
    Join Date
    Dec 2004
    Location
    Scarborough UK
    Posts
    77

    Unhappy

    Jerson

    Thanks for your offer but i have to get this thing working today, i am going to try to find a book that explains it.

    If anyone knows how to do serial comms in VB Express please help.
    Reading the datasheet & understanding it are two different things.

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default

    Probably harder for sure, but the windows API call method should work.

    How to in VBExpress? i wish i could help better.... i don't know.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. Nokia COLOR LCD PicBasicPro 2.50a example code
    By skimask in forum Code Examples
    Replies: 49
    Last Post: - 28th September 2011, 01:43
  2. PIC BASIC TLC5940 code
    By eletrokat in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 8th May 2010, 21:01
  3. Manchester coding/decoding Code help
    By financecatalyst in forum Code Examples
    Replies: 0
    Last Post: - 25th August 2009, 19:05
  4. Re-Writing IF-THEN-AND-ENDIF code?
    By jessey in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 18th August 2006, 17:23
  5. Its not always the code that is wrong !!!!
    By keithdoxey in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 19th April 2006, 23:42

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

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