I'm working on a small program, and I compile so often that it would be easier for me to see a compile date/time than a version number. Is there any C#/.NET way to make to compiler substitute the...
Type: Posts; User: kinghajj
I'm working on a small program, and I compile so often that it would be easier for me to see a compile date/time than a version number. Is there any C#/.NET way to make to compiler substitute the...
How do I get autotools (automake/autoconf/etc.) to define a macro for my program so that I can compile different code depending upon what OS I compile on?
What I want to do is load a ".so" library...
Is it possible for an application to detect if stdin, stdout or stderr have been redirected? (Like in the command "ls >file".)
Here's the headers:
vm.h
#ifndef VM_H
#define VM_H
#include "register.h"
Yes, of course. The structs are above the prototypes.
Update: if I change the "Vm *" to "int", (somehow!) Dev-Cpp compiles it, then if I change it to "Vm *" again, it compiles it that one time....
That's not the problem:
// in the same header file
struct REGISTER {
unsigned long value;
};
typedef struct REGISTER Register;
Using Dev-Cpp.
// in a header file
Register *getReg(Vm *, int);
Error: parse error before * token
Where's the MS suggestion box? lol
Thx for the code, but it's not working:
private byte[] combinebytes(byte[] array1, byte[] array2)
{
byte[] array3 = new byte[array1.LongLength +...
One of my favorite programming languages, D, has two operators to easily contract or append to arrays (all types of arrays, not just "char[]", as in the example below):
// contract
char[]...
It's a file-encryption program. It's availible here.
My program will have many different ciphers, hopefully. I might add DES/Triple DES, too.
Ok; like I said in my last post, I am using a different cipher (which is the default one in my program).
I am. My program, so far, uses Rijndael (256-bit key/256-bit blocks) and the Vigenere cipher above.
I'm wondering if the Vegenere cipher could be more secure if the key generation technique below is used...
In this method, the first key is the SHA-512 hash of the given password. When all 64...
good idea: I'll try to see if I can implement that in NerveBreak.
It's not my design problem, it's a problem in problem NerveBreak (http://nervebreak.sf.net/). I'm just trying to find a way around it.
Is there a function that will take a memory address and see if it is in use? I need to know so that a function I'm writing can tell if a "long" is a number, or a location of a string.
I just wanted to know if it was possible.
Can you point me to a page that would have the list of functions I would need to use to try it out?
OS: Windows (XP)
Compiler: GCC
Is there a way for a program to read it's own executable code?
you would probably need to find the appropriate function on MSDN...
check http://msdn.microsoft.com/archive/
I never did like the necessity of using 'struct' to declare them, but as prelude says, just use typedef and you'll be fine :)
I say that if you don't use the software for profit (example, your just playing around with C#, not making software for sale), then it's not a big deal... you shouldn't have to pay to play :D !
...
the only vector's I've learned are 2-D (not 3-D, which it seems you want to do)..
So, basically, you want to calculate the distance of a vector?
Vector? like geometric vectors?
There's a scripting language, called NerveBreak, which compiles & runs fine on Windows and Linux. However, on MacOS X, it compiles but gives a "Segmentation Fault" error when I try to run a script. I...