Search:

Type: Posts; User: C++Novice

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. Re: Alternative to shell function that doesn't wait for a return value

    It's good to read someone who has a foot in both camps having this opinion. I've had a lot of false starts over the years, dipping my toe into vb.net but I think it's time to have another look.


    ...
  2. Re: Alternative to shell function that doesn't wait for a return value

    We're the last of the Mohicans.
    These av issues do feel a bit like a bad omen.
    Wish I had a magic wand that would transport my stuff to vb.net.
    Course I know next to nothing about vb.net beyond...
  3. Replies
    13
    Views
    2,941

    Re: Profiler for VB6

    Sure, no problem
  4. Replies
    13
    Views
    2,941

    Re: Profiler for VB6

    The output is a csv file like the mocked up one below, which i import in to an access database.
    Then the depth column makes it easy to calculate a column showing the net time in each procedure...
  5. Replies
    13
    Views
    2,941

    Re: Profiler for VB6

    MZ tools won't add errhandlers to all procedures in one go, it will just add an errorhandler to whichever procedure has the focus when you click on the toolbar icon

    If you're interested here is...
  6. Replies
    13
    Views
    2,941

    Re: Profiler for VB6

    Yes it will replace those with the actual names.
    I don't know if you are familiar with MZ tools but if you aren't, you will still have to visit every existing procedure to add an errorhandler...
  7. Replies
    13
    Views
    2,941

    Re: Profiler for VB6

    I use a class based on the CTracer class from Francesco Balena's VB6 book.
    Then in MZ tools I have its errorhandler feature also add the trace code to each procedure.
    For new code at least, it...
  8. Re: Alternative to shell function that doesn't wait for a return value

    Thanks for information everybody.
    My usage is not malicious, I am just trying to take pressure of the program process by handing off work to another exe. The program process calls it every couple of...
  9. Re: Alternative to shell function that doesn't wait for a return value

    That makes sense, thanks.
    Does ShellExecute have to wait also or does Windows just give it the value
    for the hwnd it then goes on to use in the creation of the process?
  10. Re: Alternative to shell function that doesn't wait for a return value

    Thanks LaVolpe

    This looks to be just what I needed. I'm finding ShellExecute about 20 times faster than Shell.
    Is that about the order of improvement to be expected I wonder?


    Call...
  11. Re: Alternative to shell function that doesn't wait for a return value

    Will do thanks!
  12. Alternative to shell function that doesn't wait for a return value

    Hi
    The shell function in visual basic waits for a return value from the called program.
    I have found that in some cases this can take several seconds.
    Is there another way of calling that won't...
  13. Thread: newbie here

    by C++Novice
    Replies
    11
    Views
    1,427

    Re: newbie here

    I'm in two minds about the idea of a new programmer starting with vb6. It's what I'm most proficient at (not saying much) but if I were starting now
    I know I'd choose something else because it's...
  14. Replies
    22
    Views
    19,226

    Re: Intellisense isn't working

    This thread ain't getting any younger!
    Yes just to confirm that this solution works, just had this issue, intellisense just disappeared in a sub I was writing.
    The cause was declaring a parameter...
  15. Replies
    84
    Views
    15,133

    Re: GOSUB - Is it really bad?

    This rings very true for me.
    I like things to be very simple

    A trivial example:



    'I much prefer

    dim s as string
  16. Re: How Many People are Sticking around Until the end of VB6

    I only tested it on simple stuff, a small one form program (also did some database work), maybe a couple of hundred lines total and it compiled and ran.
    The code didn't look too pretty afterwards, ...
  17. Re: How Many People are Sticking around Until the end of VB6

    I have written a couple of very simple programs in Lazarus just while learning a bit of object Pascal.
    Lazarus is a very impressive product and if I was starting out from scratch I'd strongly...
  18. Re: How Many People are Sticking around Until the end of VB6

    This is fascinating, thanks very much. I think I'd need to do something of this sort though to get a proper feel for it.
    Sorry if this is a stupid question but where does the code go on an instance...
  19. Re: How Many People are Sticking around Until the end of VB6

    This is very impressive to me. I had to look up 4 GL (4th generation languages). As far as i can understand they are like a higher-level again above what we call high level languages.
    It looks like...
  20. Re: How Many People are Sticking around Until the end of VB6

    LOL, Whiskey works too well for me.
  21. Re: How Many People are Sticking around Until the end of VB6

    It's a bit of an "if all you have is a hammer..." type situation though.
    If you become proficient in some other language you might find that making such a product could be done faster in that...
  22. Re: How Many People are Sticking around Until the end of VB6

    For me the most feasible rescue plan for my vb6 code seems to be a port to vb.net, maybe even c#
    Once in .net (no easy task*) then if windows goes away I'm hoping that
    implementations of the clr...
  23. Re: Proper way to end a program with Timer controls

    Thanks everyone. Your method looks interesting Baka but as techgnome says, I don't know enough to feel confident enough to use it.
    Also is it not losing one of the advantages that vb gives us over...
  24. Re: Proper way to end a program with Timer controls

    I believe that it is a bad idea to use "End" (i could be wrong though), and that the proper way is to unload all the forms in your application as in something like the following:

    Private Sub...
  25. Re: Proper way to end a program with Timer controls

    Thanks wqw, that's clever.
    I am going to play with this for awhile.
    Until recently I wasn't aware of how much can go wrong when using doevents and I have probably tended to use it too much.
    I...
  26. Re: Proper way to end a program with Timer controls

    Hi I am back again, sorry!
    Your solution works wqw but what about situations like in the slightly altered code below, where the DoEvents call is inside a nested procedure and the outer procedure...
  27. Re: Proper way to end a program with Timer controls

    Thanks wqw
    That does the trick all right.
  28. Proper way to end a program with Timer controls

    I would have expected clicking on the command button to end the following program but all it does is to cause the window to disappear while the process continues indefinitely.

    If you wan to see it...
  29. Replies
    11
    Views
    1,718

    Re: Question about modality (I think)

    I just copied what you did and that's pretty weird all right watching a second msgbox pop up while the other is still there!
  30. Replies
    11
    Views
    1,718

    Re: Question about modality (I think)

    I made up a little project with 2 forms like Elroy has in his example.
    It has trace logging built in and in the ide just prints to the debug window but in the compiled version prints to a file....
  31. Replies
    11
    Views
    1,718

    Re: Question about modality (I think)

    I think maybe it suspends everything in the IDE but it doesn't in a compiled exe.
    It was some logging code, writing to a file, that showed me the timer events were still firing when a message box...
  32. Replies
    11
    Views
    1,718

    Re: Question about modality (I think)

    Thanks for the prompt response. I think I understand things better now. :)
  33. Replies
    11
    Views
    1,718

    Question about modality (I think)

    I was under the illusion that if there was a message box open that no program code was executing because the program was waiting for an response from the user.
    I was under the same wrong impression...
  34. Replies
    82
    Views
    70,608

    Re: [VB6] Manifest Creator II

    I downloaded and used this today and despite not being too sure what I was at, it worked!
    It's really spruced things up.
    Thanks very much for providing this, LaVolpe!
  35. Re: Printer ejecting blank pages non stop

    Hi
    Sorry this was a bit dumb.
    I fixed the problem, I wasn't setting the printer.scalemode property.
    The code worked fine if the previous time this was set, somewhere else
    in the program, it was...
  36. Re: Printer ejecting blank pages non stop

    Thanks very much for your prompt and detailed reply. I hadn't thought of it being the printer.
    As you suggest, I will look into that first and if no joy there will try setting up some logging.:)
  37. [RESOLVED] Printer ejecting blank pages non stop

    Sorry if what follows is a bit vague, I'm just looking for some suggestions about where to look because
    I haven't been able to reproduce this.

    Code pretty much identical to that below outputs a...
  38. Thread: Post Race!

    by C++Novice
    Replies
    68,960
    Views
    18,700,249

    Re: Post Race!

    I know it's pretty meaningless but vb.net is above c# this month on the tiobe index. Don't think that's happened before.
    143019
  39. Replies
    4
    Views
    858

    Re: Thicko DoEvents Question

    LOL, I like that



    Ah OK, fair enough




    Thanks Dilettante, plenty of food for thought there. I am using DoEvents a bit (maybe a lot) more often than I should be doing. I guess it's time...
  40. Replies
    4
    Views
    858

    Re: Thicko DoEvents Question

    Hi Dilettante
    Thank you for your detailed answer. I think I follow what you are saying to some extent but I am afraid that my knowledge of message loops and the like isn't great.
    I think I need to...
Results 1 to 40 of 43
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width