|
| 14 May 2013 10:14 PM |
invalid operands of types `const char*' and `const char[1]' to binary `operator+'
int count = SendMessage(the_thingy, LB_GETCOUNT, 0, 0); ListBox_AddString(the_thingy, ""+count+"");
Help please inb4ban |
|
|
| Report Abuse |
|
|
|
| 14 May 2013 10:26 PM |
Hold on I'm a noob lol I have no idea what I'm doing right now, brb |
|
|
| Report Abuse |
|
|
|
| 14 May 2013 10:42 PM |
Okay here's my problem now
I have a function: void something(){ int count = SendMessage(the_thingy, LB_GETCOUNT, NULL, NULL); //other stuff }
But the thing is, the variable it uses is declared in the LRESULT CALLBACK so I get some errors about NULL
LRESULT CALLBACK Ok(...){ HWND the_thingy; the_thingy = GetDlgItem(hwndDlg, IDC_THINGY); }
How do I solve this |
|
|
| Report Abuse |
|
|
|
| 15 May 2013 12:39 AM |
^ Ignore that, I fixed it
Now how do I create a listview? I checked the Microsoft site under Resource-Definition Statements and Listbox is listed but Listview isn't Creating it with CreateWindow won't work :-( |
|
|
| Report Abuse |
|
|
|
| 15 May 2013 12:57 AM |
| This is a roblox lua discussion forum, not a C(++) help forum. |
|
|
| Report Abuse |
|
|
|
| 15 May 2013 01:09 AM |
Be quiet noob
Would it just be better to use Java because there is only one Java, not this: C / C# / C++ / etc...
But from what I hear class files are easily decompiled which is why I stopped using Java |
|
|
| Report Abuse |
|
|
DrHaximus
|
  |
| Joined: 22 Nov 2011 |
| Total Posts: 8410 |
|
|
| 15 May 2013 01:38 AM |
Well, firstly you stop using the Windows API on C++, then you go to a dedicated C++ help forum.
I kid of course, but seriously, in my opinion using the Windows API on C++ defeats some of the purpose of using C++. |
|
|
| Report Abuse |
|
|
|
| 15 May 2013 01:45 AM |
Hi Dr I am under the impression that in C++, winApi is the only way to make a windows application
I am trying to create a program with a ListView :-( |
|
|
| Report Abuse |
|
|
|
| 15 May 2013 09:23 AM |
@DrHaximus
But winapi is the only way to learn to avoid winapi in whatever comes with it... |
|
|
| Report Abuse |
|
|
|
| 15 May 2013 02:18 PM |
Did you seriously call Brandonhare a noob. He has a hell of a lot more seniority and experience than you'll ever have. Here's an idea: Why don't you be quiet and see yourself out of this forum section? |
|
|
| Report Abuse |
|
|
DrHaximus
|
  |
| Joined: 22 Nov 2011 |
| Total Posts: 8410 |
|
|
| 15 May 2013 02:24 PM |
@bat
Sorry about the bump, but I was asleep. No it's not, you can use OpenGL, which compiles on all three operating systems and allows you to create your own components. :) |
|
|
| Report Abuse |
|
|