|
Functions in the Win32 SDK that return variable-sized data usually allow you to pass a zero-sized buffer, and then they tell you how much space you'll need. They tend to look like one of the following (simplified):
LSTATUS RegQueryValueExA (HKEY hKey,...
Started by Roger Lipscombe on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
For example (unchecked):
DWORD....
The required size is returned.
Being declared locally, no time is wasted on the allocation, and the only overhead is the chance of running out of stack (which is slim) .
In a size large enough for most cases.
|
|
For .Net there are lots of projects that Microsoft/others provide via which one can learn how patterns etc. are implemented in real life projects.
I am looking for ones for J2EE (apart from the samples that Sun provides on: http://java.sun.com/javaee/...
Started by Aayush Puri on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
About the Java PetStore 2.0 :
The Java Java Persistence APIs... .
This, and the Java BluePrints project, are a good reference about patterns in a decent sized project) that show patterns and how they can be implemented using JEE APIs.
|
|
I've done the lidded boxes. Hate it. It's a pain to drag the whole box down to look through it. I have a few that I printed off or tore out of magazines in page protectors in a notebook. It's just ok, but I don't want to take all of my commercial patterns...
Answer Snippets (Read the full thread at twopeasinabucket):
A little larger (more your pattern size) in drawers of that size -
Something like this is what I have half size binders, 5.5 x 8.5, and put my quilt patterns in the page protectors of that size by size....
|
Ask your Facebook Friends
|
I have a web application that generates a medium sized XML dataset to be consumed by a third party. I thought it would be a good idea to provide some form of schema document for the XML that I generate so I pasted the XML into Visual Studio and got it...
Started by Scott Muc on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
|
|
I'd appreciate people's thoughts on a dilemma I've been struggling with ever since ASP.Net came out.
In classic ASP, the layers of code were minimal. The ASP page contained HTML and script combined. The COM components contained business logic and DAO ...
Started by LuftMensch on
, 12 posts
by 12 people.
Answer Snippets (Read the full thread at stackoverflow):
So they go into a project problem that is preventing you from... .
Wrongly believe that maximizing layers of abstraction and pattern use makes them better developers and patterns, but have not been taught well enough to know how, when or why.
|
|
Basically I'm working on a program that processes a lot of large video and image files, and I'm struggling with the memory management side of it because I've never dealt with anything quite like this before.
For instance, it stores all these images in...
Started by Max Schmeling on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
It suggests, Pool Allocation Pattern: Preallocates pools of needed objects
Fixed Sized Buffer Pattern: Allocates memory in same-sized blocks
Smart Pointer Pattern: Makes pointers reliable
GarbageIt seems that to increase....
|
|
Does anyone have a good method for sizing patterns up or down? I'm never sure where I can add extra inches...thanks!
Started by SpyChicken on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at maryjanesfarm):
It is easier to make pattern size where....
You can use the smaller size in certain areas, and the larger of multi-sized patterns without cutting the original pattern.
Try to find multi-sized patterns.
|
|
Alevel project complete patterns (PIC heavy)
So iv finally finished my AS photography (well lens based art may be more accurate :thumbsdown: )
This is my second project and i was looking at patterns, First is my observation (not all of it, just some ...
Started by Llama on
, 11 posts
by 5 people.
Answer Snippets (Read the full thread at talkphotography):
Http://farm8.staticflickr....
Would the patterens
http://farm8.staticflickr.com/7082/7...ce365446_z.jpg
Pattern 1 by j.clarke213 , on Flickr
18.
Of those patterns are pretty funky, I bet #24 would look cool as a giant wall-sized print.
|
|
Perry Post subject: Re: patterns and clever people Posted: Sat Jan 09, 2010 5:58 pm
Joined: Mon Nov 02, 2009 9:43 am
Posts: 3863
Location: Staff/Shrop/Chesh Borders Have you looked in the pattern section on the board index? Alternatively pm somebody from...
Answer Snippets (Read the full thread at freeforums):
Pleased that you were able to make a book of our patterns with....
I'm looking forward to it already.
I am planning to make a book of our patterns with lots of new ones in as well which I will sell always looking out for new patterns.
|
|
Skeettx gave me a tip recently to tighten up patterns in my Antoine Marechal cyl/sk choked hammer gun. Simply wrap scotch tape around the wad and load as usual. My primary reason for wanting to try this is because I'd also like to use the gun for chukars...
Started by UncleDanFan on
, 15 posts
by 9 people.
Answer Snippets (Read the full thread at 16ga):
The wad would flip with shot inside the cup and hit the pattern board gas seal first and punch one hole through ....
We experimented with slitting the Ballistic Products pattern driver wad with only two slits rather than the recommended 4.
|