Search Results - VBForums

Search:

Type: Posts; User: Atheist

Page 1 of 13 1 2 3 4

Search: Search took 0.15 seconds.

  1. Replies
    58
    Views
    2,187

    Re: What watch do you wear?

    I wear an Omega Speedmaster 3570. I like it alot, but I've been thinking about trading it for another watch in the near future.
  2. Replies
    2
    Views
    728

    Re: Void Pointer Function type

    No unfortunately that is not correct. What you are doing is that you are casting size to a pointer type. That basically means that you are giving the caller a pointer pointing at memory that you do...
  3. Re: how build a dynamic array from a struture?

    There are many different types of containers in the standard library. Take a look at the vector class for instance (http://http://www.cplusplus.com/reference/vector/vector/)
  4. Replies
    1
    Views
    765

    Re: Having trouble switching endians

    To swap endianness, you need to "mirror" the bytes in the value. For instance, to swap the endianness of a 32-bit integer, you'd do something like this:



    int32_t swap(int32_t in)
    {
    return...
  5. Replies
    172
    Views
    5,535

    Re: The State of VBForums

    You are all sponges in my book.
  6. Replies
    6
    Views
    1,298

    Re: [C++] - strange things:(

    Do you mean it takes a long period of time to open the project, or to run the project?
    If it is the latter, I would suggest you look in the output-window of the build process. What is happening when...
  7. Replies
    6
    Views
    1,298

    Re: [C++] - strange things:(

    Comparing name and "exit" will only compare the pointers, there will be no string comparison. Take a look at strcmp
  8. Thread: C vs C++

    by Atheist
    Replies
    2
    Views
    1,265

    Re: C vs C++

    What do you mean when you say that you only work with timers?
  9. Replies
    12
    Views
    2,508

    Re: problem with memory alocation

    Why not run it with Valgrind to find out if there is a problem or not?
  10. Replies
    13
    Views
    1,511

    Re: C++ Help library

    You will never learn if you do not try. Having other people write your homework assignments for you will not get you anywhere.
  11. Replies
    13
    Views
    1,511

    Re: C++ Help library

    What kind of help are you expecting to get? Should someone write the entire project for you?
  12. Replies
    13
    Views
    1,511

    Re: C++ Help library

    Just break the task into manageable pieces and solve it one step at a time. If you get stuck, do not hesitate to post a question!
  13. Replies
    13
    Views
    1,511

    Re: C++ Help library

    Have you read anything about reading and writing to files? Take a look here.
    I guess how well-designed this project should be depends on your level of knowledge and the level of the course you are...
  14. Replies
    13
    Views
    1,511

    Re: C++ Help library

    Your problem description is a little vague.
    Are you supposed to be able to enter book information that will be save to a database? Or a file of some sort? Or perhaps just in-memory?
    Is this C or...
  15. Replies
    13
    Views
    1,511

    Re: C++ Help library

    Is this homework of some kind? Have you got anything so far?
  16. Replies
    12
    Views
    2,508

    Re: problem with memory alocation

    I dont see any attached files.
  17. Replies
    1
    Views
    1,913

    Re: cin.get() and cin.ignore() in C++

    You should read some introductory article on c++ streams, such as this one: http://www.cprogramming.com/tutorial/c++-iostreams.html
    I haven't personally read that specific article, but it seems OK....
  18. Replies
    2
    Views
    1,211

    Re: Output isn't showing

    That is the debug output.
    You are writing to the standard output, which in this case is the console windows output. You're just not seeing it because the window closes so fast.
    You can always read...
  19. Re: Passing too many arguments - can I make some kind of structure for these?

    Yes you can create a struct or a class to hold them all, and pass it instead.



    class Rule
    {
    public:
    bool cwOn;
    WCHAR cwR;
    // etc..
  20. Replies
    8
    Views
    1,178

    Re: C++ Create an Array in a loop

    I actually enjoy rolling my own implementations every now and then, depending on what needs to be done.

    Implementations given to you by, for instance, the standard template library, are written to...
  21. Replies
    8
    Views
    1,178

    Re: C++ Create an Array in a loop

    The new keyword is what does it. Everything you declare in a function gets allocated on a stack. So the pointer fw2on is declared on the stack, but the memory it points to is allocated at runtime on...
  22. Replies
    8
    Views
    1,178

    Re: C++ Create an Array in a loop

    Does what you currently have compile? I would have assumed that it doesnt, since array declaration requires a constant expression, and fwMapLen seems to be an ordinary variable.
    The reason for...
  23. Replies
    4
    Views
    1,112

    Re: plus(+) operator

    Operator overloading should follow the following syntax:



    MyClass operator+(const SomeOtherClass &value)
    {
    MyClass result;
    // calculate new values for result based on...
  24. Replies
    2
    Views
    987

    Re: BoldDays - TMonthCalendar

    You seem to be passing to few arguments into BoldDays. Do you have any documentation for the TMonthCalendar, and specifically the BoldDays method?
  25. Replies
    3
    Views
    983

    Re: compiling open source c++ program

    No, I was under the impression you where using Linux. As far as I can see, that project does not target the Windows platform.
  26. Replies
    3
    Views
    983

    Re: compiling open source c++ program

    I would suggest installing GNU Autotools and just using the automake system that has been set up. Once you have that installed, open up a terminal in the project directory and write:
    configure
    make
  27. Replies
    17
    Views
    4,815

    Re: Need help with memory leaks

    Personally, the only one i have used is valgrind. I can recommend it, but I guess its not relevant for you since you appear to be using Windows.
  28. Replies
    1
    Views
    974

    Re: TDateTime data type

    Open up your Project menu and click Properties. In the list on the left hand side of the window, expand Configuration Properties and select VC++ Directories. Select Include Directories, click the...
  29. Re: [RESOLVED] Getting error and cannot seem to TRY/CATCH it

    I am not aware of a windows equivalent, but if you ever do some c++ on linux you should really try Valgrind. It is absolutely invaluable for debugging memory issues.

    I know its probably not...
  30. Re: [RESOLVED] Getting error and cannot seem to TRY/CATCH it

    Ah I see. Well I assumed szlamany did not literally mean "throw statements that he himself has written" but rather "explicit throw statements in the code". My bad, I should have been clearer.
  31. Re: Getting error and cannot seem to TRY/CATCH it

    Im not sure what you mean by that, but the exception handling works similarly to .NET. You can define your own exception and throw it, and the first appropriate catch clause will handle the...
  32. Re: Getting error and cannot seem to TRY/CATCH it

    Yes that is right.
  33. Re: Getting error and cannot seem to TRY/CATCH it

    tg, I think you are looking at the C# documentation. It is possible to throw and catch types that are not exceptions. For instance, this is valid:



    try
    {
    throw "foo";
    }
    catch(const...
  34. Re: Getting error and cannot seem to TRY/CATCH it

    In the case of errors like that, no exceptions are thrown so there is nothing to catch.

    However, I cant see anything in your code that could cause an access violation, which generally occurs when...
  35. Thread: stack help

    by Atheist
    Replies
    1
    Views
    779

    Re: stack help

    If you are looking for someone to complete your project for you, you should post it in the "Open Positions (Jobs)" section of this forum.

    You can, however, post relevant details here and we will...
  36. Replies
    3
    Views
    2,143

    Re: beginner learn c++ windows application

    There are a number of tools that supplies a graphical "drag-and-drop" editor. One being Qt that I mentioned in by previous post. Theres also C++/CLI, but I would personally say that Qt is a better...
  37. Thread: MFC Questions

    by Atheist
    Replies
    1
    Views
    743

    Re: MFC Questions

    #1: I would believe that the unicode libraries handle all strings as unicode.
    #2: This determines how you link to the MFC libraries. Static linking will link your executable with the library at...
  38. Replies
    3
    Views
    2,143

    Re: beginner learn c++ windows application

    The Win32 API is what provides VB6 (and any other language) with the ability to display graphical windows, buttons, lists.. you name it.
    To do the same in C++, you would make use of the Win32 API.
    ...
  39. Replies
    1
    Views
    850

    Re: [Help] array for my assignment

    You have not posted a problem definition. Even if you had, why would someone else spend time doing your homework?
  40. Replies
    1
    Views
    1,362

    Re: How to hide capCreateCaptureWindow() ??

    You are not passing the flag WS_VISIBLE to capCreateCaptureWindow, so I would assume it to be invisible by default. In the first call to the ShowWindow method, the nCmdShow parameter is ignored, so...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.