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

Search:

Type: Posts; User: pebmeister

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Re: What control can add pictures and text horizontally ?

    I would use a Grid. This is what they are made for
  2. Replies
    5
    Views
    4,110

    Re: Issue with camera

    also make sure in C# you use




    [StructLayout(LayoutKind.Sequential)]
  3. Replies
    1
    Views
    627

    Re: Working with verbatim strings

    For starters you have
    filename = @"\this is a test\";
    and
    string test = @"/this is a test/";


    2nd why are you using slashes unless you have a reason for them. They are not needed.
    ...
  4. Re: unhandled exception of type 'System.InvalidOperationException' occurred in System

    Run your program in the debugger and break when the dialog appears. This will show you where you need to change your code to use the above code
  5. Re: unhandled exception of type 'System.InvalidOperationException' occurred in System

    You can not modify the GUI from a outside the GUI thread.

    You need to do something like this on WPF




    /// <summary>
    /// Execute an action in a GUI thread
    ///...
  6. Re: how to generate qr code for my personal image

    https://en.code-bude.net/2013/10/17/qrcoder-an-open-source-qr-code-generator-implementation-in-csharp/
  7. Re: beginner GUI and console problem with rounding/formatting

    FYI you print chocolate is 4.72 but charge 4.7. Customers wont like that.
  8. Re: beginner GUI and console problem with rounding/formatting

    You are looking for Math.Round




    Console.WriteLine("chocolate – $4.72 / lb jellybellies – $5.75 / lb " +
    "lollipop - $.57 ea. gummy bears – $5.25/lb " +
    ...
  9. Re: Help! How to get index of an item in CTreeCtrl ?

    TVINSERTSTRUCT tvInsert = { 0 };
    tvInsert.hParent = TVI_ROOT;
    tvInsert.hInsertAfter = NULL;
    tvInsert.item.mask = TVIF_TEXT;
    tvInsert.item.pszText = _T("Item Text");


    HTREEITEM...
  10. Replies
    2
    Views
    582

    Re: Need help coding please

    You should probably do your homework assignment.
    You are asking us to write the whole thing for you.
  11. Thread: SqlCe query

    by pebmeister
    Replies
    4
    Views
    900

    Re: SqlCe query

    I use LINQ on lists and XML, not sure how to use it on a database query.
  12. Thread: SqlCe query

    by pebmeister
    Replies
    4
    Views
    900

    SqlCe query

    Hello,
    I have a scrabble dictionary database. Originally I had the data in XML. I have moved the data to a SQLCe data base. When it was XML I used the following code to query based on the count...
  13. Replies
    2
    Views
    746

    Re: c# conditional formating

    I would bind the Text to a property and bind the Background to a property



    <Window x:Class="WpfApplication1.MainWindow"
    ...
  14. Re: Using threads and sigaling in plain C++ or Unix

    Thanks. I did get it to work using c++11



    #include <cmath>
    #include <iostream>
    #include <thread>
    #include <fstream>
    #include <chrono>
  15. Using threads and sigaling in plain C++ or Unix

    I have written a Windows console app that uses some windows APIs.
    Specifically it uses threads (CreateThread, ResumeThread) and signaling(WaitForMulipleObjects, WaitForSingleObject).
    The program...
  16. Replies
    19
    Views
    17,993

    Re: Why is Microsoft pushing Windows 10 so hard?

    FORCED UPGRADE?

    What nonsense. Why should someone be forced to upgrade.
    Microsoft's arrogance is amazing

    Like I said I consider it malware and adware. I have stopped this on my machine
  17. Re: Static code analyzer PVS-Studio has now C# support

    I use ReSharper. https://www.jetbrains.com/resharper/
  18. Replies
    19
    Views
    17,993

    Re: Why is Microsoft pushing Windows 10 so hard?

    FYI Mike there are ways ways to remove this horrible built in ad to upgrade to 10. I consider it *malware*.
    I am extremely pissed off and many others are to because of this. Good way to push...
  19. Replies
    2
    Views
    679

    Re: need help with program for class

    An array starts at 0 index.

    So it looks like


    double highest = iArray[filename.Length];


    should be
  20. Re: Background worker bug in VS2015?

    Can you post the code in your worker thread and how its called? I can debug Background worker threads in VS2015. Make sure your main thread in not in a tight loop.
  21. Re: warning C6386: Buffer overrun while writing to 'p->op'

    I changed it slightly and now I get no warnings.



    /// <summary>
    /// create Operator parnode
    /// </summary>
    /// <param name="oper">The operator.</param>
    /// <param name="nops">The number of...
  22. Re: warning C6386: Buffer overrun while writing to 'p->op'

    Wow found the real problem

    [code]
    size = nops * sizeof(parseNodePtr);
    [code]

    should be
    [code]
    size = nops * sizeof(parseNode);
    [code]
  23. Re: warning C6386: Buffer overrun while writing to 'p->op'

    Thanks for the response. I can now see how it could be a buffer overrun.
    In the practical world nops will always be 0,1 or 2
    I should special case 0. I will also do a range check on nops the entry.
  24. Re: warning C6386: Buffer overrun while writing to 'p->op'

    FYI here is the parseNode data type


    typedef struct
    {
    int value; /* value of constant */
    int IsPC; /* TRUE is value is PC */
    } conParseNode;
    ...
  25. warning C6386: Buffer overrun while writing to 'p->op'

    Hello
    I am using Visual Studio 2015 and ran Code Analysis on my solution

    It gives me this warning

    1>
    Warning C6386 Buffer overrun while writing to 'p->op': the writable size is 'size'...
Results 1 to 25 of 26
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured