Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Type cast Cstring to LPTSTR

Type cast Cstring to LPTSTR

Scheduled Pinned Locked Moved The Lounge
helpquestion
8 Posts 5 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jose Cruz
    wrote on last edited by
    #1

    How can I type cast a CString to a LPTSTR to avoid this error: 'type cast' : cannot convert from 'char *(__thiscall CString::*)(int)' to 'char *':confused:

    T G 2 Replies Last reply
    0
    • J Jose Cruz

      How can I type cast a CString to a LPTSTR to avoid this error: 'type cast' : cannot convert from 'char *(__thiscall CString::*)(int)' to 'char *':confused:

      T Offline
      T Offline
      Tomasz Sowinski
      wrote on last edited by
      #2

      Jose, The lounge is for really serious stuff, like superiority of Americans over Canadians (or otherwise). Please post this question in Visual C++ forum. Cheers, Tomasz Sowinski -- http://www.shooltz.com

      1 Reply Last reply
      0
      • J Jose Cruz

        How can I type cast a CString to a LPTSTR to avoid this error: 'type cast' : cannot convert from 'char *(__thiscall CString::*)(int)' to 'char *':confused:

        G Offline
        G Offline
        George
        wrote on last edited by
        #3

        I think the first step is to find apropriate forum to ask the questions. Hint: This is not the one.

        C 1 Reply Last reply
        0
        • G George

          I think the first step is to find apropriate forum to ask the questions. Hint: This is not the one.

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          What's a tautology ? Christian #include "std_disclaimer.h" People who love sausage and respect the law should never watch either one being made. The things that come to those who wait are usually the things left by those who got there first.

          G K 2 Replies Last reply
          0
          • C Christian Graus

            What's a tautology ? Christian #include "std_disclaimer.h" People who love sausage and respect the law should never watch either one being made. The things that come to those who wait are usually the things left by those who got there first.

            G Offline
            G Offline
            George
            wrote on last edited by
            #5

            Pronunciation: to-'tä-l&-jE Function: noun Inflected Form(s): plural -gies Etymology: Late Latin tautologia, from Greek, from tautologos 1 a : needless repetition of an idea, statement, or word b : an instance of tautology 2 : a tautologous statement

            1 Reply Last reply
            0
            • C Christian Graus

              What's a tautology ? Christian #include "std_disclaimer.h" People who love sausage and respect the law should never watch either one being made. The things that come to those who wait are usually the things left by those who got there first.

              K Offline
              K Offline
              Kannan Kalyanaraman
              wrote on last edited by
              #6

              I remember studying this in my college..ya .. in discrete mathematics. If i remember correctly in a boolean truth table if the output is all true for an expression after evaluation its called Tautology or else its a contradiction :confused: Cheers Kannan

              C 1 Reply Last reply
              0
              • K Kannan Kalyanaraman

                I remember studying this in my college..ya .. in discrete mathematics. If i remember correctly in a boolean truth table if the output is all true for an expression after evaluation its called Tautology or else its a contradiction :confused: Cheers Kannan

                C Offline
                C Offline
                Christian Graus
                wrote on last edited by
                #7

                The definition George gave is correct. His comment was a replication of a comment made 6 1/2 hours earlier, therefore it was a tautology, which is the reason for my comment. Christian #include "std_disclaimer.h" People who love sausage and respect the law should never watch either one being made. The things that come to those who wait are usually the things left by those who got there first.

                G 1 Reply Last reply
                0
                • C Christian Graus

                  The definition George gave is correct. His comment was a replication of a comment made 6 1/2 hours earlier, therefore it was a tautology, which is the reason for my comment. Christian #include "std_disclaimer.h" People who love sausage and respect the law should never watch either one being made. The things that come to those who wait are usually the things left by those who got there first.

                  G Offline
                  G Offline
                  George
                  wrote on last edited by
                  #8

                  Well, it was not just a "replication" but rather "extension". E.g. I was reffering to the questions in general - those ought to be asked in the correct forums. I mean in general. A tautology would be looking more like: "Me too" or "I Agree"... I was also making a point supporting Tomasz's statement.

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups