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

Search:

Type: Posts; User: zerver

Page 1 of 65 1 2 3 4

Search: Search took 0.07 seconds.

  1. Replies
    4
    Views
    71

    Re: Installing FLTK on VS 2013

    If you download a library such as FLTK, you should not put those files in the visual studio folder.

    Instead you change your project settings to add an include path that contains the files you...
  2. Replies
    1
    Views
    110

    Re: My binary tree class

    I don't have time to comment on the algorithm, but some generic tips before submitting any code:

    * Check for repeated code and repeated calculations that you can optimize to make it more readable....
  3. Re: How to make a shape outside of the main() function

    So you don't get this error if you move it into the main()?
    The only reason I can think of is that win.attach() does not copy the object, but rather stores a reference or pointer to it.

    Does the...
  4. Replies
    4
    Views
    158

    Re: How do I step into SDK source?

    At least in theory, you take the source files and add them to your project, and you also remove the lib file.

    In practice however, you may find that it is not so easy to get everything working...
  5. Replies
    9
    Views
    283

    Re: The simplest way to print...

    I suggest you make a system service.

    Regards
  6. Replies
    3
    Views
    216

    Re: Problem with initializing auto variables

    Sorry to hear that. If there is a new compile error you need to post it, otherwise it will be difficult to help.

    Based on this page:...
  7. Re: C++ fill color in shapes using FLTK doesn't work for circles

    If it is the exact same IDE/compiler (please note that you may have the same IDE but a different compiler version), and the exact same FLTK version, then all I can think of is that your graphics...
  8. Re: How to make a shape outside of the main() function

    Send a reference to the window to your function.


    void cir(Simple_window &win) { Circle c(Point(100,100),50); win.attach(c); }

    int main()
    {
    Simple_window win(Point(100,100),600,400,...
  9. Replies
    3
    Views
    216

    Re: Problem with initializing auto variables

    If you read the message, it has nothing to do with the "auto", but rather the input parameter of find.

    I'm not sure how you construct an encoded_string, but something like this:

    auto it =...
  10. Replies
    3
    Views
    202

    Re: help with this code

    It looks like you are attempting to use one or more secondary files for the calculations.
    Not good... the normal way of doing it would be to use a std::map to map each word to its count.

    Also you...
  11. Thread: [help] game dev

    by zerver
    Replies
    4
    Views
    309

    Re: [help] game dev

    GCDEF is right in the sense that it is hard to acquire deep understanding of C++ using only the web.
    Even if you have a good teacher, there are many, many pitfalls.
    You may end up thinking that you...
  12. Re: Excel Project to C++ with line moving (drag & drop)

    This type of project is (maybe) better suited for Excel.

    But if you still want to try it, here is a good article:...
  13. Re: C++ fill color in shapes using FLTK doesn't work for circles

    This is old, but maybe still relevant because it says something about "compiler bug".
    http://www.fltk.org/str.php?L1656

    Maybe with a different compiler, or different FLTK version, your problem...
  14. Replies
    4
    Views
    287

    Re: Sorting a vector alphabetically?

    That sounds like homework to me.

    Most people around here will not help you with homework unless you have a very specific question.

    However, you should read your course literature about structs...
  15. Replies
    2
    Views
    379

    Re: C++ open source project for beginners

    As a newbie it is better to just try to find a project that interests you. Copy the source and play around with it.

    Only after you have gained significant experience should you try to contact the...
  16. Replies
    4
    Views
    287

    Re: Sorting a vector alphabetically?

    It depends.

    If the strings are already in your vector and you want to change nothing, try std::sort().

    However, you could also replace the vector with a std::set, which is automatically sorted....
  17. Replies
    1
    Views
    210

    Re: Selection issue with CListCtrl

    The dotted rectangle is called focus, while the blue stuff is your selection as you already pointed out.

    You use this function:
    m_ListCtrl.SetItemState(nIndex, LVIS_SELECTED|LVIS_FOCUSED,...
  18. Re: How to use watch in VS2010 when I use singlton?

    S::I() is a function and you can't watch the return value of a function.

    So you have to workaround. For example, in this function where you create the singleton, also assign it to a global...
  19. Re: CString::Format() Cannot Align Well Vertically

    this!
  20. Re: How do you CWnd::SendMessage(...) a pointer to a string?

    Messages is the best way, since other solutions would require polling (periodic testing) which makes your program ugly and inefficient.

    But... why don't you let the worker thread itself delete...
  21. Replies
    5
    Views
    2,685

    Re: First Chance Exception CString

    Alright, well then use the _T macro anyway just to be sure, and rewrite the code a bit to rule out the possiblilty of corruption...


    CString test = dadir;
    test += _T("\\*.csv");
    thepath = test;
  22. Replies
    5
    Views
    2,685

    Re: First Chance Exception CString

    I'm not very experienced with unicode, but IIRC you have to prefix the string constants with "L".

    thepath = dadir + L"\\*.csv";
    Does it make any difference?
  23. Replies
    7
    Views
    6,001

    Re: A custom pyramid-drawing program

    Like kaud said, you need to devise the mathematical formulas that calculate the number of stars and blanks for any given row number.

    When you have done that, it will be easy to deploy a few loops...
  24. Replies
    9
    Views
    9,580

    Re: Making an octagon out of right triangles

    You don't need 16 triangles if it is okay to overlap them. Use two triangles to make a rectangle that touches two opposite sides of the octaton.
    Make another such rectangle rotated 45 degrees to...
  25. Re: Two ChlidFrames in one MDI application?Is it a good solution?

    If the "big" view will always be visible, then I suggest instead to make a dockable panel, similar to what you find in many apps such as Visual Studio.
Results 1 to 25 of 1614
Page 1 of 65 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center