Search:

Type: Posts; User: Ken Whiteman

Page 1 of 7 1 2 3 4

Search: Search took 0.36 seconds; generated 25 minute(s) ago.

  1. Replies
    10
    Views
    1,647

    Re: Detect if a created class still exists

    Ok, so I tried this and other variations with no success.
    Maybe I'm going about this all wrong.

    Here are my requirements:

    1. I have created a Class - MyEvents.cls
    Everything within the class...
  2. Replies
    10
    Views
    1,647

    Re: Detect if a created class still exists

    In watching my Class module, as I single step thru the code, I find that


    Select Case Events(x) Is Nothing

    or

    If Events(x) Is Nothing Then

    causes the Class to initialize - creating a...
  3. Replies
    10
    Views
    1,647

    Re: Detect if a created class still exists

    Hey guys, I tried both of these and the deleted Event(x) still evaluates to existing (Goto Here).



    Select Case Events(x) Is Nothing
    Case True
    GoTo Done
    Case...
  4. Replies
    10
    Views
    1,647

    Re: Detect if a created class still exists

    Thanks LaVolpe,

    Yeah, that's what I expected.
    In my DeleteEvent routine i do use
    Set Events(x) = Nothing

    But when I use this code, I get the type mismacth error:


    If Events(x) = Nothing...
  5. Replies
    10
    Views
    1,838

    Re: VB6 enduser app under win7 and up

    Well, that depends on several things.

    I assume your WinXP is 32 bit - most systems were 32 bit.
    That being the case, the questions is will the components you used work in a 64 bit environment.
    ...
  6. Replies
    10
    Views
    1,647

    Detect if a created class still exists

    Hi,

    My program creates several instances of a class, and the user may at any time destroy an instance.
    I need a method of determining if a class still exists.

    In a module I have
    Public...
  7. Replies
    4
    Views
    3,688

    Re: Program freezing on Serial Port Close

    passel:
    Old-timers disease, way back when we used to have to do a read to clear the buffer. Old habits die hard!
  8. Replies
    4
    Views
    3,688

    Program freezing on Serial Port Close

    Hello!

    I'm using VS2010-VB.Net

    My program freezes up when executing SerialPort1.Close()
    The issue is that it only locks up if the external Serial Source is transmitting when the command to...
  9. Re: [RESOLVED] Object reference not set to an instance of an object. Error

    Well, Feeling a bit dumb....



    Structure Graph
    Public Shared AxisConfiguration As AxisConfig
    Public Shared LegendConfiguration As LegendConfig
    <VBFixedArray(48)> Shared...
  10. Re: Object reference not set to an instance of an object. Error

    Thank you TnTinMN!

    That was the fix!

    Here's what's troubling however.

    I wrote this as a UDT in VB6, then opened it in VB.Net -VS2008.
    It was automatically converted.
    Then I opened it in...
  11. [RESOLVED] Object reference not set to an instance of an object. Error

    I have created a structure in a Module:



    Structure CTPParm
    Dim Color As Long
    Dim LineWeight As Integer
    Dim Title As String
    Dim Position As Long
    Dim...
  12. Re: Learn-by-example: Writing to a control on another form

    Ok,

    So I found this link. Very informative.

    http://www.codeproject.com/Articles/14122/Passing-Data-Between-Forms

    However, in all 4 methods, the textbox is written to within the same routine....
  13. Learn-by-example: Writing to a control on another form

    Hi,

    I'm one of those people that get confused easily by the overwhelming number of possible methods to accomplish a seemingly simple task.
    So, I have created a small 3-form project that requires...
  14. Re: Loading a Message Queue with an array question.

    It occurred to me last night on my way home, exactly what you're saying about the address pointers.
    I also realized that I just need to maintain an array in the receiving program that is identical...
  15. [RESOLVED] Loading a Message Queue with an array question.

    Hi,

    Well, I'm just starting to use MSMQ,and already I'm stumped!

    I'm thinking rather than loading an array into a queue, it would be more efficient to load a pointer to the array into the...
  16. Re: Looking for recommendations: How to share data between 2 programs

    Thanks everyone!

    I think MSMQ is the answer I'm looking for.

    You all have been extremely helpful!

    Thanks again!
  17. Re: Looking for recommendations: How to share data between 2 programs

    @dilettante,

    I found your post from 2012, is this the sort of method I'm looking for (reference post #1)?
    http://www.vbforums.com/showthread.php?696123-VB6-MMapper-Memory-Mapped-File-Demo
  18. Re: Looking for recommendations: How to share data between 2 programs

    Thanks dilettante

    I'm research MSMQ now.


    Just an old timer's fears from the early days!
  19. Re: Looking for recommendations: How to share data between 2 programs

    Thanks, all

    @stum - "Program A" actually already exists (some 20+ years of development and continuing development).
    "Program B" contains some smaller file writing tasks that have been moved from...
  20. Looking for recommendations: How to share data between 2 programs

    Hi,

    In a nut shell -

    Program A is updating several arrays every 1 second.

    Program B needs to put the array data into a csv file every 1 second.

    The 2 programs are not synchronized.
  21. Re: Licensing issue of out-of-process program

    Monitoring the Task Manager while I launch NewTest.Exe shows NewTest.Exe running under Processes, but not QPTimer.Exe.

    So, it seems to me that the program crashes when it attempts to create the...
  22. Re: Licensing issue of out-of-process program

    A quick test reveals that the EXE will run on my development system.
    (Not really surprised, I fight this sort of battle regularly!)
  23. Replies
    13
    Views
    3,184

    Re: barcode scanning

    What device are you using to scan the bar codes?
    The instruction manual should give you the information on how to communicate with it.

    Do you know which protocol you're using?
    Again, the manual...
  24. Re: Licensing issue of out-of-process program

    Thanks for responding to this.

    The only control I used that didn't come with VB6 is the one I created (QPTimerControl), and the only control used there is an Image Control and an Image.

    In the...
  25. Licensing issue of out-of-process program

    Hi!

    I'm using Windows 7 Professional, 32-bit, SP1
    VB6-SP6

    Using CVMicheal's Multithreading code, I have built an out-of process program that works great within my development environment....
  26. Replies
    0
    Views
    936

    ActiveX exe in C#

    Hi everyone!

    Ok, so I know that you can't create an ActiveX exe in C#, but as a reference, in VB6 this is one method to break out of a single threaded environment.

    Here is what I'm trying to...
  27. Re: VB6 - A very precise timer using Multithreading

    Thanks CVMichael,

    I reviewed the link and, I did understand what was going on, so it was a nice review!

    As far as the Shell command goes- This entire task is application specific, and only 1...
  28. Re: VB6 - A very precise timer using Multithreading

    I placed the following line in the Form_Unload event of the main screen in my program.



    Shell ("cmd.exe /c TASKKILL /IM QPTimer.exe /F")


    It does the job, but I was thinking there must be a...
  29. Re: Change the size of text, apps and other items

    Don't know if this will be of any help....

    Larcom and Young Resize ocx

    http://larcomandyoung.com/


    VBGold also has one that works with the SSTab control.

    http://www.vbgold.com/
  30. Re: VB6 - A very precise timer using Multithreading

    Thanks for putting this together CVMichael!

    I wish I would have discovered this back in 2010!

    Anyway, I've implemented this method, and have it mostly working.
    I find that after I exit the...
  31. Replies
    6
    Views
    1,067

    Re: File Writing

    Ok, Turns out a ByVal for the lpSecurityAttributes was missing, and as SECURITY_ATTRIBUTES should have been a long.

    Ugh, too many trees blocking the view of the forest..
  32. Replies
    6
    Views
    1,067

    Re: File Writing

    Thanks all!

    I've tried implementing the API calls as Bonnie West suggested, however I'm have an issue with the function declarations.



    Declare Function CreateFile Lib "kernel32" Alias...
  33. Replies
    6
    Views
    1,067

    [RESOLVED] File Writing

    Hello,

    I'm wondering if there is a faster, more efficient way of writing a file than this method.
    Has anyone done some benchmark testing?




    FileNum = FreeFile
  34. Replies
    19
    Views
    57,485

    Re: VB6 SelfTimer class module [2008-06-15]

    Hi,

    I know this thread has been dormant for some time, but I think the SelfTimer may solve my problem!

    I've downloaded version 1.1 and included it in my project.

    My goal here is to create a...
  35. Replies
    5
    Views
    737

    Re: Detecting When Excel Shuts Down

    Here's the thing,

    My program opens Excel, loads a report spreadsheet that the customer has built.
    If there are tabs labeled "Map x" then it continues. If not, it creates a new tab(s) and names...
  36. Replies
    5
    Views
    737

    Re: Detecting When Excel Shuts Down

    Thanks stum!

    Yes, I am opening Excel with my program, adding sheets, modifying cells, etc.

    In my real program all is well..... except if the user closes Excel, my program doesn't know this. ...
  37. Replies
    5
    Views
    737

    Detecting When Excel Shuts Down

    HI,

    I found this link that has the answer to my question...Mostly!

    http://www.cpearson.com/excel/ExcelShutdown.htm

    I've created a test project and included the DLL project to test with....
  38. Replies
    5
    Views
    745

    Re: Block Loading a Listbox

    Thanks everyone!
  39. Replies
    5
    Views
    745

    Re: Block Loading a Listbox

    Thanks Arnoutdv,

    There' nothing wrong with a loop, I was just wondering if there was a more efficient method!
  40. Replies
    5
    Views
    745

    [RESOLVED] Block Loading a Listbox

    Hi All,

    If I have a UDT named R1 and another named R2, and if they are structured the same, then I can simply write R2=R1.
    All the data in the R1 UDT is copied into the R2 UDT.

    Is there a way...
Results 1 to 40 of 264
Page 1 of 7 1 2 3 4



Click Here to Expand Forum to Full Width