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

Search:

Type: Posts; User: ixSci

Page 1 of 4 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    1
    Views
    1,029

    __FUNCTION_ and __FILE__

    Hello all,

    I've bumped into some problems with using this macros. Here they are:
    1. If I use __FILE__ macros in Debug mode then I have the full path to my source file. If I use it in Release...
  2. Replies
    7
    Views
    727

    Re: Getting File Names and sizes.

    boost::filesystem
  3. Thread: Website with C++

    by ixSci
    Replies
    10
    Views
    3,326

    Re: Website with C++

    See these frameworks: http://code.google.com/p/madfish-webtoolkit/ and http://www.fastcgi.com/drupal/node/5
    I didn't use it by myself but I took this from two articles about how to write...
  4. Replies
    30
    Views
    27,014

    Re: reinterpret_cast and where can it be used

    Do you know what he means under "not portable"? I can say that 50%(less or more) C++ features not portable between different platforms. But it's true if you use things dependent on concrete...
  5. Replies
    30
    Views
    27,014

    Re: reinterpret_cast and where can it be used

    It's not correct you can perform cast to and from void* by using static_cast, reinterpret_cast is redundant here.
    Just as complement:
    Muthuveerappan, you should follow a simple rule: Don't use...
  6. Thread: const_cast<int&>

    by ixSci
    Replies
    16
    Views
    2,913

    Re: const_cast

    There is no non-const reference but there is a const reference in C++.

    int obj = 0;
    int & const ref = obj;
    but I agree with the statement ""const reference" is meaningless in C++"
  7. Thread: const_cast<int&>

    by ixSci
    Replies
    16
    Views
    2,913

    Re: const_cast

    Reference is a part of the language which can't be changed after definition. That is why you have no opportunity just declare a reference(except class declaration and extern) but you have to define...
  8. Thread: const_cast<int&>

    by ixSci
    Replies
    16
    Views
    2,913

    Re: const_cast

    No, you was attempting to create const reference to non-cost variable. Reference is always const.
    You should be aware that using const_cast on variable which was defined as const bring you to...
  9. Re: forward declaration of class - Exception Specification

    Muthuveerappan, it's a good reason to use comments for exception specification that doesn't involve any language mechanism to handle this specification. You mentioned unexpected() function outcome...
  10. Re: forward declaration of class - Exception Specification

    It seems like you are right. Alas, I didn't find accurate statement which mentions something about forward declaration and exception specification but if you have an error relate to this then it is...
  11. Replies
    3
    Views
    791

    Re: Need help to understand const_cast here...

    BTW s2cuts you shouldn't use const_cast in such a situation(you shouldn't use it at all :) ) because using const_cast on variable which was defined with const modificator is undefined behavior.
  12. Replies
    1
    Views
    3,058

    Re: Using Case Function To Read File Lines

    The simplest way is to compare string which you read from file with the string which you code in your program.
    Your case function would something like this


    void foo(std::string xStr)
    {
    ...
  13. Replies
    2
    Views
    961

    Re: Confused by #ifdef behavior

    swprintf_s is a function and not the macros(it is not a preprocessor part at all), preprocessor can work with itself's product only. Another words, you can test only macroses which were defined by...
  14. Thread: Ansi?

    by ixSci
    Replies
    22
    Views
    8,890

    Re: Ansi?

    If you accept unexpected result why you've started this topic?
  15. Replies
    9
    Views
    4,523

    Re: heap/priority queue, FIFO or FILA?

    Since you use std::priority_queue you have no assumptions about order of the the-same-priority elements because it's implementation defined.
  16. Thread: Threads in C++

    by ixSci
    Replies
    8
    Views
    1,663

    Re: Threads in C++

    I didn't read this book and don't know its authors. I read Richter's book and I know he is very knowledgeable man and he has a good "teacher language"(I mean his books are simple to read and...
  17. Replies
    1
    Views
    640

    Re: Restrict friend class access

    The answer is very simple: get rid from friend relation. And there is no other methods in C++.
  18. Replies
    9
    Views
    4,523

    Re: heap/priority queue, FIFO or FILA?

    I don't see a declaration of your queue. What a type it has?
  19. Thread: Threads in C++

    by ixSci
    Replies
    8
    Views
    1,663

    Re: Threads in C++

    There is no book about threads in C++ because threads will become part of C++0x standard. As this standard wasn't approved yet writers didn't write any book about it.
    But you can read some books...
  20. Replies
    2
    Views
    656

    Re: Attach Class at Run Time

    Why you need a pattern? Use inheritance with virtual functions and you reach what you need.
  21. Thread: Stack and Heap

    by ixSci
    Replies
    4
    Views
    815

    Re: Stack and Heap

    not in the heap but in the free memory.
  22. Replies
    2
    Views
    734

    Re: Need help with design logic

    At first glance I see two approaches:
    1. To have a local copy of the database and work only with this copy and sometimes replace the public db to your copy.
    2. Run your application as the child...
  23. Thread: Disable DEL Key

    by ixSci
    Replies
    6
    Views
    1,318

    Re: Disable DEL Key

    You can't do it with pure C++. You need a platform-depend code whereas C++ is platform-independent language.
    I think you use windows and if I'm right then you should use WinAPI and another branch in...
  24. Thread: Ansi?

    by ixSci
    Replies
    22
    Views
    8,890

    Re: Ansi?

    Such as short int or int for example. It depends on your calculations. Choose the integral type which can fit your result or change your encrypting method, you should just throw out following...
  25. Thread: Ansi?

    by ixSci
    Replies
    22
    Views
    8,890

    Re: Ansi?

    I don't think so. If your result ciphercharacter doesn't fit char you shouldn't use char. Use larger type for your manipulation instead of char
Results 1 to 25 of 99
Page 1 of 4 1 2 3 4





Click Here to Expand Forum to Full Width

Featured