User Profile

Collapse

Profile Sidebar

Collapse
lini
lini
Last Activity: Sep 20 '18, 05:51 PM
Joined: Mar 2 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • lini
    replied to How I create my own data type in c
    in C
    Do you mean a C structure?

    struct DBMS {
    char field[16]
    };
    See more | Go to post

    Leave a comment:


  • lini
    replied to variables in interface
    in Java
    Can you post some code here?
    See more | Go to post

    Leave a comment:


  • lini
    replied to How to open a window with console application?
    in Java
    wild guess, on Windows you may create a process and pass the command "cmd java console_app", it should open a new console to run the application.
    See more | Go to post

    Leave a comment:


  • lini
    replied to MFC basic applications
    in C
    Hi,

    This is a good one:
    Visual C++ Tutorial - FunctionX

    There are many others ...
    Cheers,
    Lini
    See more | Go to post

    Leave a comment:


  • lini
    replied to drawing a moveable line in MFC
    in C
    Hi,
    Very wild guess is you keep invalidating the area where the line is and inside your WM_PAINT handler draw it again at another position. Alternatively you may switch your draw mode, so that when you draw the same line, it is actually erased, and then switch back to normal mode and draw it again at another position.

    Once again, just a guess, correct me if I am wrong!
    Cheers,
    Lini
    See more | Go to post

    Leave a comment:


  • lini
    replied to error c2059
    in C
    That would mean, the function requires pointers to VARIANT, currently the r and c are integers. I think you would need to convert them to VARIANT.
    See more | Go to post

    Leave a comment:


  • lini
    replied to error c2059
    in C
    hi jainchar,

    as far as I understand, NumRows and NumCols in your code are pointers to VARIANT structures.

    if NumRows is defined as

    VARIANT NumRows;

    then you should try:

    if (cell.Split(&r, &c))
    {
    }

    As an example of usage, maybe you can take a look here:
    IAccessible::ac cHitTest

    hope this helps.

    Cheers,
    Lini
    See more | Go to post

    Leave a comment:


  • lini
    replied to error c2059
    in C
    Google is your friend! To save you a click here is one result:

    Compiler Error C2059 (C++)

    good luck
    See more | Go to post

    Leave a comment:


  • A header file contains declaration of something (constants, classes, ...), usually ends with a .h or hpp extension.

    A DLL (dynamically linked library) is a binary file (with .dll, .ocx, .a, ... extentions), containing functions, resources, ... and can be linked to your program at run-time. In order to use a DLL you need to include the corresponding header file, which declares things in the DLL, so that your program gets compiled. The...
    See more | Go to post

    Leave a comment:


  • Take a look at this
    http://www.dreamincode.net/code/snippet357.htm

    suppose you have on Windows a file called openBrowser like this:
    #include <windows.h>

    void main()
    {
    ShellExecute(NU LL, "open", "http://dreamincode.net ", NULL, NULL, SW_SHOWNORMAL);
    }

    compile it by:
    cl /EHsc openBrowser.cpp /link shell32.lib

    ch33rs,...
    See more | Go to post

    Leave a comment:


  • lini
    replied to File Size
    in C
    cross-platform:

    Code:
      ifstream is;
      is.open ("test.txt", ios::binary );
    
      // get length of file:
      is.seekg (0, ios::end);
    cheers,
    lini
    See more | Go to post

    Leave a comment:


  • lini
    started a topic check input from standard input stream?
    in C

    check input from standard input stream?

    Hello,
    I am writing some code in the scenario which can be described as follow:
    + program A which writes to standard output (e.g. cout >> whatever).
    + program B which has GUI and also listens to the standart input regularly (using a timer) if there is no input, it returns to the GUI and does something else.

    What I expect is B should work without problem in both cases:
    (1) user@host $ A | B
    ...
    See more | Go to post
No activity results to display
Show More
Working...