Search:
Type: Posts; User: Niels_Boar
Search:
Search took 0.03 seconds.
-
July 22nd, 2012, 01:24 PM
Never mind. It was a precompiled header thing. Doh.
-
July 22nd, 2012, 01:11 PM
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...
-
June 19th, 2007, 10:03 PM
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.
-
June 19th, 2007, 09:13 PM
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...
-
June 19th, 2007, 08:58 PM
buf = new Cmplx[matrix.Rows];
for (int m = 0; m < matrix.Rows;++m)
{
buf[m] = matrix.Matrix[m][col];
}
-
December 6th, 2006, 01:24 AM
Nevermind. I wasn't where I thought I was in the document.
-
December 5th, 2006, 11:30 PM
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);...
-
December 5th, 2006, 10:30 PM
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...
-
November 6th, 2006, 11:09 PM
Yep. I'm a doofus. That was it. A whole stack of windows were open. Thanks.
-
November 6th, 2006, 12:46 AM
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...
-
September 20th, 2006, 12:59 AM
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...
-
September 19th, 2006, 11:24 PM
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...
-
September 19th, 2006, 12:03 AM
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 <<...
-
September 18th, 2006, 11:08 PM
I've gotten code like this to work:
CString array[] = { "a", "b", "c"};
array[2] is equal to "c".
-
September 18th, 2006, 10:45 PM
Have you tried <windows.h> instead of "windows.h" ?
-
September 18th, 2006, 10:39 PM
Didn't work. I tried declaring a global int variable in CApp, don't use it, and get the same errors.
-
September 17th, 2006, 11:10 PM
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...
-
June 28th, 2006, 11:51 AM
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.
-
June 27th, 2006, 09:56 PM
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 &,...
-
Great stuff, Paul. Thanks.
-
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...
-
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...
-
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...
-
March 8th, 2006, 04:18 AM
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...
-
March 8th, 2006, 03:22 AM
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...
|
Click Here to Expand Forum to Full Width
|