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

Search:

Type: Posts; User: thomus07

Page 1 of 7 1 2 3 4

Search: Search took 0.19 seconds.

  1. Re: Iterating a collection that constantly changes

    Thank you BioPhyEngr and Arjay.

    Let's say the original collection has a, b, c.
    a, b, c - auto created

    I want to manually create same number of elements as in the collection
    d, e, f - manually...
  2. Re: Iterating a collection that constantly changes

    It's a collection from a library. It implemented CollectionBase, which in-turn implemented IList, ICollection, IEnumerable. I've no control over the library as to when the collection will be modified.
  3. Iterating a collection that constantly changes

    I want iterate a collection, but before I finish to iterate, the collection is modified.
    So, whenever the collection is modified, I want to re-iterate the collection from the beginning again.
    Any...
  4. Replies
    1
    Views
    3,823

    .net performance issue

    Hi all,I've a WinForms App. It contains around 8 tabs. Each tab will display data from database. Some tabs will compute the data and display as charts/pivot tables. The problem here each tab have to...
  5. Replies
    6
    Views
    20,384

    Re: Problem using List Except

    Thank you BioPhyEng, Foamy and Mutant fruit for answers.

    Mutantfruit, Your solution worked.
    Foamy, just found another interesting thing..
    If I change the customer class to -
    class Customer :...
  6. Replies
    6
    Views
    20,384

    Re: Problem using List Except

    I'm not getting any exception, it complies. But it's not getting the required values for list1.Except(list2).

    In your example you are using int, so it will work. If you could try with my class...
  7. Replies
    6
    Views
    20,384

    Problem using List Except

    interface IValidationData : IEquatable<IValidationData>
    {

    }

    class Customer : IValidationData
    {
    public string Name { get; set; }
    ...
  8. Replies
    6
    Views
    3,463

    Re: System clock vs timer tick

    Hi arjay,
    My app will run before I start to run other programs in the test environment.
  9. Replies
    6
    Views
    3,463

    Re: System clock vs timer tick

    Thank you for reply.

    I can't use the system time always because my environment has programs which will constantly run through web services and change my system clock. While that's the expected...
  10. Replies
    6
    Views
    3,463

    System clock vs timer tick

    Hello,

    I have an app which own it's clock by getting system clock time when the app starts, and continuously adding 1 second for every Tick. For some reason I can't use the system clock for my app...
  11. Thread: App Stores

    by thomus07
    Replies
    4
    Views
    1,553

    Re: App Stores

    App store is for mobile/smart device, Website is to attract the PC traffic effectively.
  12. Replies
    1
    Views
    562

    Re: Odd exception

    Please ignore, some of my colleague deleted a line inside.. As I didn't rebuild again it still throws the exception.

    if (status != "NoError")
    {
    throw new MyException("");
    }
  13. Replies
    1
    Views
    562

    [RESOLVED] Odd exception

    string status = Foo();

    if (status != "NoError")
    {
    // MyException is THROW HERE
    }

    That Foo() method might throw MyException, but when I debug, it's passing the first line here and...
  14. Re: Some concerns RE: Win8 being an embedded OS /and/ dev-env for target development.

    With windows 8, I think MS is trying to show it's customer's that they are also on the line of smart device industry.

    Last year, Tablets sales was surprisingly shooted up giving a panic to all...
  15. Replies
    10
    Views
    1,812

    Re: Your supermarket ? Pronunciation .

    It's called custard apple in India.
    This plant is widely available and often considered as weed
  16. Replies
    5
    Views
    4,141

    Re: [RESOLVED] Release mode crash problem

    Hi Victor,
    Thank you for coming in again and your efforts in understanding and helping my problem

    myheader.h
    extern unsigned char const large_data[];

    mydata.cpp
    previous:
    extern "C"...
  17. Replies
    5
    Views
    4,141

    Re: Release mode crash problem

    I have a giant array in one of the source files. I was extern linking this variable throughout. According to the official documentation, this array should be "const", when I changed the array to...
  18. Replies
    5
    Views
    4,141

    Re: Release mode crash problem

    Thank you Victor, I'll update when I find anything interesting.
  19. Replies
    5
    Views
    4,141

    [RESOLVED] Release mode crash problem

    Hi All,

    My program just crashes in release mode. I had one .cpp file which contains a gaint array data. I link this array data using extern global variable.

    It was compiling fine and was giving...
  20. Replies
    0
    Views
    2,201

    Overriding WM_PAINT in textbox

    int WM_Paint_Handler(
    IntPtr hwnd, uint msg, uint wParam, int lParam,
    ref bool handled)
    {
    Win32.PAINTSTRUCT ps = new Win32.PAINTSTRUCT();

    Graphics gr =...
  21. Thread: Good design?

    by thomus07
    Replies
    2
    Views
    2,680

    Re: Good design?

    Thanks, that makes sense.

    I have now modified to:


    public abstract class MyAbstract
    {
    public abstract Dictionary<int, ushort> Table { get; }
    }
  22. Thread: Good design?

    by thomus07
    Replies
    2
    Views
    2,680

    Good design?

    Is the below design OK?



    public abstract class MyAbstract
    {
    public Dictionary<int, ushort> Table
    {
    get;
    protected set;
  23. Re: PInvoke - How to convert IntPtr to double[]?

    I agree, but he can prevent the copy.
  24. Re: PInvoke - How to convert IntPtr to double[]?

    In unsafe block.
  25. Replies
    0
    Views
    2,760

    interop question

    in C dll:

    void foo(unsigned short** buff)
    {
    *buff = &StaticArray[0];
    }

    in C# interop:

    [dllimport : ...]
Results 1 to 25 of 170
Page 1 of 7 1 2 3 4





Click Here to Expand Forum to Full Width

Featured