CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: zifeer

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. Client Socket Fails to Connect to ServerSocket

    I have a server socket listening on port 5077 and waiting for client connections

    boolean listening = true;
    while (listening)
    new ServerThread(server.accept()).start();
    where ServerThread...
  2. Replies
    2
    Views
    1,393

    Re: Display a certain tab from JTabbedPane

    Thank you, that did exactly what I wanted :)
  3. Replies
    3
    Views
    828

    Re: How to get CPU information?

    Mainly its processing speed (Hz, cycles/sec) but I can find use of whatever information that can be extracted.
  4. Replies
    3
    Views
    828

    How to get CPU information?

    I want to output some information about the CPU on a computer. I found out how to display System information but not CPU. If it makes any difference, I'm using Windows.

    Thank you :)
  5. Replies
    2
    Views
    1,393

    Display a certain tab from JTabbedPane

    Hi,

    I have a JTabbedPane with 3 tabs (each tab has a JScollPane which has a JTextArea). I want to be able to display a certain tab on a button click. For example, I'm currently looking at tab1, I...
  6. Replies
    7
    Views
    1,180

    Re: Datatype for hexadecimal

    Never mind, I'll just apply all arithmetic operations using the integer value and then use toHexString() to get the hexadecimal output.

    Thank you for your replies.
  7. Replies
    7
    Views
    1,180

    Datatype for hexadecimal

    Hi,

    I want to convert a character to its hexadecimal equivalent (which I'll probably figure out how from the documentation) but I was wondering what datatype can I use to store the hexadecimal...
  8. Replies
    13
    Views
    2,512

    Re: Calculate execution time

    Thank you, more resources is always better :) :D
  9. Replies
    13
    Views
    2,512

    Re: Calculate execution time

    Hi,

    Thank you all for your replies, it has been very beneficial for my research. I've used this code and it works great:

    #include <sys/timeb.h>
    #include <iostream>

    using namespace std;
    ...
  10. Replies
    13
    Views
    2,512

    Re: Calculate execution time

    Excuse me for my dumb question; but it seems my knowledge about c++ and visual c++ compilers is very little. I use Microsoft Visual C++ 6.0 to program and the timeGetTime function (or DWORD datatype)...
  11. Replies
    13
    Views
    2,512

    Re: Calculate execution time

    I care about the execution time of the whole operation (with the loop), I want to know what are the functions I can use to get the time. If you may give an example please.
  12. Replies
    13
    Views
    2,512

    Calculate execution time

    Hi,

    I want to calculate the execution time (in milliseconds) of a certain instruction. I wonder if there's any function to embed, for example:

    int sum = 0;
    // get start time (ms)
    for (int...
  13. Replies
    16
    Views
    2,489

    Re: Multiply number with decimal point

    Thanx for the link :D
  14. Replies
    16
    Views
    2,489

    Re: Multiply number with decimal point

    Thanx for that code, but I tried to compile it using MASM615 (ofcourse I made the needed changes for the data and other instructions) but it didn't work. The compiler didn't recognize the FloatPrint...
  15. Replies
    16
    Views
    2,489

    Re: Multiply number with decimal point

    So it's not possible using only asm?

    If not, how can I embed C (or C++) into asm?
  16. Replies
    16
    Views
    2,489

    Re: Multiply number with decimal point

    I think I understand how it works, but my problem is printing the result on screen. In Irvine32.inc there're procs like WriteInt and WriteDec but these do not show the correct result. How can I make...
  17. Replies
    16
    Views
    2,489

    Re: Multiply number with decimal point

    Can you please give me an example on using fmul. I've read about it but I still don't understand how to use it.
  18. Replies
    16
    Views
    2,489

    Re: Multiply number with decimal point

    Never mind, I got it. I should use FMUL instead of MUL or IMUL.


    Thank you :)
  19. Replies
    16
    Views
    2,489

    Re: Multiply number with decimal point

    I didn't understand what you meant by "lean FPU" could you please elaborate more?

    PS: I use MASM615 for assembling.
  20. Replies
    16
    Views
    2,489

    Multiply number with decimal point

    Hi,

    How can I use a number containing a decimal point using MUL (or IMUL). I want to multiply 3.14 to calculate the area of a circle but I can't figure out how.

    Thank you.
  21. Replies
    2
    Views
    2,409

    Re: How to add, multiply...?

    Yeah, I've researched a little bit about it and figured out that I have this whole addition/multiplication/division issue all mixed up. I will loop and use these instructions you stated.

    Thanks...
  22. Replies
    2
    Views
    2,409

    How to add, multiply...?

    I've written this 32-bit assembly code:
    (It's supposed to read 4 numbers from the keyboard and print the sum, product and average)

    include irvine32.inc

    .data
    value1 dd ?
    value2 dd ?...
  23. Replies
    11
    Views
    2,038

    Re: comparing objects from a binary file

    By entry I mean like I created a binary file and wrote to it 30 employee objects (which I call 30 entries). If I try and write every private variable of each object to the file, I then can't write to...
  24. Replies
    11
    Views
    2,038

    Re: comparing objects from a binary file

    Thank you very much :) I did read you initial posts and the topic you linked to but I still haven't grasped the idea perfectly. But now after your example I used the 2nd method which is as you said...
  25. Replies
    11
    Views
    2,038

    Re: comparing objects from a binary file

    I tried testing whether the objects are being read correctly, so I created a binary file which accepts employee entries and wrote 3 entries into it:

    #include <stdlib.h>
    #include <iostream.h>...
Results 1 to 25 of 40
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured