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

Search:

Type: Posts; User: PadexArt

Page 1 of 80 1 2 3 4

Search: Search took 0.08 seconds.

  1. Thread: Request

    by PadexArt
    Replies
    2
    Views
    504

    Re: Request

    You cannot tell who will get to write first and in most cases you don't care to know either. Besides, allowing multiple users to write data indiscriminately will most likely corrupt your data.
    ...
  2. Replies
    3
    Views
    566

    Re: Program Flow, pausing a function?

    Depending on who is invoking your callback you need one or two threads in your code.

    Either way your callback function should set a result flag ( the result of the connect operation) and set an...
  3. Replies
    8
    Views
    1,069

    Re: Binary vs. Textual Protocol

    It adds complexity but also flexibility. You can choose what protocol to use and when, depending on what your current data ( type and size). And you can combine the two of them to have the ease of...
  4. Replies
    8
    Views
    846

    Re: pointer declaration ambiguity

    Or even better, have one variable per row. :)
  5. Replies
    8
    Views
    1,069

    Re: Binary vs. Textual Protocol

    You could have both protocols as layers over TCP/IP:

    Text protocol
    -----------------------------
    Binary protocol
    -----------------------------
    TCP/IP
  6. Replies
    6
    Views
    1,206

    Re: Runtime debug error.

    If you plan to use that value further than that delete call is not useless it's a bug. :)
  7. Replies
    6
    Views
    1,206

    Re: Runtime debug error.

    My guess is that some of the pointers in the array are not initialized. When creating the array set all the elements to NULL and see if the error still occurs.
  8. Replies
    4
    Views
    3,942

    Re: compilation error C2248 using CStringArray

    If the object containing the CStringArray is passed by value you will get this error since the generated copy constuctor in your class will try to invoke the copy constructor of CStringArray.


    ...
  9. Re: Deleting Files from a diffrent location?

    C++ remove()

    WinAPI DeleteFile()
  10. Re: Cleaning unwanted items from registry through coding

    There are tools doing this, see here for more details: http://www.microsoft.com/technet/archive/win98/maintain/reg.mspx?mfr=true

    But unless something is broken I would refrain myself from...
  11. Re: writing and appending to file lots of times takes to long how to improve ?

    Another thing you can do is move all the file operations in a different thread. The downside is that you will consume more memory by doing this and, if witting from multiple threads, you might need...
  12. Replies
    7
    Views
    1,050

    Re: my f1rst C++ programming

    STL - Standard Template library. The "standard" C++ library, it should come with any C++ compliant compiler.

    MFC - Microsoft Foundation Classes. A Microsoft library which has the main purpose of...
  13. Replies
    15
    Views
    1,826

    Re: Connect database when start with Windows

    Most likely you are using a variable that is not initialized properly or NULL, or an exception was thrown from your code.

    Code like m_pRecordset.CreateInstance(__uuidof(Recordset)); should be...
  14. Replies
    29
    Views
    4,059

    Re: static drawing in Worker Thread

    yes


    No, that is the function you use to start the thread. You need to:
    - define a custom message ( user defined message)
    - send that message from the worker thread when drawing is required....
  15. Replies
    15
    Views
    1,382

    Re: Disable Popup Blockers

    I don't think any company would be happy to install a software that works around security settings, no matter how legit the reasons are. So documenting what needs to be done is the way to go forward....
  16. Re: Calling derived class from address of base reference

    As long as you pass/store your objects as pointers/references and you invoke virtual functions on those objects, you will get what you need.
  17. Re: How to detect mouse event outside dialog on SDI

    The code bellow works perfectly well for me:



    void CTestCaptureDlg::OnLButtonDown(UINT nFlags, CPoint point)
    {
    SetCapture();

    CDialog::OnLButtonDown(nFlags, point);
    }
  18. Replies
    29
    Views
    4,059

    Re: static drawing in Worker Thread

    Well, currently that function is called from within your worker thread hence all the problems. Your worker thread should only send a message to the main UI thread requesting itself to draw what is...
  19. Replies
    3
    Views
    621

    Re: How to return new object in COM?

    If you use ATL you can do this through CComObject's CreateInstance :



    STDMETHODIMP CMainTestClass::GetSamTest(IAdd **ppRetVal)
    {
    CComObject<CAddClass>* addObj = NULL;
    HRESULT hRes =...
  20. Replies
    29
    Views
    4,059

    Re: static drawing in Worker Thread

    No, there are 2 threads: the main UI thread and the worker thread serviced by the UINT CMy123Dlg::ABC(LPVOID pABC) function. As previously stated you cannot do this. Your worker thread should send...
  21. Replies
    16
    Views
    3,275

    Re: Using Multitreading to log

    Have you read all the suggestions posted above? You really do not need to synchronize your logging features.

    Anyways, if you really want to do a synchronization you'll end up slowing down your...
  22. Thread: _T("") vs L""

    by PadexArt
    Replies
    4
    Views
    4,281

    Re: _T("") vs L""

    A slight variation of what the previous people said: use L when you need UNICODE regardless of the project settings. ( in cases where a function accepts only wide char strings)
  23. Re: difference between including header file and shared library.

    Yes, that's why I said it's not necessarily true. :) You can get away using a library without a header file, and at times that is the only way you can do things. An example for that is checking if...
  24. Re: Help with syntax for the class constructor definition

    To add to what laserlight already stated, here is a discussion on what the constructor initialization lists are and why they should be used.
    ...
  25. Re: difference between including header file and shared library.

    That's not necessarily true. You can use a dynamic function library ( dll) without a header file but it is not the best/easiest way to do it.
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center