Results 1 to 9 of 9
  1. #1
    iiNarbz's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Location
    Stuff.
    Posts
    70
    Reputation
    9
    Thanks
    7
    My Mood
    Inspired

    Exclamation Why am I getting this

    The menu base ; https://www.mpgh.net/forum/207-combat...haxo-base.html
    Well I got this D3D Menu off someone here on MPGH I messed around with it abit updated my directories because I kept getting that D3D error, Then I get this,
    Code:
    1>------ Build started: Project: Test, Configuration: Debug Win32 ------
    1>  Menu.cpp
    1>  Test
    1>  Font.cpp
    1>  Test
    1>c:\users\narbz\desktop\d3dbase\font.cpp(164): error C2440: 'initializing' : cannot convert from 'const char [2]' to 'TCHAR [2]'
    1>          There is no context in which this conversion is possible
    1>  Generating Code...
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    All I see there is this,
    Code:
        TCHAR str[2] = /*_T*/("x");
    *I commented out the _T because that gave me errors too :/

    Any ideas?
    Last edited by iiNarbz; 04-18-2012 at 05:14 PM.
    Hmm.
     

    Leecher: 0 ✔
    Choob: 25 ✔
    Newbie: 50 ✔
    Member: 100 ✖
    Advanced Member: 150 ✖
    Dual-Keyboard Member: 250 ✖
    Expert Member: 500 ✖
    Bobo's Trainer: 750 ✖
    MPGH Expert: 1000 ✖
    Synthetic Hacker: 1250 ✖
    Blackhat Hacker: 1500 ✖
    Whitehat Hacker: 2000 ✖
    Bobo's Guardian: 2500 ✖
    Upcoming MPGHiean: 3000 ✖
    MPGH Addict: 3500 ✖
    MPGHiean: 4000 ✖
    MPGH Knight: 4500 ✖
    MPGH Lord: 5000 ✖
    MPGH Champion: 5500 ✖
    MPGH King: 6000 ✖
    MPGH Legend: 6500 ✖
    MPGH God: 7000 ✖
    MPGH God II: 7500 ✖
    MPGH God III: 8000 ✖
    MPGH God IV: 8500 ✖
    MPGH God V: 9000 ✖
    Arun's Slave: 9500 ✖
    Dave's Slave: 10000 ✖

  2. #2
    Refrain's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    135
    Reputation
    22
    Thanks
    28

  3. #3
    justiniscool6's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Mpgh
    Posts
    265
    Reputation
    -9
    Thanks
    7
    Try commenting out that whole line

  4. #4
    Flengo's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    /admincp/banning.php
    Posts
    20,591
    Reputation
    5180
    Thanks
    14,178
    My Mood
    Inspired
    Quote Originally Posted by justiniscool6 View Post
    Try commenting out that whole line
    Failing to learn.

    In the thread he mentioned he missed something.

    In Includes.h add this.

    Code:
    #include "TCHAR.h"
    After that, remove all the comments. It should work, did for me when I was looking at it.
    I Read All Of My PM's & VM's
    If you need help with anything, just let me know.

     


     
    VM | PM | IM
    Staff Administrator Since 10.13.2019
    Publicist Since 04.04.2015
    Middleman Since 04.14.2014
    Global Moderator Since 08.01.2013
    Premium Since 05.29.2013

    Minion+ Since 04.18.2013

    Combat Arms Minion Since 12.26.2012
    Contributor Since 11.16.2012
    Member Since 05.11.2010


  5. #5
    iiNarbz's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Location
    Stuff.
    Posts
    70
    Reputation
    9
    Thanks
    7
    My Mood
    Inspired
    Quote Originally Posted by comando2056 View Post


    Failing to learn.

    In the thread he mentioned he missed something.

    In Includes.h add this.

    Code:
    #include "TCHAR.h"
    After that, remove all the comments. It should work, did for me when I was looking at it.
    Thanks but after I do that, I get this.
    Code:
    c:\users\NUUB\desktop\ca_haxo_base\addresses.cpp(99): error C2664: 'GetModuleHandleA' : cannot convert parameter 1 from 'const wchar_t [11]' to 'LPCSTR'
    1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style case
    Any idea? But I get a bunch of those ModuleHandle things.
    Hmm.
     

    Leecher: 0 ✔
    Choob: 25 ✔
    Newbie: 50 ✔
    Member: 100 ✖
    Advanced Member: 150 ✖
    Dual-Keyboard Member: 250 ✖
    Expert Member: 500 ✖
    Bobo's Trainer: 750 ✖
    MPGH Expert: 1000 ✖
    Synthetic Hacker: 1250 ✖
    Blackhat Hacker: 1500 ✖
    Whitehat Hacker: 2000 ✖
    Bobo's Guardian: 2500 ✖
    Upcoming MPGHiean: 3000 ✖
    MPGH Addict: 3500 ✖
    MPGHiean: 4000 ✖
    MPGH Knight: 4500 ✖
    MPGH Lord: 5000 ✖
    MPGH Champion: 5500 ✖
    MPGH King: 6000 ✖
    MPGH Legend: 6500 ✖
    MPGH God: 7000 ✖
    MPGH God II: 7500 ✖
    MPGH God III: 8000 ✖
    MPGH God IV: 8500 ✖
    MPGH God V: 9000 ✖
    Arun's Slave: 9500 ✖
    Dave's Slave: 10000 ✖

  6. #6
    Sixx93's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    673
    Reputation
    21
    Thanks
    250
    My Mood
    Cool
    Quote Originally Posted by iiNarbz View Post
    Thanks but after I do that, I get this.
    Code:
    c:\users\NUUB\desktop\ca_haxo_base\addresses.cpp(99): error C2664: 'GetModuleHandleA' : cannot convert parameter 1 from 'const wchar_t [11]' to 'LPCSTR'
    1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style case
    Any idea? But I get a bunch of those ModuleHandle things.
    change from "GetModuleHandleA" to "GetModuleHandleW"

    ---------- Post added at 03:47 PM ---------- Previous post was at 03:46 PM ----------

    Quote Originally Posted by iiNarbz View Post
    Thanks but after I do that, I get this.
    Code:
    c:\users\NUUB\desktop\ca_haxo_base\addresses.cpp(99): error C2664: 'GetModuleHandleA' : cannot convert parameter 1 from 'const wchar_t [11]' to 'LPCSTR'
    1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style case
    Any idea? But I get a bunch of those ModuleHandle things.
    change from "GetModuleHandleA" to "GetModuleHandleW"

  7. The Following User Says Thank You to Sixx93 For This Useful Post:

    iiNarbz (04-21-2012)

  8. #7
    iiNarbz's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Location
    Stuff.
    Posts
    70
    Reputation
    9
    Thanks
    7
    My Mood
    Inspired
    Quote Originally Posted by Sixx93 View Post
    change from "GetModuleHandleA" to "GetModuleHandleW"

    ---------- Post added at 03:47 PM ---------- Previous post was at 03:46 PM ----------


    change from "GetModuleHandleA" to "GetModuleHandleW"
    Thanks! That worked perfectly.
    Hmm.
     

    Leecher: 0 ✔
    Choob: 25 ✔
    Newbie: 50 ✔
    Member: 100 ✖
    Advanced Member: 150 ✖
    Dual-Keyboard Member: 250 ✖
    Expert Member: 500 ✖
    Bobo's Trainer: 750 ✖
    MPGH Expert: 1000 ✖
    Synthetic Hacker: 1250 ✖
    Blackhat Hacker: 1500 ✖
    Whitehat Hacker: 2000 ✖
    Bobo's Guardian: 2500 ✖
    Upcoming MPGHiean: 3000 ✖
    MPGH Addict: 3500 ✖
    MPGHiean: 4000 ✖
    MPGH Knight: 4500 ✖
    MPGH Lord: 5000 ✖
    MPGH Champion: 5500 ✖
    MPGH King: 6000 ✖
    MPGH Legend: 6500 ✖
    MPGH God: 7000 ✖
    MPGH God II: 7500 ✖
    MPGH God III: 8000 ✖
    MPGH God IV: 8500 ✖
    MPGH God V: 9000 ✖
    Arun's Slave: 9500 ✖
    Dave's Slave: 10000 ✖

  9. #8
    Sixx93's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    673
    Reputation
    21
    Thanks
    250
    My Mood
    Cool
    Quote Originally Posted by iiNarbz View Post
    Thanks! That worked perfectly.
    no problem when u get error like that (cannot convert parameter 1 from 'const wchar_t [11]' to 'LPCSTR', etc...), always try with the overflow function.. from 'A' to 'W' and vice versa

  10. #9
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    5,052
    My Mood
    Cool
    you cant convert a char* to a TCHAR*

    so i recommend u do this

    TCHAR tstring = L "My String";

    or u can try to make the strings in the base all one thing, to make life easier.
    I just like programming, that is all.

    Current Stuff:

    • GPU Programmer (Cuda)
    • Client/Server (Cloud Server)
    • Mobile App Development

Similar Threads

  1. [Solved] Why am i getting this error?
    By Burt87 in forum Vindictus Help
    Replies: 3
    Last Post: 04-16-2012, 07:47 PM
  2. [Help Request] Why Do i get this?
    By [CFGH] in forum CrossFire Help
    Replies: 12
    Last Post: 07-20-2011, 09:04 AM
  3. [Help] Why Do I Get This >?
    By **HACKER** in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 0
    Last Post: 02-08-2011, 09:38 AM
  4. Why i keep getting this error?
    By muumimamma in forum Combat Arms EU Help
    Replies: 10
    Last Post: 07-03-2010, 10:19 PM
  5. D3D base error, Why im i getting this?
    By HazXoD3D in forum C++/C Programming
    Replies: 5
    Last Post: 10-15-2009, 11:05 AM