Originally Posted by
eth0nic
You are probably a 13 year old fat boy who does not even realize what bullshit he is writing.
The network stack is something that belongs to the operating system and not the programming language ... especially so with Perl and Python. Those languages do not have their own networking stack. Or do you mean the stack of the process ... which would make even less sense.
There is no such thing as a "packet ORM" ... ORM is an abstraction model for dealing with pre-NoSQL databases.
There is no "sockets server" to be used with C++? That sentence makes zero sense in that context.
Also C++/Boost does not use a custom network stack either ... maybe some weird Firewall company got their own tcp/ip stack implemented but that has nothing to do with C++.
You are so full of shit.
---------- Post added at 06:05 PM ---------- Previous post was at 05:53 PM ----------
Military hacker asking someone who codes in openEuphoria whether he uses XNA of Flash ...
WCF if a ORM P2P network that also support TCP ORM. and a few others And ORM supports all SQL MSSQL, aka why Microsoft made Linq to SQL...
And me 13 try 21, and knowing how to code and more... I have been coding since i was 5.
I also wrote my own ORM Packet Class that manages packets much better cause it uses the same method as a original ORM SQL.
-Anyways tired of kids, lets get back on topic, Trapped i will be uploading a updated version of your client that will fix warnings, and separate your client into different classes
I was bored... This has nothing to do with anything just lets you add a hint text to textboxes and combo boxes in C#
Code:
using System;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using System.Text;
namespace MCCleaner.MC_Engine
{
public class Win32Utility
{
[DllImport("user32.dll", CharSet = CharSet.Auto)]
private static extern Int32 SendMessage(IntPtr hWnd, int msg,
int wParam, [MarshalAs(UnmanagedType.LPWStr)] string lParam);
[DllImport("user32.dll")]
private static extern bool SendMessage(IntPtr hwnd, int msg, int wParam, StringBuilder lParam);
[DllImport("user32.dll")]
private static extern bool GetComboBoxInfo(IntPtr hwnd, ref COMBOBOXINFO pcbi);
[StructLayout(LayoutKind.Sequential)]
private struct COMBOBOXINFO
{
public int cbSize;
public RECT rcItem;
public RECT rcButton;
public IntPtr stateButton;
public IntPtr hwndCombo;
public IntPtr hwndItem;
public IntPtr hwndList;
}
[StructLayout(LayoutKind.Sequential)]
private struct RECT
{
public int left;
public int top;
public int right;
public int bottom;
}
private const int EM_SETCUEBANNER = 0x1501;
private const int EM_GETCUEBANNER = 0x1502;
public static void SetCueText(Control control, string text)
{
if (control is ComboBox)
{
COMBOBOXINFO info = GetComboBoxInfo(control);
SendMessage(info.hwndItem, EM_SETCUEBANNER, 0, text);
}
else
{
SendMessage(control.Handle, EM_SETCUEBANNER, 0, text);
}
}
private static COMBOBOXINFO GetComboBoxInfo(Control control)
{
COMBOBOXINFO info = new COMBOBOXINFO();
//a combobox is made up of three controls, a button, a list and textbox;
//we want the textbox
info.cbSize = Marshal.SizeOf(info);
GetComboBoxInfo(control.Handle, ref info);
return info;
}
public static string GetCueText(Control control)
{
StringBuilder builder = new StringBuilder();
if (control is ComboBox)
{
COMBOBOXINFO info = new COMBOBOXINFO();
//a combobox is made up of two controls, a list and textbox;
//we want the textbox
info.cbSize = Marshal.SizeOf(info);
GetComboBoxInfo(control.Handle, ref info);
SendMessage(info.hwndItem, EM_GETCUEBANNER, 0, builder);
}
else
{
SendMessage(control.Handle, EM_GETCUEBANNER, 0, builder);
}
return builder.ToString();
}
}
}