Results 1 to 4 of 4

Thread: New Thread

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516

    Question

    I'm making my little Countdown game and I've got a small problem.
    While the computer is working out the possible sub-anagrams of the word,
    the UI is unresponsive and this lasts for around 5 seconds. Given my high
    <ahem>
    Standards of programming, this is unaccepteable.
    So I decided I'd make an ActiveX DLL, 'cos I read (in a good but very
    confusing book) that you could thread ActiveX Components and therefore
    my problem would be solved.

    I then put a refence in my project to the DLL containing the anagram 'bit'
    and hoped it would 'thread'. But it didn't.

    I'm sure one of you:

    Megatron, Serge, da_silvy, HeSaidJoe, Paul282, Iain17,
    MartinLiss, Gen-X, and maybe even CihmpFace9000

    could help.

    Or possibly:

    Sam Finch, Batman (which means Robin), Fox, KENNNY, Matthew Gates, denniswrenn, or even noone

    Or:

    BoB, HarryW, Zaphod64831, Jethro, SteveCRM, GRAHAM

    Perhaps God (aka John) or Christ (aka James) could help?

    I would like to kiss whoever can help, as long as you are:

    1) Female
    2) Good looking
    3) Good personality
    4) Intelligent
    5) No vices (drinking, smoking, crack cocaine, illegal immigrants) etc.
    6) Good at sports
    7) Sense of humour
    8) Rich
    9) Got a good job
    10) Faithful
    11) More than willing to...well...you know

    If you are such a person, please phone:

    +44 1334 360275

    Thank you
    Courgettes.

  2. #2
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367
    Did you put a DoEvents in your loop???

    This command allows the OS to do other work for a very short period of time.

    Code:
    For x= 1 to 1000
    --CODE--
    DoEvents
    --CODE--
    Next
    Hope this helps

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516

    Unhappy Tried that...

    I put like twenty DoEvents in it and it still was unresponsive.

    I'd like to add Negative0 to the list.
    Courgettes.

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    You need to post your code or nobody could guess what the problem is, anyway i'm going to guess, is it bitblt? You have blitted large parts, very frequent, and the everything freezes for some secs (or even mins, depends on the machine) and then everything turns back normal again. correct?

    probably not, that's a guess
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

Posting Permissions

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



Click Here to Expand Forum to Full Width