Search:

Type: Posts; User: Jon L.

Page 1 of 2 1 2

Search: Search took 0.04 seconds.

  1. Re: FAQ - How do I shell a command line program and capture the output?

    One apparent draw back to using this script host is the DOS window. Is there any way to hide it? I've been reading and haven't found anything so far.

    Jon
  2. Re: FAQ - How do I shell a command line program and capture the output?

    Thanks dilettante,

    That does work, I can also get Joacim's module to work using a batch file that calls the assembler. I'll have to study your example a bit more to understand it. I actually...
  3. Re: FAQ - How do I shell a command line program and capture the output?

    If you need/want the actual files I'm testing with, they can be found here:

    http://www.metaice.com/ASM51/Files/ASM51.zip

    ftp://ftp.armory.com/pub/user/rstevew/8051/basic52.zip

    Thanks,
    Jon
  4. Re: FAQ - How do I shell a command line program and capture the output?

    Sorry, I didn't see the post got moved or I wouldn't have PM you.

    This is my routine.


    Private Sub cmdAssemble_Click()
    Dim sWorkingDirectory As String
    Dim sExecutable As String
    Dim...
  5. Replies
    13
    Views
    1,436

    Re: Making ToolTips display optional

    I have done most of it by looping through the controls and clearing the tooltiptext, then to re-enable, just reload the resource strings. Since I am using the resource string file from a wizard...
  6. Replies
    13
    Views
    1,436

    Re: Making ToolTips display optional

    Could you store them in a resource file?

    Jon
  7. Replies
    13
    Views
    1,436

    Re: Making ToolTips display optional

    Thanks Hack... that's going to stink :)

    Jon
  8. Replies
    13
    Views
    1,436

    Making ToolTips display optional

    In the VB6 IDE there is a checkbox that disables the display of tooltips, how do they do it?

    Do I have to make a tooltip control?

    Thanks,
    Jon
  9. Replies
    18
    Views
    907

    Re: [RESOLVED] Graphing Logic Waveforms

    Thanks Michael, I'm sure I'll have a question or two about this example. I haven't looked at trying to put any sort of labels or scales to the graph yet, so that will be one for sure.

    Anyway......
  10. Replies
    18
    Views
    907

    Question # 2 about the code

    The magic numbers 1.7 and 1.1, are they to keep the lines from being on top of the background grid lines?



    If BitSet Then
    If Not PrevBitSet Then picGraph.Line (X + 1, 1.7 + Q * 9 +...
  11. Replies
    18
    Views
    907

    Question about the code

    Can you please explain the "<>0" at the end of the statement?



    BitSet = (Records(X).PG(Q) And (2 ^ Bit)) <> 0


    Thanks

    Jon
  12. Replies
    18
    Views
    907

    Re: Graphing Logic Waveforms

    Yep that did it. A little dressing up and that will be just what I needed. Now for close examination and some learning.

    Thanks again

    Jon
  13. Replies
    18
    Views
    907

    Re: Graphing Logic Waveforms

    Nice piece of code, I'll take me awhile to decipher it, however, all I have is a blank picture box when running it. ?

    I've got something on the front burner right at the moment, so I'll look...
  14. Replies
    8
    Views
    3,725

    Re: Binary Program, Trace Table Needed!

    Well for starters decimal 7 = 111 in binary and 254 = 11111110

    (1 mod 2) = 1 not 0 in first example

    What's the purpose of value - it's not used for anything?

    Looks like an error in the code...
  15. Replies
    18
    Views
    907

    Still looking for other solutions

    While CVMichael is/was going to write a function to show how to do this with a picture box and lines. I'm still looking for other suggestions. I've pretty much given up on the MSChart control, I...
  16. Replies
    18
    Views
    907

    Re: Graphing Logic Waveforms

    Ok, I have a file named TimeFile.log in this example there are only 22 entries


    The first field is time, the next 4 fields are the port values at that time. Each port value will be broken down...
  17. Replies
    18
    Views
    907

    Re: Graphing Logic Waveforms

    I've not done any type of graphics with VB before, so I was trying to find the easiest solution (a control), but if using a picture box would be easier, I'll read up on the topic.

    Thanks for your...
  18. Replies
    18
    Views
    907

    Re: Graphing Logic Waveforms

    Still no luck with the MSChart control. Is there another way?

    Jon
  19. Replies
    18
    Views
    907

    [RESOLVED] Graphing Logic Waveforms

    I'm using VB6.

    I'm writing a simulator for a micro controller. I want to show the output waveforms of the ports (32). Basically a square wave between 0 and 5V (Y-axis), and time will be the...
  20. Re: Formatting a hexadecimal number.

    Thanks Joacim, that did the trick.

    Jon
  21. [RESOLVED] Formatting a hexadecimal number.

    I'm trying to force a four digit display of a hexadecimal number using:

    something.text=format$(Hex(number),"0000")

    This works if the resulting hex number is numeric, but for alphanumeric...
  22. Replies
    2
    Views
    476

    Re: Need suggestions on how to...

    I suppose a flexgrid would be the best way to go.

    Jon
  23. Replies
    2
    Views
    476

    [RESOLVED] Need suggestions on how to...

    I'm writing a simulator for a microcontroller. I've got the simulator working almost 100%, but my user interface sucks.

    I need a window to display the assembly language program and as the...
  24. Replies
    5
    Views
    2,428

    Re: Operation Cancelled

    Well I finally found the problem. It was in the validation routine. A value was being set to "0" and needed to be set to "0.0"

    Only a weeks worth of hair lost :)
  25. Replies
    5
    Views
    2,428

    Re: Operation Cancelled

    Originally it was:


    database.recordset.delete
    database.recordset.movenext <-- operation cancelled


    But I was reading some posts here that suggested putting .update after the .delete...
  26. Replies
    5
    Views
    2,428

    More Information

    Ok well I single stepped and found the .movenext triggers a will_move event. The will_move event calls a subroutine to validate the data before it move. If I comment out the call to validate the...
  27. Replies
    5
    Views
    2,428

    [RESOLVED] Operation Cancelled

    I'm using VB6 with an ADODC control to access a Jet4.0 database. The program was working fine, but since I've made some totally unrelated additions to other parts of the program it keeps giving me...
  28. Replies
    7
    Views
    1,184

    Re: 3rd party dll call - Problem Resolved!

    Figured it out - thanks

    Jon
  29. Replies
    7
    Views
    1,184

    Re: 3rd party dll call

    Well, maybe the ispInit function is working, if I don't call it first then the next function call crashes program.

    I guess I'll have to wait for a response from the company that wrote it. The...
  30. Replies
    7
    Views
    1,184

    Re: 3rd party dll call

    I think the rest of my problems are due to the fact that the ispInit() function is failing.

    I'm going to show you the original header file here:





    I know this is alot of code but you...
  31. Replies
    7
    Views
    1,184

    Re: 3rd party dll call

    Ok that makes sense and I've gotten around then "out of memory" error now.

    Thanks for that.

    Jon
  32. Replies
    7
    Views
    1,184

    Re: 3rd party dll call

    Well I had been using it like so:

    Dim strResult as String
    strResult = ispGetLastResult()
    ...


    Jon
  33. Replies
    7
    Views
    1,184

    [RESOLVED] 3rd party dll call

    Hello all,
    I have a program that says I can use the API calls in it's dll to implement the programs abilities in my own software. It has a header file in C and demo program in C. I searched...
  34. Re: Classic VB - How do I shell a command line program and capture the output?

    Hi Joacim,
    I'm trying to use cmdOutput.bas to run an old dos type program and 8051 cross assembler. It does run the program "ASM51.EXE <infile> outfile" and assemble the file correctly, but what is...
  35. Replies
    6
    Views
    7,044

    Re: Boolean True/False or 1/0 ??

    Thanks guys for your replies, I have discovered my error. Some flags I declared as Boolean, actually get their 1/0 value from checkboxes.value

    Thanks again

    Jon
  36. Replies
    6
    Views
    7,044

    [RESOLVED] Boolean True/False or 1/0 ??

    I use VB6 Enterprise edition

    When Declaring variables as Boolean, who do some use the value of True/False and others have the value of 1 or 0?

    If the Boolean variable shows a value of 1, why...
  37. Replies
    6
    Views
    1,112

    Re: Converting old .mdb to new .mdb

    Thanks Eran, using your example, I was able to get accomplished what I wanted.

    Jon
  38. Replies
    6
    Views
    1,112

    Re: Converting old .mdb to new .mdb

    Hello Eran,
    Thanks again for your reply.
    What I'm trying to do is to convert or import data from two different .mdb files (each with just one table) into a new .mdb file (with two tables). The new...
  39. Replies
    6
    Views
    1,112

    Re: Converting old .mdb to new .mdb

    Hi Eran,
    Thanks for your reply.
    1) I could put all of the controls on one form, but it seemed simpler to just to cut and paste from the original. This form came from the original application and...
  40. Replies
    6
    Views
    1,112

    Re: Converting old .mdb to new .mdb (More Info)

    I know I probably didn't post enough information for anyone to help at this point, so I've attached the whole project for VB6 Enterprise. To help me pin down the problem I've commented out lots of...
Results 1 to 40 of 42
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width