 |
Cheat Engine The Official Site of Cheat Engine
|
| 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?
|
Posted: Wed Aug 27, 2008 9:18 am Post subject: |
|
|
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 |
|
 |
kb3z0n Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 542
|
Posted: Sat Aug 30, 2008 2:16 pm Post subject: |
|
|
"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 |
|
 |
|
|
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
|
|