help with (blank is undefined, use this function first) menu

User Tag List

Results 1 to 8 of 8
  1. #1
    ffffrf's Avatar Corporal
    Reputation
    1
    Join Date
    Jul 2012
    Posts
    28
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    help with (blank is undefined, use this function first)

    HERE IS THE CODE: (it is a keylogger, dont ask why, none of your buiseness)



    http://pastebin.com/RSETzvVh


    ANYWAY, when i compile the code i get a few errors (as it says on dev C++)

    C:\Dev-Cpp\main.cpp In function `int main()':
    43 C:\Dev-Cpp\main.cpp `get_keys' undeclared (first use this function)
    (Each undeclared identifier is reported only once for each function it appears in.)
    C:\Dev-Cpp\main.cpp In function `int get_keys()':
    48 C:\Dev-Cpp\main.cpp `int get_keys()' used prior to declaration
    59 C:\Dev-Cpp\main.cpp `sleep' undeclared (first use this function)
    C:\Dev-Cpp\main.cpp In function `int MailIt(char*, char*, char*, char*, char*)':
    277 C:\Dev-Cpp\main.cpp `sleep' undeclared (first use this function)
    C:\Dev-Cpp\Makefile.win [Build Error] [main.o] Error 1

    If someone could please fix the errors, then repost the code( in the thread, dont make it a download or whatever =p)
    Last edited by ffffrf; 08-20-2012 at 06:39 PM.

    help with (blank is undefined, use this function first)
  2. #2
    Parog's Avatar Kitsune Da-O! M.L.G. CoreCoins Purchaser Authenticator enabled
    Reputation
    1528
    Join Date
    May 2007
    Posts
    3,160
    Thanks G/R
    540/266
    Trade Feedback
    20 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is a pain in the ass to read. Please use pastebin.org and select C++ syntax highlighting.
    What's a Parog?
    Looking for competitive Valorant team!

  3. #3
    ffffrf's Avatar Corporal
    Reputation
    1
    Join Date
    Jul 2012
    Posts
    28
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Done, pastebin link is in the post =]

  4. #4
    Parog's Avatar Kitsune Da-O! M.L.G. CoreCoins Purchaser Authenticator enabled
    Reputation
    1528
    Join Date
    May 2007
    Posts
    3,160
    Thanks G/R
    540/266
    Trade Feedback
    20 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ffffrf View Post

    C:\Dev-Cpp\main.cpp In function `int main()':
    43 C:\Dev-Cpp\main.cpp `get_keys' undeclared (first use this function)
    (Each undeclared identifier is reported only once for each function it appears in.)
    C:\Dev-Cpp\main.cpp In function `int get_keys()':
    48 C:\Dev-Cpp\main.cpp `int get_keys()' used prior to declaration
    59 C:\Dev-Cpp\main.cpp `sleep' undeclared (first use this function)
    C:\Dev-Cpp\main.cpp In function `int MailIt(char*, char*, char*, char*, char*)':
    277 C:\Dev-Cpp\main.cpp `sleep' undeclared (first use this function)
    C:\Dev-Cpp\Makefile.win [Build Error] [main.o] Error 1
    First, no spoonfeeding.

    Second, if you had ANY knowledge of C++ these errors would be pretty easy to understand or trial/error troubleshoot as there's not that much code in there, but I'll explain them to you and you can rewrite it. I won't be posting a key logger source code here and I certainly hope no one else will.

    Your sleep issue is because 'sleep' is not a standard C or C++ function. You need to work out whether your compiler comes with an implementation of the sleep function (Dev-C++ usually uses MinGW) or simply because windows.h which is included in that code requires Sleep(); not sleep();

    get_keys() was undeclared before main and main calls it. Declare it before main, or perhaps you don't have one of the headers where it is declared?
    What's a Parog?
    Looking for competitive Valorant team!

  5. #5
    ffffrf's Avatar Corporal
    Reputation
    1
    Join Date
    Jul 2012
    Posts
    28
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok so i fixed the errors but now im getting...


    24 C:\Dev-Cpp\main.cpp expected init-declarator before "int"
    24 C:\Dev-Cpp\main.cpp expected `,' or `;' before "int"
    C:\Dev-Cpp\Makefile.win [Build Error] [main.o] Error 1

  6. #6
    ffffrf's Avatar Corporal
    Reputation
    1
    Join Date
    Jul 2012
    Posts
    28
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    (post deleted)
    Last edited by ffffrf; 08-20-2012 at 09:12 PM.

  7. #7
    ffffrf's Avatar Corporal
    Reputation
    1
    Join Date
    Jul 2012
    Posts
    28
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok so i fixed that..and now im getting a buncha linker errors..... (undefined reference to...)

  8. #8
    Parog's Avatar Kitsune Da-O! M.L.G. CoreCoins Purchaser Authenticator enabled
    Reputation
    1528
    Join Date
    May 2007
    Posts
    3,160
    Thanks G/R
    540/266
    Trade Feedback
    20 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe you should just write your own instead of getting someone's old code.

    Some of the things in there just don't make sense.
    What's a Parog?
    Looking for competitive Valorant team!

Similar Threads

  1. [ArcEmu] Need help with SVN (how to use it)
    By Corpseshred in forum WoW EMU Questions & Requests
    Replies: 11
    Last Post: 10-17-2010, 03:51 PM
  2. [Help] What's up with this function? O.o
    By pantryboy in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 03-26-2010, 01:40 PM
  3. Replies: 0
    Last Post: 11-16-2009, 07:49 AM
  4. [Help] With this C++ Code.
    By jokerjokes in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 01-22-2008, 09:42 AM
  5. Would like some help with this issue...
    By Lazylol in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 08-23-2007, 04:29 AM
All times are GMT -5. The time now is 02:37 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search