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

Search:

Type: Posts; User: Marc G

Page 1 of 80 1 2 3 4

Search: Search took 2.58 seconds.

  1. Re: Reading contents of file into SetWindowTextA for output into an Edit field of win

    I assumed C++, this section of the forum is called "C++ and WinAPI" after all.
  2. Re: Reading contents of file into SetWindowTextA for output into an Edit field of win

    Why GlobalAlloc() after all?
    You can just use standard C++ memory allocation.
    Preferably using some kind of RAII object like std::vector.
    So, instead of GlobalAlloc(), create std::vector of the...
  3. Replies
    6
    Views
    459

    Re: Hello world prgram not runing

    Check the properties of your solution and see that your executable is set as the startup project.
  4. Re: C or C++ equivalent to Java 2D graphics functionality

    Another nice and powerful library is AGG ( http://antigrain.com/ ), unfortunately, not actively maintained anymore, but what's there works nicely.
  5. Replies
    9
    Views
    450

    Re: How are these controls created ?

    As VictorN said, you can customize the look using custom drawing or owner drawing.
  6. Replies
    6
    Views
    338

    Re: trancate fonction

    Just a note: The C++ Standard resize_file() method I mentioned earlier requires C++17.
  7. Replies
    6
    Views
    338

    Re: trancate fonction

    I suggest to use the portable C++ Standard resize_file() method. It's part of the C++ Standard Library std::filesystem.
    See https://en.cppreference.com/w/cpp/filesystem/resize_file
  8. Re: How to edit original object through object* temp that points to original object?

    Please post compilable code.
    What's the definition of your Friend class?
    Where do you define your vector?
    You are using f1 which is uninitialized.
  9. Replies
    2
    Views
    338

    Re: Location for Windows system classes?

    What do you mean stored in the file system?
    Most are probably in user32.dll.
    If you want to create menu's that look completely different, you probably better of starting from scratch on your own...
  10. Re: Unresolved external symbol since migration to_X64

    A quick search brought me to: https://stackoverflow.com/questions/52602411/vs2015-after-migration-to-x64-middle-compiler-has-unresolved-smbols
    There they say to remove the pragmas.
  11. Re: Unresolved external symbol since migration to_X64

    That pragma should not be necessary I think.
    Can you post your DllRegisterServer code?
  12. Replies
    1
    Views
    376

    Re: gmp-6.1.2.tar.lz collecting cygwin.

    You might have to use lunzip followed by tar.
    See: https://apple.stackexchange.com/questions/301016/how-uncompress-tar-lz-file
  13. Replies
    3
    Views
    622

    Re: Inverting axes in the back buffer

    Bitmaps in Win32 are usually up-side down.
    See this article: https://docs.microsoft.com/en-us/windows/desktop/directshow/top-down-vs--bottom-up-dibs
  14. Thread: Color indicator

    by Marc G
    Replies
    7
    Views
    688

    Re: Color indicator

    Yes, that's one way to detect clicks.
    As said, if you want to encapsulate it further, you might want to look at custom control. Here is a good set of articles.
  15. Replies
    1
    Views
    426

    Re: Cant figure out my errors

    Are you sure that's the right piece of code and right set of errors?
    According to the first error, there is something wrong on line 33, but line 33 is the following comment:

    //ntosp.h
  16. Thread: Color indicator

    by Marc G
    Replies
    7
    Views
    688

    Re: Color indicator

    Right, my mistake. My code is indeed using MFC syntax, but as Arjay said, it's pretty much straightforward to translate that to Win32 API calls.

    To intercept mouse clicks, you can just handle...
  17. Thread: Color indicator

    by Marc G
    Replies
    7
    Views
    688

    Re: Color indicator

    One way is to just implement the drawing in the OnPaint handler of your dialog. For example:

    void CMyDialog::OnPaint()
    {
    CPaintDC dc(this);

    CRect rect;...
  18. Replies
    13
    Views
    743

    Re: Eliminating an odd bug

    How are you iterating? Are you maybe iterating one element too far in your container?
    Can you post your iteration loop?
  19. Replies
    13
    Views
    743

    Re: Eliminating an odd bug

    Based on that piece of code, there is not much we can help you with.
    That piece of code is perfectly fine.
    Maybe there is some dynamic memory happening inside the struct?
    Maybe that's not properly...
  20. Replies
    27
    Views
    2,441

    Re: What debuggers do you use?

    As others have said, it's impossible to write bug-free code, but there are tools to help you.
    One such tool is called unit-tests. You should write unit-tests to cover every line of code you've...
  21. Replies
    27
    Views
    2,441

    Re: What debuggers do you use?

    BuildVision is another nice plugin to give a nicer overview of a build process.
  22. Replies
    9
    Views
    638

    Re: Library File Format questions.

    What exactly are you trying to achieve?
    What is your use-case?
    The format of Windows .lib files is explained here:...
  23. Replies
    9
    Views
    638

    Re: Library File Format questions.

    I don't think you understand the concept of .lib and .a files.
    These are compiled binaries. They consist of compiled functions, classes, and so on. They do not have some kind of "filesystem" in them...
  24. Replies
    27
    Views
    2,441

    Re: What debuggers do you use?

    Visual Studio includes one of the best debuggers that I've tried.
    I would never try to replace the built-in debugger.

    Regarding plugins, I've use VisualAssist in the past, and now I'm using...
  25. Replies
    9
    Views
    638

    Re: Library File Format questions.

    The question of converting .a to .lib has been asked a lot.
    A quick search on Google reveals quite a few hits: https://www.google.com/search?client=firefox-b-ab&q=convert+.a+to+.lib
    I don't have...
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)