User Profile

Collapse

Profile Sidebar

Collapse
kiberg
kiberg
Last Activity: Nov 25 '07, 04:59 PM
Joined: Jul 16 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • kiberg
    started a topic How To Calculate TextWidth?
    in Java

    How To Calculate TextWidth?

    Hi

    Code:
    Graphics g;
    g.drawString("Hello World!", 10, 10);
    I don't know it what kind of wide the text.How to calculate it?
    ThAnKs!
    See more | Go to post

  • kiberg
    replied to how to link libws2_32.a?
    in C
    Copiler and linker output:

    C:\DOCUME~1\erv in\LOCALS~1\Tem p\ccUfdaaa.o: In function `WinMain':
    //C/Documents and Settings/ervin/Asztal/Programming TCP Sockets for the Beginner/Source Code/Dev-C++/Chat1.cpp:29: multiple definition of `WinMain@16'
    C:\DOCUME~1\erv in\LOCALS~1\Tem p\ccYtcaaa.o://c/docume~1/ervin/asztal/progra~1/source~1/dev-c_~1/chat1.cpp:29: first defined here
    C:\DOCUME~1\erv in\LOCALS~1\Tem p\ccUfdaaa.o:
    ...
    See more | Go to post

    Leave a comment:


  • kiberg
    replied to how to link libws2_32.a?
    in C
    and if I write following:
    gcc -c libws2_32.a -c Chat1.cpp -c Chat1.rc -c Chat1.h

    Then retry only is a error:
    gcc: Compilation of header file requested...... .....
    See more | Go to post

    Leave a comment:


  • kiberg
    replied to how to link libws2_32.a?
    in C
    I only wrote file names...
    So, dev c++ -> options -> copiler options -> Add the following comands when calling copiler, and I write following:
    libws2_32.a Chat1.cpp Chat1.rc Chat1.h

    I dont write commands....
    I probaly following:
    gcc -a libws2_32.a -cpp Chat1.cpp -rc Chat1.rc -h Chat1.h

    But I get following errors:
    gcc: gcc: No such file or directory
    gcc: unrecognized...
    See more | Go to post

    Leave a comment:


  • kiberg
    replied to how to link libws2_32.a?
    in C
    Thanks,
    I linking folowing files:
    libws2_32.a Chat1.cpp Chat1.rc Chat1.h

    but is a new error:

    gcc: Compilation of header file requested

    This error show when I linking chat1.h..But if I don't linking it then showing following errors:

    gcc: libws2_32.a: linker input file unused since linking not done
    gcc: Chat1.rc: linker input file unused since linking not done
    ...
    See more | Go to post

    Leave a comment:


  • kiberg
    started a topic how to link libws2_32.a?
    in C

    how to link libws2_32.a?

    Hi,

    I have a problem to compile my socket program.
    I want to use winsock.h.
    I need link libws2_32.a (for dev-c++) .
    I found a libws2_32.a file and link it, but i have a next error:
    ....
    gcc: c:\documents and settings\ervin\ asztal\programm ing tcp sockets for the beginner\source code\dev-c++\chat1.rc: linker input file unused since linking not done
    gcc: libws2_32.a: linker input file unused since...
    See more | Go to post

  • kiberg
    started a topic How To Call Pascal Dll
    in C

    How To Call Pascal Dll

    hi,
    I need functions from dll(write it pascal).
    What can I do?
    See more | Go to post

  • kiberg
    started a topic How to change font style
    in C

    How to change font style

    Hi,

    I use Dev c++ copiler, and drawing with Windows gui.The my Question is: How to change font name and style?
    Thank you all answer.
    (sry i dont good speak english.)
    See more | Go to post

  • kiberg
    started a topic Pointer to class
    in C

    Pointer to class

    hi,

    Code:
    class A
    {
     int i;
    }
    
    class B
    {
     A *a;
     int number;
    
     B(A obj){
     a=&obj;
     number=*a.i;//ERROR:
    }
    
    }
    ERROR: request for member `i' in `B:a', which is of non-aggregate type `A *'

    What's the problem?
    See more | Go to post

  • kiberg
    started a topic c++ ebook(free)

    c++ ebook(free)

    hi,

    I need ebooks about c++.I only one ebook found.
    Thanks!
    See more | Go to post

  • kiberg
    replied to wm_paint : 100% cpu
    in C
    I am afraid it is not clear to me what you mean by "when I listen WM_PAINT event".
    Sorry, i dont speak english only little...
    But your solution is good.
    Thank you very much!
    See more | Go to post

    Leave a comment:


  • kiberg
    started a topic wm_paint : 100% cpu
    in C

    wm_paint : 100% cpu

    Hi

    When I listen WM_PAINT event, the cpu is max.
    Code:
    LRESULT CALLBACK WindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
    {
    int x, y;  HDC hdc; HPEN hOldPen, hPen; HBRUSH hOldBrush, hBrush;
    y = lParam / 65536;
    x = lParam % 65536;
        switch (message)
        {  // SetTextColor(hdc,RGB(0,0,255));
                 //SetBkColor(hdc, RGB(236,232,245));
    ...
    See more | Go to post
No activity results to display
Show More
Working...