Search:
Type: Posts; User: GeoRanger
Search:
Search took 0.04 seconds.
-
February 8th, 2020, 02:59 PM
Thank you! I'm new to COM so this has been quite a dive. Apparently, one can do the job safely as long as the vector<CComPtr<IDWriteFontFile>> is allocated before the call to GetFiles. One...
-
January 30th, 2020, 12:03 AM
Hello,
I am trying to use CComPtr to manage all of the COM objects in a block of code which uses DirectWrite.
IDWriteFontFace::GetFiles takes an array of pointers to IDWriteFontFile as its...
-
March 23rd, 2017, 01:39 PM
Hello,
I have discovered a problem in a much larger program and am wondering if someone could please tell me if there's a common, best-practices way to solve it.
class...
-
December 19th, 2016, 09:02 PM
Hello:
I think the typical usage pattern for using std::memory_order_consume is something like this:
std::atomic<int> state;
...
int x = state.load(std::memory_order_consume);
int y = x...
-
Hello,
In the code you posted, you don't have anything which is actually drawing on the device context of the window, but only to DC's in memory. This looks like MFC code. Are you doing this in...
-
February 3rd, 2016, 05:30 PM
Hello,
I have a class hierarchy which has an interface at its root. Some of the intermediate classes in the tree do not fully implement the interface, but nonetheless need to be able to create...
-
November 30th, 2015, 11:44 PM
You just want all possible combinations of one's and zero's only in the positions where the input has a one, right?
If so, think of the zero's and one's as simply being a binary number. If you...
-
September 20th, 2015, 09:44 PM
Hi,
I am having a problem in which a program crashes after 2 to 12 hours due to memory fragmentation. I am exploring several options for trying to solve it. I cannot convert it to a 64-bit...
-
April 13th, 2015, 12:10 AM
This article, "Acquire and release sound like bass fishing terms, but they also apply to memory models" <http://blogs.msdn.com/b/oldnewthing/archive/2008/10/03/8969397.aspx>, seems to provide a good...
-
October 1st, 2014, 01:27 PM
Thank you both for your interest and responses. :)
Thank you Paul McKenzie for the quote from the Standard. That's the kind of information I was hoping to find.
2kaud, I'm using Visual Studio...
-
September 30th, 2014, 05:32 PM
Hi,
I've got the following code which demonstrates a problem and am hoping someone can explain:
struct A
{
double x[2];
double i;
-
September 24th, 2014, 02:08 PM
Thank you three for your responses! :)
My contrived example doesn't do a great job of expressing the real problem. The real problem is an optimization problem where the derived classes...
-
September 17th, 2014, 03:59 PM
Hi,
The contrived code below demonstrates a problem I am having in a larger program. I want to have a base class which contains the functionality to assemble a group of objects into a container. ...
-
September 7th, 2014, 11:19 PM
Are you just looking for the basic but non-obvious syntax?
// The crucial thing to remember here is to read non-trivial pointer declarations backward
// but with grouping by parentheses. So,...
-
November 19th, 2013, 05:45 PM
Thank you both for your replies! :)
laserlight, I decided to use your idea and it has cured 90% of the issue. I added a small class which is able to give the appearance of being either an array...
-
November 18th, 2013, 02:34 PM
Hi,
I have a class in a speed critical program which contains some data to be shared with callers outside the class. The data is reasonably large and copying it should be avoided as much as...
-
From Paul McKenzie:
Quite true! What fools some programmers into thinking otherwise is that the C Run Time will sometimes check the integrity of the heap in a debug build on calls to delete (or...
-
April 29th, 2013, 11:46 PM
The only false positives I've ever seen from the CRT leak-checking happen when you allocate and delete memory in a static singleton. Apparently, the CRT initiates the leak-checking when a static...
-
April 28th, 2013, 07:53 PM
At the risk of sticking my neck out, I wonder if I could give my two cents on the issue of the usage pointers vs. references discussed back in posts 5 through 9 of this thread? (Please excuse me if...
-
April 18th, 2013, 11:36 PM
This sounds (no pun intended) like it might be a good candidate for offloading to the GPU. If you are using Visual Studio 2012 you can use AMP...
-
April 17th, 2013, 11:25 AM
Hello:
I have a dump file from a remote machine which I'm trying to debug. Both the remote machine and my debugger are using Windows 7 with Service Pack 1. The crashing program was built with...
-
March 28th, 2013, 11:40 PM
Sidebar: How do you get the quote icon and the name of the person who said it inside the box?
This is only my opinion and I know a lot of people, including the designers of the STL, disagree with...
-
March 1st, 2013, 01:57 AM
From amcelroy:
Well, it largely boils down to what Paul McKenzie was saying in posts #18 and #19. It's the whole "undefined behavior" idea. If the random variable points outside the program's...
-
March 1st, 2013, 12:07 AM
From amcelroy:
Actually, that is quite easy to do in a non-erroneous way, as long as you are careful not to access any member data or the v-table of the possibly NULL class. (MFC code did it...
-
February 18th, 2013, 04:03 PM
I didn't mean to start a war! :)
Actually, I'm finding the posts from all three of you potentially useful. Unfortunately I've not had the opportunity to try any of these ideas yet four a couple...
|
Click Here to Expand Forum to Full Width
|