Search:
Type: Posts; User: Marc G
Search:
Search took 0.41 seconds.
-
March 17th, 2020, 09:00 AM
For Standard Library stuff, I always use cppreference. Just Google or Bing and include "cppreference", even without including it, it will be near the top.
-
March 17th, 2020, 08:59 AM
I found that to be always the case...
-
February 4th, 2020, 03:11 AM
I don't think this is safe. The elements in your vector are instances of CComPtr, while the GetFiles() method needs a buffer of plain IDWriteFontFile pointers.
I would create a...
-
February 4th, 2020, 02:56 AM
As Arjay said, you can directly use methods on the CProgressBarCtrl. See MSDN: https://docs.microsoft.com/en-us/cpp/mfc/reference/cprogressctrl-class?view=vs-2019
-
February 4th, 2020, 02:54 AM
I use both MSTest and Google test.
-
I assumed C++, this section of the forum is called "C++ and WinAPI" after all.
-
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...
-
Check the properties of your solution and see that your executable is set as the startup project.
-
Another nice and powerful library is AGG ( http://antigrain.com/ ), unfortunately, not actively maintained anymore, but what's there works nicely.
-
As VictorN said, you can customize the look using custom drawing or owner drawing.
-
April 29th, 2019, 04:10 AM
Just a note: The C++ Standard resize_file() method I mentioned earlier requires C++17.
-
April 29th, 2019, 01:36 AM
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
-
March 27th, 2019, 03:05 AM
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.
-
March 24th, 2019, 01:20 PM
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...
-
March 19th, 2019, 01:30 PM
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.
-
March 19th, 2019, 01:28 PM
That pragma should not be necessary I think.
Can you post your DllRegisterServer code?
-
March 6th, 2019, 07:53 AM
You might have to use lunzip followed by tar.
See: https://apple.stackexchange.com/questions/301016/how-uncompress-tar-lz-file
-
February 10th, 2019, 11:35 AM
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
-
February 5th, 2019, 02:48 AM
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.
-
February 5th, 2019, 02:42 AM
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
-
February 3rd, 2019, 01:55 PM
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...
-
February 3rd, 2019, 07:43 AM
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;...
-
January 31st, 2019, 02:03 PM
How are you iterating? Are you maybe iterating one element too far in your container?
Can you post your iteration loop?
-
January 31st, 2019, 01:45 PM
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...
-
January 28th, 2019, 02:35 PM
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...
|
Click Here to Expand Forum to Full Width
|