15 Archived Topics

Remove Filter
Member Avatar for MosaicFuneral

Haven't programmed in a long time. Last project was a GCODE pathway generator I wrote several years back. My compiler is obviously several years out of date. Uses time(), itoa(), rand(). Current standard compliant compilers should have <chrono>, <thread>, <random>, and to_string() in suppliment to those more deprecated functions. This …

Member Avatar for DGPickett
2
3K
Member Avatar for MosaicFuneral

As the title says - it's reporting, "The specified service does not exist as an installed service." I'm running this as an administrator and have a successful ALL_ACCESS handle to the SCM. At some earlier points I did have some trouble with the narrow to wide conversion. I believe that's …

Member Avatar for MosaicFuneral
0
293
Member Avatar for MosaicFuneral
Member Avatar for MosaicFuneral
Member Avatar for MosaicFuneral
Member Avatar for MosaicFuneral

"Hello World!" done a little differently. Is this safe, unlikely; is there a point to all of this crap, nope; why are parts obfuscated, because I felt like it; was it fun, yes. You'll need the newest version of MinGW to compile, I used options -O2 -Os -s.

Member Avatar for MosaicFuneral
0
357
Member Avatar for MosaicFuneral

Got bored, remember a question asked in the forums, and decided to try something similar.

Member Avatar for MosaicFuneral
0
9K
Member Avatar for MosaicFuneral

A quick way of spying inside of a process. You could also turn this into something like a disassemble, pretty easy, if you wanted too. Quick Notes: The inline assembly is GCC dependent(quick fix for other compilers), and in MinGW you need to link th32 and gid32. The code flow …

0
462
Member Avatar for MosaicFuneral

After flipping through some organic chemistry books I had, I found a interesting little table of basic hydrocarbons. I decided it would be nice to play around with it, by putting together something that could to some accuracy generate them. I am by no means a chemist. You don't even …

0
142
Member Avatar for MosaicFuneral

I decided to find a use for the STL map, and this is what I decided would be cool to practice with. Just have three placed in the code. Could use a function to load the requested elements from a file.

Member Avatar for ddanbe
0
253
Member Avatar for MosaicFuneral

From part of a cryptanalysis tool I was writing, the other day. A way of obtaining possible XOR'ed string values. If you ever get to the point in the analysis that you can simply XOR the string to get closer towards your goal, of finding a weakness, this might be …

Member Avatar for MosaicFuneral
0
379
Member Avatar for MosaicFuneral

Occasionally there's times when you want to shift a bit over, but you would like to preserve the end of it, for one reason or another. Such as with say you have: [icode]10000001[/icode] but you would like: [icode]00000011[/icode] then latter on back to: [icode]10000001[/icode] Or in Dec 129-into-3, and 3-into-129. …

0
1K
Member Avatar for MosaicFuneral

In GCC/MinGW when I map a function to a specific section can I expect the sections [icode]Characteristics[/icode] bits 5, 9 and 30(IMAGE_SCN_CNT_CODE | IMAGE_SCN_MEM_EXECUTE | IMAGE_SCN_MEM_READ) to be set or always set? What about for an all variable mapped section? I just wanted to know if I could confirm a …

Member Avatar for Salem
0
267
Member Avatar for MosaicFuneral

Here's what I'm trying out: [icode]Substitute characters into values with no set left bits; check if the next position is a vowel(or whatever), turn it into a value with no right bits set, join the two characters into a single byte, delete the unused position now.[/icode] Here's the code using …

Member Avatar for MosaicFuneral
0
295
Member Avatar for MosaicFuneral

I'm on Dev-C++ 4.9.9.2 default options, WinXP SP3, P4 w/ HT. When I c-shift a value, and then back I get back distorted values. Using the standard _rotr() and _rotl. [code] /*somewhere in main()*/ str = "I'm a fairy! abc xyz ABC XYZ"; printf("\n%s\n", str.c_str()); for(i = 0; i < …

Member Avatar for ArkM
0
160

The End.