Thread: How can i write TSRs using DevC++ ... pls help ??

  1. #1
    Registered User intruder's Avatar
    Join Date
    Nov 2002
    Posts
    48

    Question How can i write TSRs using DevC++ ... pls help ??

    Hello friends can anybody pls help me i am trying to write a TSR program for windows and want to use DevC++ compiler , i have written some TSR using TurboC++ but i want to write TSR which run on windows..

    any help will be highly appreciated..

    thanks.

  2. #2
    Registered User moi's Avatar
    Join Date
    Jul 2002
    Posts
    946
    you don't write TSRs for windows..... what is it that you are trying to accomplish
    hello, internet!

  3. #3
    Registered User intruder's Avatar
    Join Date
    Nov 2002
    Posts
    48
    i am trying to make a small firewall which will keep scanning all the requests .. and will stay resident.. but how to .. pls help me..

    how a mail client works on windows that also stays resident than how that code is written in windows..

    i am totally confused.. pls help me moi

  4. #4
    Registered User moi's Avatar
    Join Date
    Jul 2002
    Posts
    946
    don't. you don't understand TSRs. you don't understand multitasking and how it is different than TSRs. don't even attempt to write that program.
    hello, internet!

  5. #5
    Registered User intruder's Avatar
    Join Date
    Nov 2002
    Posts
    48
    than can anybody tell me what is the difference between TSRs and multitasking .. pls i am a newbie and i want to learn .. this.. how to write programs which use multitasking .. ??

  6. #6
    Registered User stormbringer's Avatar
    Join Date
    Jul 2002
    Posts
    90
    if you want to learn windows programming, take a lool at the windows programming book by c. petzold

  7. #7
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Originally posted by intruder
    than can anybody tell me what is the difference between TSRs and multitasking .. pls i am a newbie and i want to learn .. this.. how to write programs which use multitasking .. ??
    TSR
    Multitasking
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  8. #8
    Registered User intruder's Avatar
    Join Date
    Nov 2002
    Posts
    48
    Thank u very much hammer for the help .. i know TSRs but now i also konw what are multitasking.
    but i want to learn more and more about it .. and i want to write code which is am example of multitasking . but don't know where to start...

    if u can just guide me .. i will be very thankful to u ..

    pls help me..

  9. #9
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    Good god, will you please stop grovelling? Look. Ever heard of the internet? You're using it right now! Hop on a search engine and start doing some research!

    Noone starts programming with this sort of problem anyway. Start simple and work your way up. No one here will write your program, so wise up and get to work!
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  10. #10
    Registered User intruder's Avatar
    Join Date
    Nov 2002
    Posts
    48
    but my friend.. i am not telling anybody to write some code for me , i have read the instructions before posting and in that its written that "do not except anybody to write code for u" but i just want some idea in that direction...

    well if nobody will give me than also , "Thanks" and if somebody helps me .. than also i will be thankful .. no hard feelings.. and thanks to u also..

  11. #11
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    Ok. If you post some code, I will probably help you. Otherwise, you're on your own. Multitasking and Multithreading are similar concepts but very different applications. With the first, we merely store and retrieve messages such to "appear" to be doing more than one thing at a time. Multithreading is really just Multitasking done within a very small granularity, and thus OS's are in charge of that. Windows machines support CreateThread() and _beginthreadex(). If you are using functions from the C library you should use the second one since memory leaks can result from mixing CreateThread() with library calls.

    Socket programming examples are all over the net. Look here and here for some really good examples of Windows sockets.

    Both threads and sockets are easy to learn and require very few function calls.

    TSR's are obsolete and you should forget about them.
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  12. #12
    Registered User intruder's Avatar
    Join Date
    Nov 2002
    Posts
    48
    hey thanks lots sebastiai .. thank u very much .. for the info. i have already started looking for this and i will definately learn it..

    thanks once again.. soon i will be back with my code..

    thanks once again

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problems with fstream, one variabile for write and read
    By Smjert in forum C++ Programming
    Replies: 3
    Last Post: 02-03-2009, 10:19 PM
  2. How to write a program
    By Tashfique in forum C++ Programming
    Replies: 4
    Last Post: 10-17-2008, 11:28 AM
  3. Reroute where programs write to
    By willc0de4food in forum C Programming
    Replies: 7
    Last Post: 09-21-2005, 04:48 PM
  4. Replies: 3
    Last Post: 03-04-2005, 02:46 PM
  5. perl need help pls.....
    By magnum38 in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 12-12-2001, 10:35 PM