Page 1 of 2 12 LastLast
Results 1 to 15 of 30
  1. #1
    seeplusplus's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Massachusetts
    Posts
    329
    Reputation
    8
    Thanks
    85

    [Help]How to draw text from a file?

    How would I draw text from a text file? (DrawString)
    Last edited by seeplusplus; 10-03-2010 at 09:20 AM.
    Goals:
    Green = Done
    Blue = Getting Somewhere
    Red = Not Done
    • Mouse Grid
    • PTC Method
    • Trigger Bot

    I'm trying to think of more stuff!

  2. #2
    markoj's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    s
    Posts
    1,064
    Reputation
    60
    Thanks
    407
    My Mood
    Bored
    How can you use D3D to draw text in a text file -.-
    Dont ban me

  3. #3
    seeplusplus's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Massachusetts
    Posts
    329
    Reputation
    8
    Thanks
    85
    Yes... thats wat im asking...
    Goals:
    Green = Done
    Blue = Getting Somewhere
    Red = Not Done
    • Mouse Grid
    • PTC Method
    • Trigger Bot

    I'm trying to think of more stuff!

  4. #4
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Do You Mean Too Log Text Into A File

  5. #5
    markoj's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    s
    Posts
    1,064
    Reputation
    60
    Thanks
    407
    My Mood
    Bored
    Quote Originally Posted by seeplusplus View Post
    Yes... thats wat im asking...
    What your asking is currently impossible lol
    Dont ban me

  6. #6
    seeplusplus's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Massachusetts
    Posts
    329
    Reputation
    8
    Thanks
    85
    To get the text in a text file and then draw it.
    Goals:
    Green = Done
    Blue = Getting Somewhere
    Red = Not Done
    • Mouse Grid
    • PTC Method
    • Trigger Bot

    I'm trying to think of more stuff!

  7. #7
    Mr.Magicman's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Sitting in my cave full of thoughts learning Asembly
    Posts
    2,102
    Reputation
    16
    Thanks
    649
    My Mood
    Cold
    Dont rember how to read from a .txt check msdn.

    Then sprintf it and just draw the info

  8. #8
    seeplusplus's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Massachusetts
    Posts
    329
    Reputation
    8
    Thanks
    85
    Quote Originally Posted by Mr.Magicman View Post
    Dont rember how to read from a .txt check msdn.

    Then sprintf it and just draw the info

    sprintf is not d3d...
    Goals:
    Green = Done
    Blue = Getting Somewhere
    Red = Not Done
    • Mouse Grid
    • PTC Method
    • Trigger Bot

    I'm trying to think of more stuff!

  9. #9
    markoj's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    s
    Posts
    1,064
    Reputation
    60
    Thanks
    407
    My Mood
    Bored
    Quote Originally Posted by seeplusplus View Post
    To get the text in a text file and then draw it.
    This should help you, it shows you exactly how to do what your askign for
    1. Loading A text File
    2. Retrieving lines of text
    3. Drawing Lines of Text

    Part 2 - Loading a text file the easy way | www.catch22.net

    You can figure out the D3D Part :P
    Enjoy
    Dont ban me

  10. #10
    Mr.Magicman's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Sitting in my cave full of thoughts learning Asembly
    Posts
    2,102
    Reputation
    16
    Thanks
    649
    My Mood
    Cold
    Quote Originally Posted by seeplusplus View Post
    sprintf is not d3d...
    You are realy realy dumb

  11. The Following 2 Users Say Thank You to Mr.Magicman For This Useful Post:

    markoj (10-03-2010),whatup777 (10-03-2010)

  12. #11
    seeplusplus's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Massachusetts
    Posts
    329
    Reputation
    8
    Thanks
    85
    I got that. But I can't figure out the D3D part!
    Goals:
    Green = Done
    Blue = Getting Somewhere
    Red = Not Done
    • Mouse Grid
    • PTC Method
    • Trigger Bot

    I'm trying to think of more stuff!

  13. #12
    markoj's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    s
    Posts
    1,064
    Reputation
    60
    Thanks
    407
    My Mood
    Bored
    Quote Originally Posted by seeplusplus View Post
    I got that. But I can't figure out the D3D part!
    use Sprintf like Mr.MageMan said, look it up first though lmao
    Dont ban me

  14. The Following User Says Thank You to markoj For This Useful Post:

    wassup40 (10-03-2010)

  15. #13
    kotentopf's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    602
    Reputation
    26
    Thanks
    251
    [php]std::ifstream file;/pe to read a file
    char text[1024];//ur text u want to print with max 1024(kb) letters
    file.open("your.file");//open ur file
    if(file.good())//if this file is exist
    while(!file.eof())//as long not the end of file
    file.getline(text,1024);//get 1024 letters from the file if they are not 1024 its ok but more it will not read
    file.close;//close ur file[/php]

    and here u see a DrawText: https://www.mpgh.net/forum/207-combat...functions.html
    The Internet SHOULD Be Illegal

    When you say
    "Java is a great programming language because it works on all platforms"
    it is just like
    "anal sex is great because it works on all genders"

    Are YOU a Troll?

  16. The Following 3 Users Say Thank You to kotentopf For This Useful Post:

    Mr.Magicman (10-03-2010),Stephen (10-04-2010),wassup40 (10-03-2010)

  17. #14
    Mr.Magicman's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Sitting in my cave full of thoughts learning Asembly
    Posts
    2,102
    Reputation
    16
    Thanks
    649
    My Mood
    Cold
    Quote Originally Posted by kotentopf View Post
    [php]std::ifstream file;/pe to read a file
    char text[1024];//ur text u want to print with max 1024(kb) letters
    file.open("your.file");//open ur file
    if(file.good())//if this file is exist
    while(!file.eof())//as long not the end of file
    file.getline(text,1024);//get 1024 letters from the file if they are not 1024 its ok but more it will not read
    file.close;//close ur file[/php]

    and here u see a DrawText: https://www.mpgh.net/forum/207-combat...functions.html
    Thanks for that.. i forgot how to do that

  18. The Following User Says Thank You to Mr.Magicman For This Useful Post:

    wassup40 (10-03-2010)

  19. #15
    kotentopf's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    602
    Reputation
    26
    Thanks
    251
    no problem, but never forgot basics
    The Internet SHOULD Be Illegal

    When you say
    "Java is a great programming language because it works on all platforms"
    it is just like
    "anal sex is great because it works on all genders"

    Are YOU a Troll?

Page 1 of 2 12 LastLast

Similar Threads

  1. [Help] [Help]How to convert Mods From DTX
    By idohack in forum Combat Arms Mod Tutorials
    Replies: 6
    Last Post: 02-21-2011, 04:28 PM
  2. Help how to add text to a mod.
    By cranow12 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 2
    Last Post: 09-25-2010, 01:56 AM
  3. Replies: 5
    Last Post: 05-30-2010, 10:40 AM
  4. help does any one no how to get nx from maple story
    By Mauled in forum Combat Arms Discussions
    Replies: 11
    Last Post: 10-16-2009, 04:20 PM
  5. how do i make text from a render?
    By -ParallaX in forum Art & Graphic Design
    Replies: 6
    Last Post: 08-10-2009, 10:06 AM