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

Search:

Type: Posts; User: wien

Page 1 of 29 1 2 3 4

Search: Search took 0.10 seconds.

  1. Thread: some q3 code

    by wien
    Replies
    6
    Views
    1,344

    Re: some q3 code

    A bit OT, but here's a link to an article on the origin of the function in question: Origin of Quake3's Fast InvSqrt(). Doesn't go too much into detail, but you might find it interesting. It also...
  2. Replies
    12
    Views
    918

    Re: Happy Birthday wien

    Wow. Thanks. :) I've been in lurk-mode for a while now, so I didn't expect this. Really appreciate it.

    And, no. I'm not from Wien (Vienna). :) Wien's my last name.
  3. Re: HTML DOM: IE failing when inserting html into a tr element

    Yep. The actual javascript code is not really the problem. I have a rather large server-side component generating all the 'td's and associated code, and I would have to throw that around a bit to be...
  4. Re: HTML DOM: IE failing when inserting html into a tr element

    Just found this... Apparently the 'tr' element's innerHTML property is read-only, so that would explain why it doesn't work. (A descriptive error message, as opposed to a crash, would help...
  5. HTML DOM: IE failing when inserting html into a tr element

    Hi guys. I've been wrestling with a problem with IE's script engine crashing the last couple of hours, and quite frankly, I'm stumped.

    I have a page with a table in it, and inside this table I...
  6. Re: Can a construction function call another construntor ?

    Well, I'm no standards wiz, but I am fairly certain that a temporary should only stay alive as long as the expression it's in (i.e. to the ; after it). (EDIT: Unless it's bound to a const reference)...
  7. Thread: Class templates

    by wien
    Replies
    2
    Views
    554

    Re: Class templates

    Basically, there are a lot of little mistakes in your code. I won't go into the details here (unless you want me to), but I fixed up your code so you can take a look at it youself.
    #include <list>...
  8. Replies
    3
    Views
    795

    Re: const std::String& arguments

    It's perfectly safe. The temporary std::string will remain alive as long as the reference to it is alive. (To the end of the function call)
  9. Thread: delete[]

    by wien
    Replies
    37
    Views
    3,596

    Re: delete[]

    Yes, you must.
  10. Thread: producer/Consumer

    by wien
    Replies
    3
    Views
    1,261

    Re: producer/Consumer

    Or boost::condition on both platforms. (and many others)
  11. Re: Write uploaded file directly into a file opened by fopen [PHP 4]

    Thanks, I'll take a look at it.
  12. Re: Write uploaded file directly into a file opened by fopen [PHP 4]

    Yep, there is actually. The files being uploaded are zip files, and I simply want the contents of them, I don't need the zip itself. Therefore I need to temporarily store the ZIP until I have...
  13. Re: Write uploaded file directly into a file opened by fopen [PHP 4]

    Sorry about that. Early start this morning. :)

    I want to write an uploaded file directly into a file created through the tmpfile() function. This function only returns a file-handle, and you can't...
  14. Write uploaded file directly into a file opened by fopen [PHP 4]

    Hi. I have a problem where I have to be able to write an uploaded file directly into a file opened by fopen (Or more specifically, tmpfile). The only way I have found for saving an uploaded file, is...
  15. Replies
    15
    Views
    22,326

    Re: Adding char to beginning of string

    This is just as easy in C++.
    #include <string>
    ...
    std::string var1("4");

    if(var1.length() < 2)
    {
    var1 = '0' + var1;
    }
  16. Replies
    16
    Views
    2,446

    Re: PC Problems

    Viggy is right. For the WinXP install (including repair mode) to be able to detect your S-ATA drive, you need to load drivers for your controller first. I certainly have to do that on my computer,...
  17. Replies
    20
    Views
    2,639

    Re: Template function that only accepts integer type

    Just to add to what marten said.

    In this case, concept checks and type_traits work in exactly the same way (More or less), so the difference is not that great, though concept checks may result in...
  18. Replies
    6
    Views
    5,308

    Re: STD List matching it iteration

    As you wish...No == operator is provided by default. If you want one, you have to make it yourself.
  19. Replies
    42
    Views
    4,321

    Re: extending an STL container class Question

    Ask, and ye shall recieve. :)I was talking about the CRTP (Curiously Recurring Template Pattern) classes in boost, not the event_list/vector relationship. They are used to implement a lot of...
  20. Replies
    30
    Views
    5,185

    Re: Transition from non-visual to visual

    Sure.. I can agree to that. I just stated my personal preferenece when it comes to learning stuff like this. I have always found getting what I want to do done quickly somewhere up in the layers, is...
  21. Replies
    30
    Views
    5,185

    Re: Transition from non-visual to visual

    Sorry... But I feel that is like saying someone should learn assembly first when they want to learn C++. There is a reason why we have high level abstractions like MFC and Windows Forms, and that is...
  22. Replies
    3
    Views
    1,275

    Re: Trouble linking with boost libs

    As for the problem with the executable project linking against the filesystem library, that is because you include the path.hpp header. That header includes filesystem/config.hpp and that in turn...
  23. Replies
    60
    Views
    4,290

    Re: Gas prices in ur country

    We do. There's enough oil and gas in the north sea to keep us going another 40 years or so. The problem is that most of the money we make off of that is going into the aptly named petroleum fund,...
  24. Replies
    60
    Views
    4,290

    Re: Gas prices in ur country

    Aaah.. Finally a competition Norway can win hands down. We're at $1.72 (US) per liter now. (95 octane non-leaded) And that is with gas-stations almost selling at a loss.
  25. Replies
    42
    Views
    4,321

    Re: extending an STL container class Question

    You could always make a namespace and put the fuction in it. Or just name it better.. write_event, like you said yourself.Boost has an excellent solution for that. Static assertions. You could just...
Results 1 to 25 of 719
Page 1 of 29 1 2 3 4





Click Here to Expand Forum to Full Width

Featured