Search:

Type: Posts; User: kinghajj

Page 1 of 9 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    2,603

    Compile Date/Time?

    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...
  2. Replies
    1
    Views
    2,641

    Autotools OS detection

    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...
  3. Replies
    1
    Views
    1,239

    Detecting I/O redirection?

    Is it possible for an application to detect if stdin, stdout or stderr have been redirected? (Like in the command "ls >file".)
  4. Thread: Weird errors

    by kinghajj
    Replies
    7
    Views
    1,317

    Here's the headers: vm.h #ifndef VM_H...

    Here's the headers:

    vm.h


    #ifndef VM_H
    #define VM_H

    #include "register.h"
  5. Thread: Weird errors

    by kinghajj
    Replies
    7
    Views
    1,317

    Yes, of course. The structs are above the...

    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....
  6. Thread: Weird errors

    by kinghajj
    Replies
    7
    Views
    1,317

    That's not the problem: // in the same...

    That's not the problem:



    // in the same header file
    struct REGISTER {
    unsigned long value;
    };

    typedef struct REGISTER Register;
  7. Thread: Weird errors

    by kinghajj
    Replies
    7
    Views
    1,317

    Weird errors

    Using Dev-Cpp.



    // in a header file
    Register *getReg(Vm *, int);


    Error: parse error before * token
  8. Replies
    2
    Views
    2,148

    Where's the MS suggestion box? lol Thx for the...

    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 +...
  9. Replies
    2
    Views
    2,148

    Contract and Append to arrays

    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[]...
  10. Replies
    8
    Views
    1,852

    It's a file-encryption program. It's availible...

    It's a file-encryption program. It's availible here.
  11. Replies
    8
    Views
    1,852

    My program will have many different ciphers,...

    My program will have many different ciphers, hopefully. I might add DES/Triple DES, too.
  12. Replies
    8
    Views
    1,852

    Ok; like I said in my last post, I am using a...

    Ok; like I said in my last post, I am using a different cipher (which is the default one in my program).
  13. Replies
    8
    Views
    1,852

    I am. My program, so far, uses Rijndael (256-bit...

    I am. My program, so far, uses Rijndael (256-bit key/256-bit blocks) and the Vigenere cipher above.
  14. Replies
    8
    Views
    1,852

    Could this make Vigenere more secure?

    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...
  15. Replies
    7
    Views
    1,454

    good idea: I'll try to see if I can implement...

    good idea: I'll try to see if I can implement that in NerveBreak.
  16. Replies
    7
    Views
    1,454

    It's not my design problem, it's a problem in...

    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.
  17. Replies
    7
    Views
    1,454

    Checking for memory allocation...

    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.
  18. Replies
    5
    Views
    1,241

    I just wanted to know if it was possible. Can...

    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
  19. Replies
    5
    Views
    1,241

    Is there a way...

    Is there a way for a program to read it's own executable code?
  20. Replies
    4
    Views
    1,680

    you would probably need to find the appropriate...

    you would probably need to find the appropriate function on MSDN...
    check http://msdn.microsoft.com/archive/
  21. Replies
    5
    Views
    1,381

    I never did like the necessity of using 'struct'...

    I never did like the necessity of using 'struct' to declare them, but as prelude says, just use typedef and you'll be fine :)
  22. Thread: What is C#

    by kinghajj
    Replies
    13
    Views
    2,124

    Hmmm...

    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 !
    ...
  23. Replies
    6
    Views
    1,213

    the only vector's I've learned are 2-D (not 3-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?
  24. Replies
    6
    Views
    1,213

    Vector? like geometric vectors?

    Vector? like geometric vectors?
  25. Replies
    1
    Views
    949

    Long Question about Portability

    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...
Results 1 to 25 of 219
Page 1 of 9 1 2 3 4