Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


error C2872: 'MessageBox' : ambiguous symbol
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Wed Aug 27, 2008 9:18 am    Post subject: Reply with quote

Too bad I don't know C# lol. Oh and how do I use StringToHGlobalAnsi. I got the address of the pointer but I can't get my char* to point to that address x_x.

Code:

String^ sendbuf = SendEdit->Text;
IntPtr locAnsi = Marshal::StringToHGlobalAnsi(sendbuf);
char *rsendbuf = locAnsi;
send(ClientSocket, rsendbuf, 512, NULL);


Quote:

------ Build started: Project: pIM Server, Configuration: Debug Win32 ------
Compiling...
pIM Server.cpp
c:\documents and settings\oib\my documents\visual studio 2008\projects\pim server\pim server\Form1.h(185) : error C2440: 'initializing' : cannot convert from 'System::IntPtr' to 'char *'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
Build log was saved at "file://c:\Documents and Settings\OIB\My Documents\Visual Studio 2008\Projects\pIM Server\pIM Server\Debug\BuildLog.htm"
pIM Server - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
kb3z0n
Grandmaster Cheater
Reputation: 0

Joined: 13 Mar 2007
Posts: 542

PostPosted: Sat Aug 30, 2008 2:16 pm    Post subject: Reply with quote

"Error" Is the Title of the window box, and "OK" is the Button.


Heres a code i did it in like 2 seconds lol.

Code:

MessageBox::Show("This is a Message Box","Hello",MessageBoxButtons::OK,MessageBoxIcon::Asterisk);


"Hello" Is the title,"this is a messagebox" Is the text on the message box,

MessageBoxButtons::OK Is the button OK on the message box

MessageBoxIcon::Asterisk is the Information icon.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites