Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~2K People Reached
Favorite Forums
Member Avatar for mwjones

I'm having trouble writing binary data out to a file. My end goal is to add a chunk to a PNG file; which has a format of: length (4 bytes), type (4 bytes), data (lots of bytes), crc32 (4 bytes). Collecting each of these pieces is not a problem, but …

Member Avatar for woooee
0
226
Member Avatar for mwjones

Is it possible to have an optional command-line argument? For example, I want: [CODE]script.py -b[/CODE] to behave differently than [CODE]script.py -b 6[/CODE] In script.py, an enumerated -b argument specifies a behaviour, but if no argument is specified, a behaviour is randomly chosen. Here is my experimentation with getopt. With an …

Member Avatar for Gribouillis
0
235
Member Avatar for mwjones

I'm running into a snag using the [B]_emit[/B] pseudoinstruction, but more accurately a snag using the C preprocessor. I have an array of op codes from which I want to randomly select one and _emit it into the program's code. Here is an example: [CODE]unsigned char opcodes[] = { 0x60, …

Member Avatar for mwjones
0
170
Member Avatar for mwjones

Hello, My friend and I are learning to program by creating and solving little challenges for each other. In the most recent one, he hid something in the resources of his program. I can find and save the resource off manually using .NET Reflector; but I am trying to do …

Member Avatar for mwjones
0
943