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
K

kapax5

@kapax5
About
Posts
14
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Share point Basic
    K kapax5

    I have started developing on SharePoint not long ago. A good book you could read is SharePoint 2007 How-To by Ishai Sagi. It got me on the right track. Anyway, I started learning it by reading MSDN library. The content there is not very well written but it is not that bad.

    SharePoint question

  • Programmatically checking DataGridViewCheckBoxCell
    K kapax5

    Say, I have

    DataGridviewCheckBoxCell cell

    object. I can select/deselect it by doing

    cell.Value = true

    /

    cell.Value = false

    . This works until user manually selects/deselects some checkbox - after that this checkbox stops changing after assigning a value. What could be the reason for that?

    C# question

  • VS designer (C#)
    K kapax5

    Say, I have a resource file Res.resx with strings predefined. Then I create a new form using designer. Is it possible to use the string resources from the designer view to assign the properties, like text, so the line in the designer file would look like:

    this.Text = global::My.Namespace.Res.Localized_text;

    ?

    C# csharp visual-studio question learning

  • How to assign class variable value using loadlibrary function
    K kapax5

    Maybe this would help:

    #pragma data_seg (".commondata")
    extern /*type-name*/ /*variable-name*/ = /* value */
    #pragma data_seg ()

    For more information, look here[^].

    C / C++ / MFC help tutorial question

  • How system finds DLLs
    K kapax5

    Thank you. I have been looking precisely for this.

    C / C++ / MFC c++ question

  • How system finds DLLs
    K kapax5

    After linking C++ project with specific .libs and when I run it, how does a system find the corresponding DLLs if they are not in the same directory? There should be some rules for that, as far as I know.

    C / C++ / MFC c++ question

  • Environment variables
    K kapax5

    Found a temporary solution for now: I open the Process Explorer, find the right process (devenv.exe, in my case), right-click for properties and go to the Environment tab to see currently defined environment variables. It's a huge help for me. What I am going to do next is either to find a tool or to write some extension that would allow me to access those variables easier and faster.

    Visual Studio question csharp visual-studio workspace

  • Constraints taking either types in generics
    K kapax5

    Yes, a very good note. I am pretty sure that the author of the question understands why his provided idea is impossible. So, something must be done with inheritance, or maybe if we knew what exactly he is trying to do, we could find a workaround for the problem.

    C# help

  • Constraints taking either types in generics
    K kapax5

    I think you cannot do that. But, on the other hand, I see no reason to do that, too. If either of the two types works for you, then they must have some common interface. So, all you have to do is to have both MyClass1 and IMyInterface implement some IGeneralInterface.

    C# help

  • Environment variables
    K kapax5

    I usually run Visual Studio from .bat file with some predefined environment variables, so I can later use them in Visual Studio. It is especially useful in WiX toolkit. How do I see all environment variables that are currently set from Visual Studio? I would like to see Visual Studio's environment variables, too.

    Visual Studio question csharp visual-studio workspace

  • showdialog box
    K kapax5

    In WPF you cannot do that because it returns only Nullable<Boolean>. So, a code like this should do the trick:

    fDialog.ShowDialog();

    if (dialog.DialogResult.HasValue && dialog.DialogResult.Value)
    {
    MessageBox.Show("User clicked on OK / Open");
    }

    C# question

  • Generics problem
    K kapax5

    Yes, that's what I needed! Simple and elegant. Thank you!

    C# help question

  • Generics problem
    K kapax5

    You see, if I instantiate this class like this:

    new GenericClass<Int32[]>();

    , then what xxx() returns is List<Int32[]>, although it should return List<Int32>. Now, if I instantiate the class this way:

    new GenericClass<List<Int32>>();

    , then xxx() will return List<List<Int32>>, but it should also return List<Int32>. That is why I think that IEnumerable is the way to go for T. I am starting to think that my idea is conceptually wrong, since I cannot think of anything that would work.

    C# help question

  • Generics problem
    K kapax5

    There are following classes:

    public class X
    {
    Int32[] a;
    public List<Int32> xxx()
    { ... }
    }

    public class Y
    {
    List<Int32> a;
    public List<Int32> xxx()
    { ... }
    }

    What I am trying to do is to find a generic way to make the class of similar descent:

    public class GenericClass<T> where T : IEnumerable
    {
    T a;
    public List</*Type of the elements in the IEnumerable T*/> xxx()
    { .... }
    }

    No ideas come to my head. Maybe some will come to yours'? I understand that the problem is that IEnumerable is not generic but maybe there will be any clever solutions :)

    C# help 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