generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: invalid operands of types `const char*' ...

Previous Thread :: Next Thread 
batistapowerbonbtla is not online. batistapowerbonbtla
Joined: 16 Dec 2011
Total Posts: 2203
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
batistapowerbonbtla is not online. batistapowerbonbtla
Joined: 16 Dec 2011
Total Posts: 2203
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
batistapowerbonbtla is not online. batistapowerbonbtla
Joined: 16 Dec 2011
Total Posts: 2203
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
batistapowerbonbtla is not online. batistapowerbonbtla
Joined: 16 Dec 2011
Total Posts: 2203
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
Brandonhare is not online. Brandonhare
Joined: 02 May 2007
Total Posts: 11005
15 May 2013 12:57 AM
This is a roblox lua discussion forum, not a C(++) help forum.
Report Abuse
batistapowerbonbtla is not online. batistapowerbonbtla
Joined: 16 Dec 2011
Total Posts: 2203
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 is not online. 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
batistapowerbonbtla is not online. batistapowerbonbtla
Joined: 16 Dec 2011
Total Posts: 2203
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
Radioaktiivinen is not online. Radioaktiivinen
Joined: 25 Apr 2009
Total Posts: 18629
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
AbsoluteLOL is not online. AbsoluteLOL
Joined: 01 Dec 2012
Total Posts: 3939
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image