Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 33
  1. #16
    aanthonyz's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Hitler's Minivan
    Posts
    483
    Reputation
    27
    Thanks
    83
    My Mood
    Relaxed
    Try this, I get this problem sometimes...

    Check what you are trying to built, for example if you coded a DLL, make sure your project is a DLL project, same for a console application. Sometimes I forget what type of project it is, and then I get these errors. I then just change project types and it solves my issues.

    If that doesnt solve it, check that EVERYTHING is written right.
    Last edited by aanthonyz; 03-22-2011 at 03:31 PM.
    "The best way to predict your future is to create it."

    Contributions I made:

    DirectX E-Books
    Hacking Tools
    Hacking into a PC

    Need Help?
    Send me a PM, or send me a email at : aanthonyz10@gmail.com

    Click My Dragon:


  2. #17
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    link with every lib in the package?
    Ah we-a blaze the fyah, make it bun dem!

  3. #18
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Quote Originally Posted by Hell_Demon View Post
    link with every lib in the package?
    I dont think he knows what library he even needs to download

  4. #19
    aanthonyz's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Hitler's Minivan
    Posts
    483
    Reputation
    27
    Thanks
    83
    My Mood
    Relaxed
    Quote Originally Posted by whit View Post
    I dont think he knows what library he even needs to download
    How come I always see you with a new picture?
    "The best way to predict your future is to create it."

    Contributions I made:

    DirectX E-Books
    Hacking Tools
    Hacking into a PC

    Need Help?
    Send me a PM, or send me a email at : aanthonyz10@gmail.com

    Click My Dragon:


  5. #20
    B1ackAnge1's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    455
    Reputation
    74
    Thanks
    344
    My Mood
    Cynical
    You have to pick which file to link to:
    chilkatdbg* = debug build, chilkatRel*= release obviously.
    Main factor is how do you link to your C Runtime Libraries.
    If you're linking staticly then link then use ChilKatDbg or ChilKatRel, or if you're linking dynamically then use ChilKatDbgDll.lib or ChilKatRelDll.lib

    You DO know how to add a lib to your project right?
    Common way: Right click project->Properties->Configuration Properties->Linker->Input->Additional Dependencies, add the name of the lib

  6. The Following 2 Users Say Thank You to B1ackAnge1 For This Useful Post:

    258456 (03-23-2011),why06 (03-29-2011)

  7. #21
    258456's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    ghjghj
    Posts
    1,222
    Reputation
    18
    Thanks
    300
    My Mood
    Relaxed
    i did all of that blackange1 and i get the same errors.

    here is the code:

    Code:
     #include <CkMailMan.h>
    #include <CkEmail.h>
    #include <iostream>
    void ChilkatSample();
    using namespace std;
    #pragma comment(lib, "ChilkatDbg_x64.lib")
    #pragma comment(lib, "ChilkatDbgDll_x64.lib")
    #pragma comment(lib, "ChilkatRel_x64.lib")
    #pragma comment(lib, "ChilkatRelDll_x64.lib")
    int main()
    {
    	ChilkatSample();	
    }
    void ChilkatSample()
        {
        //  The mailman object is used for sending and receiving email.
        CkMailMan mailman;
    
        //  Any string argument automatically begins the 30-day trial.
        bool success;
        success = mailman.UnlockComponent("30-day trial");
        if (success != true) {
            printf("%s\n",mailman.lastErrorText());
            return;
        }
    
        //  Set the SMTP server.
        mailman.put_SmtpHost("smtp.gmail.com");
    
        //  Set the SMTP login/password (if required)
        mailman.put_SmtpUsername("keeperto@gmail.com");
        mailman.put_SmtpPassword("12010607");
    
        //  Create a new email object
        CkEmail email;
    
        email.put_Subject("This is a test");
        email.put_Body("This is a test");
        email.put_From("Michael Ragheb <keeperto@gmail.com>");
        email.AddTo("Mikey","raghebmichael@gmail.com");
        //  To add more recipients, call AddTo, AddCC, or AddBcc once per recipient.
    
        //  Call SendEmail to connect to the SMTP server and send.
        //  The connection (i.e. session) to the SMTP server remains
        //  open so that subsequent SendEmail calls may use the
        //  same connection.
        success = mailman.SendEmail(email);
        if (success != true) {
            printf("%s\n",mailman.lastErrorText());
            return;
        }
    
        //  Some SMTP servers do not actually send the email until
        //  the connection is closed.  In these cases, it is necessary to
        //  call CloseSmtpConnection for the mail to be  sent.
        //  Most SMTP servers send the email immediately, and it is
        //  not required to close the connection.  We'll close it here
        //  for the example:
        success = mailman.CloseSmtpConnection();
        if (success != true) {
            printf("Connection to SMTP server not closed cleanly.\n");
        }
    
        printf("Mail Sent!\n");
        }
    errors are in my first post.
    thanks for all of your guys' help btw.

  8. #22
    B1ackAnge1's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    455
    Reputation
    74
    Thanks
    344
    My Mood
    Cynical
    If you're using pragma's to include your libs, DONT include them again through the project properties, but be sure to set the Lib Include directory to where they are stored.

    Also, only include ONE of those libs.. you need to figure out which one you need to include (Debug vs release and static vs dynamically linked)

    Lastly - you're linking to 64 bit libraries. Is your compiler / project setup to build for 64 bit? (just because you're running 64 bit win box doesn't mean you're buildling 64 bit EXEs) mixing 64bit libs in a 32 bit project wont' work. My main guess is that THIS is actually part of your problem - Try grabbing the 32 bit version of those libs and link to ONE
    Last edited by B1ackAnge1; 03-22-2011 at 08:33 PM.

  9. The Following 3 Users Say Thank You to B1ackAnge1 For This Useful Post:

    258456 (03-23-2011),Hell_Demon (03-23-2011),Melodia (03-23-2011)

  10. #23
    258456's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    ghjghj
    Posts
    1,222
    Reputation
    18
    Thanks
    300
    My Mood
    Relaxed
    When i add the x32 libs there are 53 errors compared to the 15 with the x64 libs.

  11. #24
    B1ackAnge1's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    455
    Reputation
    74
    Thanks
    344
    My Mood
    Cynical
    and you're linking to ONE right?
    Ya konw what - zip/rar up your crap and email it my way

  12. The Following 2 Users Say Thank You to B1ackAnge1 For This Useful Post:

    258456 (03-23-2011),Hell_Demon (03-24-2011)

  13. #25
    aanthonyz's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Hitler's Minivan
    Posts
    483
    Reputation
    27
    Thanks
    83
    My Mood
    Relaxed
    I actually think that would be the fastest method to get stuff to work.
    "The best way to predict your future is to create it."

    Contributions I made:

    DirectX E-Books
    Hacking Tools
    Hacking into a PC

    Need Help?
    Send me a PM, or send me a email at : aanthonyz10@gmail.com

    Click My Dragon:


  14. #26
    258456's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    ghjghj
    Posts
    1,222
    Reputation
    18
    Thanks
    300
    My Mood
    Relaxed
    k i sent it.

  15. #27
    B1ackAnge1's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    455
    Reputation
    74
    Thanks
    344
    My Mood
    Cynical
    What Version of Visual Studio you running? 2008 or 2010 I made a vs2008 project - only configured the Debug build. Just needed to a few extra libs (crypt32, ws2_32 and dnsapi ) to get it to build.
    Just put the chilkatdbgdll.lib in the 'libs' folder
    Last edited by B1ackAnge1; 03-23-2011 at 11:09 PM.

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

    258456 (03-24-2011),Hell_Demon (03-24-2011),why06 (03-24-2011)

  17. #28
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    B1ackAnge1 is too kind for this world... too kind... We have to destroy him D:

    Ah we-a blaze the fyah, make it bun dem!

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

    why06 (03-29-2011)

  19. #29
    B1ackAnge1's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    455
    Reputation
    74
    Thanks
    344
    My Mood
    Cynical
    don't worry - bet i'll get fed up with the retards in the other sections soon enough and disappear again haha speaking of - zeco bailed too?

  20. #30
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    Quote Originally Posted by B1ackAnge1 View Post
    don't worry - bet i'll get fed up with the retards in the other sections soon enough and disappear again haha speaking of - zeco bailed too?
    Yep, but thats cause he had no time to play games or program hacks, I've told him a thousand times that we did normal programming as well but he ain't coming back.
    He's got some weird obsession with programming crap for robots or something o_O
    Ah we-a blaze the fyah, make it bun dem!

Page 2 of 3 FirstFirst 123 LastLast