Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
F

Frozzeg

@Frozzeg
About
Posts
25
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Transparent image as background of a window. How?
    F Frozzeg

    thx a lot for giving me right vector

    ATL / WTL / STL question

  • Transparent image as background of a window. How?
    F Frozzeg

    something like that http://westyle.ru/uploads/posts/2011-07/1310567617_transparent.png[^]

    ATL / WTL / STL question

  • Select Area
    F Frozzeg

    it did not help anyway thx

    modified on Sunday, April 18, 2010 5:41 AM

    C# graphics

  • Select Area
    F Frozzeg

    Hello. I wrote a simple select area, but its working slow when form is maximized, who knows some alternative fast methods for this here is my code sry for bad english

    public partial class Form1 : Form
    {
    bool canResize;
    int mX, mY;
    Rectangle rect = new Rectangle();

        public Form1()
        {
            InitializeComponent();
        }
    
        private void Form1\_Paint(object sender, PaintEventArgs e)
        {
            e.Graphics.DrawRectangle(new Pen(Brushes.Purple, 2), rect);
        }
    
        private void Form1\_MouseDown(object sender, MouseEventArgs e)
        {
            canResize = true;
            mX = e.X; mY = e.Y;
    
            rect.Location = new Point(mX, mY);
        }
    
        private void Form1\_MouseUp(object sender, MouseEventArgs e)
        {
            canResize = false;
        }
    
        private void Form1\_MouseMove(object sender, MouseEventArgs e)
        {
            if (canResize)
            {
                if (mX < e.X)
                {
                    rect.X = mX;
                    rect.Width = e.X - mX;
                }
                else
                {
                    rect.X = e.X;
                    rect.Width = mX - e.X;
                }
                if (mY < e.Y)
                {
                    rect.Y = mY;
                    rect.Height = e.Y - mY;
                }
                else
                {
                    rect.Y = e.Y;
                    rect.Height = mY - e.Y;
                }
                this.Invalidate();
            }
        }
    }
    
    C# graphics

  • Asynchronous socket programming
    F Frozzeg

    ok, very helpful, thx!

    C#

  • Asynchronous socket programming
    F Frozzeg

    at to fast message sending i get 1 incoming message with 10 grouped packets and not 1 packet for each of 10 incoming messages for p.s. sry for terrible english

    C#

  • Trouble with drawing on winfrom in new thread
    F Frozzeg

    form1.CreateGraphics() and this is workling in other thread

    C# graphics help

  • Trouble with drawing on winfrom in new thread
    F Frozzeg

    Thread th = new Thread(delegate() { e.Graphics.DrawEllipse(new Pen(Brushes.Aqua, 10), new Rectangle(20, 20, 20, 20)); //this line throw new exception "Invalid argument" }); th.Start(); help pls

    C# graphics help

  • How to limit the number of simultaneously connected clients
    F Frozzeg

    in Apache done that I need, Apache accepting first 300 connections and then he stop accepting new connection before i destroy old connections i.e. it does not accept a new connection, and immediately disconnect, just an exception when i trying to do 301-th connection

    C# tutorial question

  • How to limit the number of simultaneously connected clients
    F Frozzeg

    or rather I need to limit the maximum number of connections that can make 1 client p.s. sry for my english

    C# tutorial question

  • How to limit the number of simultaneously connected clients
    F Frozzeg

    Adn can it be done before calling Socket.Accept() ?

    C# tutorial question

  • Multiclient server application
    F Frozzeg

    yes ok, thx

    C# sysadmin tutorial question

  • Multiclient server application
    F Frozzeg

    how to make server which 10 000 clients and more?

    C# sysadmin tutorial question

  • how can i send and receive packets by using network connection of another application?
    F Frozzeg

    subject

    C# question sysadmin

  • AccessViolationException in OdbcDataReader
    F Frozzeg

    "Does the loop run at least once?" - no Ok, thx

    C# mysql

  • AccessViolationException in OdbcDataReader
    F Frozzeg

    System.AccessViolationException was unhandled Message="Attempting to read or write protected memory. This often indicates that other memory is damaged." Source="System.Data" StackTrace: в System.Data.Common.UnsafeNativeMethods.SQLGetData(OdbcStatementHandle StatementHandle, UInt16 ColumnNumber, SQL_C TargetType, CNativeBuffer TargetValue, IntPtr BufferLength, IntPtr& StrLen_or_Ind) в System.Data.Odbc.OdbcStatementHandle.GetData(Int32 index, SQL_C sqlctype, CNativeBuffer buffer, Int32 cb, IntPtr& cbActual) в System.Data.Odbc.OdbcDataReader.GetData(Int32 i, SQL_C sqlctype, Int32 cb, Int32& cbActualOut) в System.Data.Odbc.OdbcDataReader.internalGetString(Int32 i) в System.Data.Odbc.OdbcDataReader.GetValue(Int32 i, TypeMap typemap) в System.Data.Odbc.OdbcDataReader.GetValue(Int32 i) в FMySQLClient.MySQL.FetchArray(OdbcDataReader& reader) в C:\FMySQLClient\FMySQLClient\MySQL.cs:line 199 в FMySQLClient.Form1.button1_Click(Object sender, EventArgs e) в C:\FMySQLClient\FMySQLClient\Form1.cs:line 30 в System.Windows.Forms.Control.OnClick(EventArgs e) в System.Windows.Forms.Button.OnClick(EventArgs e) в System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) в System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) в System.Windows.Forms.Control.WndProc(Message& m) в System.Windows.Forms.ButtonBase.WndProc(Message& m) в System.Windows.Forms.Button.WndProc(Message& m) в System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) в System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) в System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) в System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) в System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) в System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) в System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) в System.Windows.Forms.Application.Run(Form mainForm) в FMySQLClient.Program.Main() в C:\FMySQLClient\FMySQLClient\Program.cs:line 18 в System.AppDomain._nExecuteAssemb

    C# mysql

  • AccessViolationException in OdbcDataReader
    F Frozzeg

    It was a stupid mistake in "for", I mistakenly used instead of - +, thx but i still have AccessViolationException P.S. sry for my English

    C# mysql

  • AccessViolationException in OdbcDataReader
    F Frozzeg

    In the first message, I pointed to a code string with an error

    C# mysql

  • AccessViolationException in OdbcDataReader
    F Frozzeg

    it did not help

    C# mysql

  • AccessViolationException in OdbcDataReader
    F Frozzeg

    public Hashtable FetchArray(ref OdbcDataReader reader)
    {
    int counter = 0;
    int integer = reader.FieldCount;
    Hashtable hashtable = new Hashtable();
    if (reader.Read())
    {
    for (int i = 0; i <= integer+1; i++)
    {
    hashtable.Add(reader.GetName(i), reader.GetValue(i)); // Exception here
    }
    counter++;
    }
    return hashtable;
    }

    Im using MySQL Connector/ODBC 5.1

    C# mysql
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups