Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
C

C NewBe

@C NewBe
About
Posts
43
Topics
17
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Array.resize
    C C NewBe

    Note: This method is new in the .NET Framework version 2.0. and I am using .NET Framework version 2.0.50727. http://msdn.microsoft.com/en-us/library/1ffy6686(VS.80).aspx Array.Resize(ref m_yData, m_points); I get this compile error message "'System.Array' does not contain a definition for 'Resize'".....What am I missing or doing wrong? Thanks

    C# csharp dotnet visual-studio com data-structures

  • Font/FontSize
    C C NewBe

    Now I understand....it is being declared on ::Paint()

    C / C++ / MFC question

  • Font/FontSize
    C C NewBe

    This is my code....what am I missing? I thing it's the height and weight that is giving me problem. I am from VB world. thanks CFont LargeFont; LOGFONT lf; memset(&lf, 0, sizeof(LOGFONT)); lf.lfHeight = 24; lf.lfWeight = 400; strcpy(lf.lfFaceName, "MS Sans Serif"); VERIFY(LargeFont.CreateFontIndirect(&lf)); GetDlgItem(IDC_STATIC5)->SetFont(&LargeFont);

    C / C++ / MFC question

  • Font/FontSize
    C C NewBe

    The original Post was missing this: VERIFY(LargeFont.CreateFontIndirect(&lf));

    C / C++ / MFC question

  • Font/FontSize
    C C NewBe

    I'm tring to set the Font and Fontsize to "MS Sans Serif" and 14, the code below does not seem to do it...what am I doing wrong? Is there an easier way to do this? Thanks CFont LargeFont; LOGFONT lf; memset(&lf, 0, sizeof(LOGFONT)); lf.lfHeight = 24; lf.lfWeight = 400; strcpy(lf.lfFaceName, "MS Sans Serif"); GetDlgItem(IDC_STATIC5)->SetFont(&LargeFont);

    C / C++ / MFC question

  • ListBox
    C C NewBe

    Karl, UpdateWindow has solved my problem...... Thanks How do I close this thread?

    C / C++ / MFC question

  • ListBox
    C C NewBe

    I'm new to mfc...can you give me a kick start? also, would using a different control be better?

    C / C++ / MFC question

  • ListBox
    C C NewBe

    I'm dumping data in a listbox using a loop. I would like the listbox to display the data after each iteration as oppose to after the loop is over, how do I do that?

    C / C++ / MFC question

  • SHFileOperation
    C C NewBe

    Is there a way to get the list of filenames that are copied? I have a need to keep track of all the file names that are copied using ShFileOperation. Thanks

    C / C++ / MFC question

  • Array question!
    C C NewBe

    Thanks Martin I expected the compiler to cough...now I know why.

    C# csharp data-structures question

  • Array question!
    C C NewBe

    The array size is missing. The array is being returned from the function.

    C# csharp data-structures question

  • Array question!
    C C NewBe

    Migrating VB6 code to C#..... VB6 Dim coefficients() As Double coefficients = LeastFit(myData, order, False, 0, 0, 1) c# double[] coefficients; coefficients = LeastFit(myData, order, false, 0, 0, 1); The question is, is this OK in c#. It compiles OK but I'm assuming it will choke at run time because of the array size.

    C# csharp data-structures question

  • Array.getLength() vs Array.getUpperBound()
    C C NewBe

    Thanks for the explanation guys....

    C# visual-studio data-structures question

  • Array.getLength() vs Array.getUpperBound()
    C C NewBe

    Is there a difference between the two?

    C# visual-studio data-structures question

  • Handling array argument!
    C C NewBe

    I am going to look into collection but can you educate a bit about the differences between the two? Thanks

    C# question csharp data-structures

  • Handling array argument!
    C C NewBe

    led mike, I don't think I did a good job describing the problem. It should have been how to handle a dynamic array argument in c#. From readings that I have done, I do not think it's possible. I think I have to use Arraylist.

    C# question csharp data-structures

  • Handling array argument!
    C C NewBe

    I am converting vb6 code to C# and I have a question regarding array argument. In vb6 the array argument below sometimes take the form of 1Dimension or MultiD where it is Redim depending on how it comes. C# does not allow this.....my question is, how do I handle it? public double[] ConvertMatrixToBase0(double[] MyMat) { long i, j; double[] ConvMat; if(MultiDimensional(MyMat) == false) //1-dimensional array { ConvMat = new double[MyMat.GetLength(1) - 1]; //ReDim ConvMat(UBound(MyMat, 1) - 1) for(i=1; i<=MyMat.GetLength(1); i++) //For i = 1 To UBound(MyMat, 1) ConvMat[i - 1] = MyMat[i]; } else //multi-dimensional array { ConvMat = new double[MyMat.GetLength(1)-1, MyMat.GetLength(2)-1]; //ReDim ConvMat(UBound(MyMat, 1) - 1, UBound(MyMat, 2) - 1) for(i=1; i<=MyMat.GetLength(1); i++) //For i = 1 To UBound(MyMat, 1) { for(j=1; j<=MyMat.GetLength(2); j++) //For j = 1 To UBound(MyMat, 2) ConvMat[i-1,j-1] = MyMat[i,j]; } } return ConvMat; }

    C# question csharp data-structures

  • Redim multiD-Array
    C C NewBe

    Since Redim does not exist in C#, How do I convert this in C#? Dim basePoints() As Double ReDim basePoints(AUTO_PTS - 1, 1)

    C# question csharp data-structures

  • SafeArray
    C C NewBe

    I have this method from an ocx that is expecting safearray object as arguments ocx.GetData(ref object ySafeArray, ref object xSafeArray, ref int pts, ref double xbeg, ref double xend); How do I create a SafeArray object in C# for the first two arguments? I did something like this...but that does not seem to work. object yArray = new object(); object xArray = new object(); Thanks

    C# question csharp

  • Localization Project
    C C NewBe

    When the default assembly(xxxx.resx) is created in a localized project, how does one extract the file to send out for translation and how do you import it back into the project after the translation?

    C# question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups