About 17,500 results
Open links in new tab
  1. c - How to fix argument of type is incompatible with parameter of type ...

    I used the function isspace to search through a word for white spaces. The problem is that I get an error message when the program builds: "argument of type char* is incompatible with parameter of...

  2. How to Resolve 'Incompatible with parameter of type LPCWSTR' …

    Nov 30, 2025 · If you’ve ever worked with file system operations in C++ using Visual Studio, you’ve likely encountered the frustrating error: "argument of type 'char' is incompatible with parameter of type …

  3. E0167 argument of type "const char *" is incompatible with parameter

    Mar 30, 2020 · Your functions expects a char* as an argument, but you are passing it a const char* (because its a literal). Change the signature of your function accordingly and it will work.

  4. Passing String Pointers to Functions - C++ Forum

    Jul 23, 2020 · I chose Desktop Application (.exe) as the application type, selecting Empty project as an additional option. Added a new C/C++ file and wrote the code I posted above.

  5. c - incompatible pointer types passing 'string' (aka 'char *') to ...

    Jul 14, 2020 · Im writing a funtion that takes string as a argument and gives back a integer. This function counts lenght of a string entered at the command line argument. I get an error :" incompatible poin...

  6. Compiler Error 167 - Cookbook | Mbed

    argument of type <type1> is incompatible with parameter of type <type2> This error means that you are calling a routine which takes a parameter of type2 but you are passing in a variable of type1.

  7. C++ argument of type * is incompatible with parameter of type

    Oct 19, 2017 · This is what "argument of type 'char*' is incompatible with parameter of type 'char**'" means. To fix this, simply pass in a char **; you can do this by passing in the address of newArr …

  8. C++ argument of type is incompatible with parameter of type

    Jul 14, 2019 · You're confused about C style strings (and arrays). In C++ you should really use C++ style strings, but you've started this code with C strings so we'll carry on with that for now.

  9. c++ - argument of type * is incompatible with parameter of type ...

    Apr 2, 2020 · This code is using C-style arrays, and passing it as pointers and pointer size, which is ill-advised. Also, It doesn't use some of the most basic concepts of C++.

  10. c++ - How do I fix this "argument of type incompatible with parameter ...

    Jul 16, 2019 · Newcomer to C++ and I have created an enum for 'degree' with 3 types 'SECURITY, NETWORKING, SOFTWARE' that are returning a type error when the subclass is attempting to use …