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

Search:

Type: Posts; User: Niels_Boar

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. Re: concurrent_vector in Visual Studio Express 2010 Express

    Never mind. It was a precompiled header thing. Doh.
  2. concurrent_vector in Visual Studio Express 2010 Express

    I'm including <concurrent_vector.h>, which Express seems to recognize. However, when I declare a concurrent_vector<double> variable, Express does not recognize it as a valid data type. I have been...
  3. Replies
    16
    Views
    2,413

    Re: C# references and = assignment

    I see the light. Thanks.


    Why not just allow operator= to be overloaded? I don't find every operation requiring a += type assignment to be natural.
  4. Replies
    16
    Views
    2,413

    Re: C# references and = assignment

    What I'm doing is taking the fast Fourier transform of buf. It correctly resides in buf after the operation, but matrix is unchanged.



    public class Cmplx:System.IFormattable
    {
    #region...
  5. Replies
    16
    Views
    2,413

    C# references and = assignment

    buf = new Cmplx[matrix.Rows];

    for (int m = 0; m < matrix.Rows;++m)
    {
    buf[m] = matrix.Matrix[m][col];
    }
  6. Replies
    4
    Views
    1,016

    Re: GetTextExtent and DrawText mismatch

    Nevermind. I wasn't where I thought I was in the document.
  7. Replies
    4
    Views
    1,016

    Re: GetTextExtent and DrawText mismatch

    Here is the code. " pData->operator[](m)[k] " returns a CString. The small font is never selected.



    CRect headerRect(headerX, headerY, headerX + m_nCellWidth, headerY + m_nCellHeight);...
  8. Replies
    4
    Views
    1,016

    GetTextExtent and DrawText mismatch

    I'm trying to make sure a string will fit in a rectangle. I call GetTextExtent on the string and get a cx value much less than the width of the CRect object. However, when the string is drawn with...
  9. Replies
    3
    Views
    806

    Re: Resource editor

    Yep. I'm a doofus. That was it. A whole stack of windows were open. Thanks.
  10. Replies
    3
    Views
    806

    Resource editor

    I'm trying to run a Visual Studio workspace from a previous version of Studio on version 6. The workspace compiles and runs properly. However, when I try to access the resources in the workspace...
  11. Replies
    1
    Views
    4,364

    Re: KERNEL32.DLL 0xC0000005 access violation

    Nevermind. I found the screwup. I had included an h file that declared a global variable in a cpp file which also had an extern statement for that variable. Seems like the compiler would have...
  12. Replies
    1
    Views
    4,364

    KERNEL32.DLL 0xC0000005 access violation

    Suddenly I'm getting a "KERNEL32.DLL 0xC0000005 access violation" exception when I exit my program in the debugger. It runs fine until it is closed. The exception is raised even if all I do is run...
  13. Re: Cannot manipulate C++ strings like arrays?

    I believe *temp2 is equivalent to temp2[0] because the name of an array is a pointer to the first element. I'm not familiar with the class string, but

    char temp[3] = {'1', '2', '3'};
    cout <<...
  14. Re: Cannot manipulate C++ strings like arrays?

    I've gotten code like this to work:


    CString array[] = { "a", "b", "c"};

    array[2] is equal to "c".
  15. Re: Can anyone explain why my simple, 9-lines code do not compile?

    Have you tried <windows.h> instead of "windows.h" ?
  16. Re: Declaring global CCriticalSection variable

    Didn't work. I tried declaring a global int variable in CApp, don't use it, and get the same errors.
  17. Declaring global CCriticalSection variable

    I'm trying to use a global CCriticalSection variable to synchronize a worker thread. The global thread function and two classes use the variable. I have tried declaring it in one of the classes .h...
  18. Replies
    2
    Views
    752

    Re: CMap compile problem

    The key is a CString, not user-defined. Wouldn't CMap be able to handle it since some specialized CMap objects use CString keys? I'll try it, though.
  19. Replies
    2
    Views
    752

    CMap compile problem

    I'm declaring a global CMap variable in an h file in a VC++ project. The compiler won't recognize the CMap declaration.



    #include<afx.h>
    #include<afxtempl.h>

    CMap< CString, CString &,...
  20. Replies
    2
    Views
    708

    Re: LNK2001 error

    Great stuff, Paul. Thanks.
  21. Re: I have a project due and I really need some help now

    Interchange the statements "upper = middle - 1" and "lower = middle + 1". If list[n + 1] < list[n] for all n, then list[middle] > key means the key is at a higher index than middle, i.e you want to...
  22. Replies
    7
    Views
    1,331

    Re: data conversion from string to integer

    Are you using MFC to create a dialog box with edit controls to get the two numbers? If so, you can add two int variables to your dialog class and associate them with the edit controls. The...
  23. Replies
    2
    Views
    708

    LNK2001 error

    I downloaded a C math library that I'm trying to use in Visual C++. I created a project as a static library, added all the files to the project, compiled, and linked it. I then copied the .LIB file...
  24. Replies
    4
    Views
    1,359

    Re: Simple use of CScrollView doesn't work

    My code isn't much more complicated. In OnInitialUpdate() I set the scroll size equal to a width of 150 characters and a height of 100 lines by selecting the font into a CClientDC and using...
  25. Replies
    4
    Views
    1,359

    Simple use of CScrollView doesn't work

    I'm trying to output some text to a view derived from CScrollview. In OnInitialUpdate() I set the scroll sizes to an integer number of character widths and heights using SetScrollSizes() and...
Results 1 to 25 of 34
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured