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

Search:

Type: Posts; User: ProgrammerC++

Page 1 of 7 1 2 3 4

Search: Search took 0.03 seconds.

  1. Why is my struct destructor not called???

    Hey all check this out:



    struct A
    {
    int val = 0;

    A() { printf( "Construct A [%d]", val ); }
    ~A() { printf( "Destruct A [%d]", val ); }
  2. Replies
    4
    Views
    1,153

    Re: who can solve this?

    hi rashid

    I'm your teacher and you are disqualified from the course for trying to cheat on this assignment

    please do not come to our class again
  3. Re: ODBC SQLBulkOperations obtain Identities

    Found out I have to do Fetch after SQLBulkOperations

    Kind of annoying to just Fetch all columns and only need data for one column (the identity column)
  4. ODBC SQLBulkOperations obtain Identities

    Hello,

    I'm using SQLBulkOperations to insert rows in bulk. I'm using SQLBindCol to bind the columns before SQLBulkOperations().

    But how do I obtain the Identities? The bound buffer for the...
  5. C++ ODBC Multi Connections to Same DB or not?

    Hello!

    I made a C++ Wrapper on top of ODBC.

    I got a Connection, and a Statement class.
    The Connection class holds the Database Connection ODBC Handle.
    The Statement class holds the Statement...
  6. Replies
    10
    Views
    6,677

    Re: Flooded WndProc

    Games like Half-Life 1, Counterstrike I tested on aswell.

    You can reproduce the bug simply by making a new standard Win32 Application project in Visual Studio.

    Then, make the following changes...
  7. Replies
    10
    Views
    6,677

    Re: Flooded WndProc

    No my program is a game and the code is not bugged.

    This 'feature' of windows occurs on many games actually I can confirm.
  8. Replies
    10
    Views
    6,677

    Re: Flooded WndProc

    Nevermind, it's a 'feature' of Windows.

    I'll see if I can build a workaround.
  9. Replies
    10
    Views
    6,677

    Re: Flooded WndProc

    BOOL CWindow::DoAllPeekMessage()
    {
    MSG msg;
    while( PeekMessageA( &msg, NULL, 0, 0, PM_REMOVE ) )
    {
    if( msg.message == WM_QUIT )
    bExit = TRUE;

    TranslateMessage( &msg );...
  10. Replies
    10
    Views
    6,677

    Flooded WndProc

    Hello,

    I have this situation on Windows XP:

    My program is a window, so it has an entry in the task bar.

    If you rightmouse click on the item in taskbar (so that menu appears with Close,...
  11. Thread: Symbol ~

    by ProgrammerC++
    Replies
    2
    Views
    588

    Symbol ~

    What does it do?




    ~x



    Sorry google won't let me search for symbols
  12. Replies
    3
    Views
    629

    Re: send() linux to windows?

    Solved it... I checked with packet analyzer and noticed that Linux sizeof(wchar_t) == 4.. and in windows sizeof(wchar_t) == 2...

    Great...
  13. Replies
    3
    Views
    629

    Re: send() linux to windows?

    Thanks for your response

    I checked it but both machines are Little Endian :(
  14. Replies
    3
    Views
    629

    [RESOLVED] send() linux to windows?

    Hi,

    I've written a network program based on berkeley socket standard.

    Everything works when it comes to accepting connection, connecting, sending data and receiveing data.

    However, if I run...
  15. Replies
    11
    Views
    1,646

    Re: fastest vector iteration

    Ok I'll just build my own array wrapper class it's the fastest of all :)
  16. Replies
    11
    Views
    1,646

    fastest vector iteration

    hallo alle,

    i need to know whats the fastest way to iterate through vector

    this:


    for( vector<MyObj*>::iterator it = vMyVector.begin(); it != vMyVector.end(); it++ )
    {
    MyObj * ptr = *it;
  17. Re: new and delete overloading

    I can only find examples about new and delete overloading inside a class, not globally
  18. [RESOLVED] new and delete overloading

    Hi,

    How do you simply overload new and delete to make your own allocator function?
    Throughout the whole project

    Thanks
  19. Re: how do i read an array of numbers pls?

    I dont know the numbers 'p' 'l' and 's'.
  20. Replies
    1
    Views
    614

    Socket and Pluggin Cable

    Hello,

    It seems (on a blocking socket) in a server-client applicaiton that:

    if the client plugs out his cable, the server will never know this... and thus recv() and send() will not fail.
    ...
  21. Replies
    9
    Views
    1,658

    Re: static and constructors

    A method does not contribute to the size of a class..

    It compiles, I tested and the constructor is called the first time I use GetInstance(), so not before main(), which is the weird thing,...
  22. Replies
    9
    Views
    1,658

    Re: static and constructors

    No. Nevermind, I do not feel like explaining why this situation could be tricky.
  23. Replies
    9
    Views
    1,658

    static and constructors

    Hi,

    When is the constructor called in a situation like this?




    class MyClass
    {
    public:
  24. Thread: Sleep(0)

    by ProgrammerC++
    Replies
    4
    Views
    3,219

    Re: Sleep(0)

    I've already realized that this approach is consuming 100% cpu.

    Instead I'm using an endless GetMessage() loop in the main thread and have a seperate thread Send a User defined message 'WM_UPDATE'...
  25. Thread: Sleep(0)

    by ProgrammerC++
    Replies
    4
    Views
    3,219

    Sleep(0)

    Hello,

    I have the following scenario:

    Multi-Threaded Server Application.
    I have a function which PeekMessage() all messages and returns if none left.
    I have a function that must be called...
Results 1 to 25 of 154
Page 1 of 7 1 2 3 4





Click Here to Expand Forum to Full Width

Featured