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

Search:

Type: Posts; User: meynaf

Page 1 of 15 1 2 3 4

Search: Search took 0.10 seconds.

  1. Replies
    0
    Views
    778

    latency on xaudio2

    Hi all,


    I have successfully made xaudio2 play sounds but am now facing an enormous latency issue.
    Glitches appear in the replay as soon as i go to 20000 samples or less (a little less than half...
  2. Re: C++: about game loop: do we need take some time between frames?

    Indeed it is a good thing the game works the same speed across machines (that are fast enough to run it).
    I've seen old games running so fast they become unplayable ;)
  3. Re: C++: about game loop: do we need take some time between frames?

    Yes it is better to setup a minimum amount of time between two frames.
    Otherwise your game will permanently use 100% cpu power, which is especially annoying on laptops (keyboard becoming warm, noisy...
  4. Replies
    5
    Views
    5,673

    Re: Error LNK1235

    You don't know how much helpful this is, so let me tell you : this IS the answer I wanted. As I supposed, it's another compiler bug, or a compiler "feature" :D
    And it has nothing to see with C/C++...
  5. Replies
    5
    Views
    5,673

    Re: Error LNK1235

    Nope. I don't agree.

    Symbol names are different from C to C++, but it should have given the error "undefined external" or so, not "corrupt coff".
  6. Thread: Why ambiguous ?

    by meynaf
    Replies
    41
    Views
    4,183

    Re: Why ambiguous ?

    As long as it works, I'll use it that way, and if one day it stops working, I'll add an explicit cast to char*. No big deal.
    Passing a string class is simply not feasible without relying on...
  7. Thread: Why ambiguous ?

    by meynaf
    Replies
    41
    Views
    4,183

    Re: Why ambiguous ?

    I sure do. But, so far, it always worked. :D


    Add another member ? No way ! I'll surely not do that. If needed, more data will be put where the pointed string lies, *before* it. Yep. In space...
  8. Thread: Why ambiguous ?

    by meynaf
    Replies
    41
    Views
    4,183

    Re: Why ambiguous ?

    :wave: I'm looking for even more trouble, as you can see in that new code snippet :



    class UString {
    public:
    UString();
    UString (const char *c);
    operator char* () const;
    friend UString...
  9. Replies
    5
    Views
    5,673

    [RESOLVED] Error LNK1235

    I've got that when building a project :
    fatal error LNK1235: corrupt or invalid COFF symbol table :sick:

    I am not asking for a way to resolve that problem : I already found one - it's...
  10. Replies
    0
    Views
    511

    Tables and Response.Write output location

    Hi,

    I have to output a table (<table>, <tr>, <td> and such stuff) on my page, while keeping a great control on formatting.

    To get data, I can use either an SqlDataReader or an XmlReader, but...
  11. Thread: Why ambiguous ?

    by meynaf
    Replies
    41
    Views
    4,183

    Re: Why ambiguous ?

    Being complex does not mean being stupid !!!

    Relying on undefined behavior, that's true. But my UString has a sizeof of 4. It looks in memory exactly like a char*. Hence directly passing it...
  12. Thread: Why ambiguous ?

    by meynaf
    Replies
    41
    Views
    4,183

    Re: Why ambiguous ?

    The C++ "best matching function" search algorithm can be as complex as it wants, but I really think it shouldn't scream when faced with an easy case - that is, when an exact matching function exists....
  13. Thread: Why ambiguous ?

    by meynaf
    Replies
    41
    Views
    4,183

    Re: Why ambiguous ?

    There are MANY things wrong with them.
    Ok, you couldn't know it, but my string class offers much more functionnality and flexibility than those two.
    Try to use MFC's CString with an API which...
  14. Thread: Why ambiguous ?

    by meynaf
    Replies
    41
    Views
    4,183

    Re: Why ambiguous ?

    Then I am definitely not included in that "Most people", because when seeing such code, I would have fired my IDE and built it :)

    And, yes, maybe some of those overloads aren't required, but...
  15. Thread: Why ambiguous ?

    by meynaf
    Replies
    41
    Views
    4,183

    Re: Why ambiguous ?

    I didn't think this post could be THAT difficult to understand :D




    Didn't you read ? I said it compiled well with VC6 but NOT with .NET2003 !
  16. Thread: Why ambiguous ?

    by meynaf
    Replies
    41
    Views
    4,183

    Re: Why ambiguous ?

    Those two :
    s3 = s1+s2;
    s3 = s2+s1;

    But, you know, you can copy-paste the whole code and see it by yourself :p
  17. Thread: Why ambiguous ?

    by meynaf
    Replies
    41
    Views
    4,183

    Re: Why ambiguous ?

    I see error C2666.
  18. Thread: Why ambiguous ?

    by meynaf
    Replies
    41
    Views
    4,183

    Why ambiguous ?

    class UString {
    public:
    UString();
    UString (const char *c);
    operator char* () const;
    friend UString operator+ (const UString&, const char *);
    friend UString operator+ (const char *, const...
  19. Replies
    3
    Views
    1,143

    Re: Dropdown list population

    Cool, but I've already thought about this - and there doesn't appear to be a member of that WebControls.DropDownList which simply adds an item.

    (at least the msdn was clueless :sick: )
  20. Replies
    3
    Views
    1,143

    Dropdown list population

    Hi all,

    I have a webform (asp .net web application, .net 2003), in vb.
    I have a dropdown list (in fact several) that I need to fill with data from a database. It works ok like this :


    Dim res...
  21. Replies
    13
    Views
    1,887

    It's called Duelfield. It's a turn by turn...

    It's called Duelfield. It's a turn by turn strategy game.
    I also wrote most of the game itself (but i can't say i'm proud of it ;)).
    The map editor is for future extensions, and isn't released yet....
  22. Replies
    13
    Views
    1,887

    Sorry, but things on this site are not free, and...

    Sorry, but things on this site are not free, and i don't need really advanced features for my app (which btw is a simple map editor for a little game).

    If i really wanted advanced gfx features,...
  23. Replies
    9
    Views
    1,439

    Another idea... You might use : . a single...

    Another idea...

    You might use :
    . a single mutex object
    . a message-only window (you can use a separate thread to handle it, avoiding to block the app)

    write :
    . get the ownership of the...
  24. Replies
    9
    Views
    1,439

    I don't think there's a simple way to do this. I...

    I don't think there's a simple way to do this. I have an idea, but it is complex and involves several mutex objects.

    I hope you will understand me, it's difficult to explain.

    You have to create...
  25. Replies
    9
    Views
    1,439

    At least you can use a critical section, it is...

    At least you can use a critical section, it is way more performant than a mutex.
    See EnterCriticalSection/LeaveCriticalSection in msdn.
Results 1 to 25 of 352
Page 1 of 15 1 2 3 4





Click Here to Expand Forum to Full Width

Featured