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

Search:

Type: Posts; User: andrey_zh

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Re: Newbie question about different languages and what they can do (mainly C++)

    Indeed C++ doesn't provide any libraries for GUI by default. In Windows you can use WinAPI and MFC for GUI but in this case you'll lose portability. There are third-party widget toolkits for C++ -...
  2. Re: [Problem] Composition aka Writing programs in multiple files

    You have to options, either track dependencies on your own (write Makefile etc.) or rely on your IDE.

    Review extern and static keywords. Also don't forget about include guards or #pragma once.
  3. Replies
    2
    Views
    436

    Re: string as stream

    It works great! Thanks! Thread resolved!
  4. Replies
    2
    Views
    436

    [RESOLVED] string as stream

    Hello!

    I'm solving one problem related to parsing of text files. It would be very convenient for me to read ifstream line by line at first, treat every line as string (preferably c++ string), then...
  5. Replies
    25
    Views
    4,602

    Re: using linux commands in C++ code

    That's my advice related to your post from 07:29 PM.

    First, use batch (seems this is bash .sh in Linux) files.

    Let your programs are named getUnique and getDuplicates.

    Run 'em and stream...
  6. Replies
    25
    Views
    4,602

    Re: using linux commands in C++ code

    Well, run your program like "./myprogram >file1.txt".

    From your program start another program with system( "./otherprogram >file2.txt" );

    Compare file1.txt and file2.txt somehow.

    Execute...
  7. Replies
    25
    Views
    4,602

    Re: using linux commands in C++ code

    It's quite easy to do this without any redirection of streams.

    How are you going to call your program?

    P.S. You may use 'cat' command to print a file to console.
  8. Replies
    25
    Views
    4,602

    Re: using linux commands in C++ code

    I'm confused too.

    If you just need to run a program from your code form a command and pass it to system():


    int main()
    {
    system( "./runApp > abc.log" );
    }
  9. Replies
    10
    Views
    4,723

    Re: [C++] East European Fonts - Windows console

    You you are using Windows console use WinAPI only.

    See this thread: http://www.codeguru.com/forum/showthread.php?t=472959
  10. Replies
    25
    Views
    4,602

    Re: using linux commands in C++ code

    Try system(): http://www.cplusplus.com/reference/clibrary/cstdlib/system/
  11. Replies
    1
    Views
    1,296

    profiler for Visual C++ 2005

    Hello!

    Could you recommend me a good profiler for Visual Studio 2005?

    Whether there is a build in profiler in VS? (And how can I get to it?)

    P.S. When I say 'good' profiler I mean an easy to...
  12. Re: Convert int of unknown number of bits to 32 bits int

    Coz 2196550012 is out of range of int type! do like that (int)(2196550012L). If you have it in a file either read as long or as a String, then convert.



    This is true for 32 bit representation,...
  13. Re: Convert int of unknown number of bits to 32 bits int

    2196550012_10 = 82ECB17C_16

    82_16 = 130
    EC_16 = 236
    B1_16 = 177
    7C_16 = 124

    Seems you have to use masks if you need to split an integer to four octets.

    a.b.c.d
  14. Re: Convert int of unknown number of bits to 32 bits int

    Do you need to covert a String to integer?

    By the way "2196550012" can be represented with log2(2196550012) = 31.03.... => 32 bits.

    You have 2 options:

    1) Use library routines. You probably...
  15. Re: Recommend database engine for Java program

    You are generally right in evaluation of my skills. I have written only one (!) program that uses databases so far. (That was a Web-"page" on PHP and SQL database.) Basically I already know some...
  16. Re: Recommend database engine for Java program

    First, not gigabytes but just about 200-500MB. (I'm writing this app for fun and to learn Java, so this is a very optimistic estimation of dictionary completeness.) I don't think that database size...
  17. [RESOLVED] Recommend database engine for Java program

    Hello!

    I'm implementing a multilingual dictionary. (In fact, I have plans to extend it to machine translation system.) I need a database engine for it. Here is a list of my demands for the...
  18. Replies
    31
    Views
    2,540

    Re: Random numbers

    Just tested it on original Borland C++ 3.1. You're right, the period is longer than 232.
    I'm surprised, this typo could survive through years and some printed books.
  19. Replies
    31
    Views
    2,540

    Re: Random numbers

    This was copied exactly as it is in Borland C++ Help, I believe it was lost before:
    Have a look:
    (1) http://poli.cs.vsb.cz/c/help/stdlib0.htm#LBL66
    (2)...
  20. Replies
    31
    Views
    2,540

    Re: Random numbers

    From Borland C++ 3.1 Help, article rand():


    It used to be so in some old C standard (C89 I guess), then it was fixed.
  21. Replies
    31
    Views
    2,540

    Re: Random numbers

    A proposal: May be the period of generator is shorter than 1000. Let us number the given sequence from 1 to 1000. Search for 1000-th number among first 999. If found, say it's i-th check whether...
  22. Replies
    1
    Views
    495

    Graph design in Java

    Hi, there!

    I need to implement a general purpose graph and I've stuck with OOP design.

    The graph is very general, just vertices and edges. Also I'll need to iterate through vertices and edges....
  23. Replies
    10
    Views
    754

    Re: question about allocator class

    For MinGW, use "-pedantic -Wall" flags to view all warnings.
  24. Replies
    11
    Views
    1,291

    Re: requesting password creation advice

    It looks like some activation scheme...

    Well, consider using digital signatures.

    Have a look at your hardware ids. You may sign them separately to allow user to change some hardware components....
  25. Replies
    6
    Views
    995

    Re: Coding Style: code spell-check

    I didn't really understood what you mean. If you think that tongue is only a part of body than you are false, see http://en.wikipedia.org/wiki/Native_language, or...
Results 1 to 25 of 128
Page 1 of 6 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center