Search:

Type: Posts; User: btq

Page 1 of 7 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: (int) casting

    by btq
    Replies
    7
    Views
    881

    argv[1] is a char-string, not a number. To...

    argv[1] is a char-string, not a number.
    To convert it to an int look up atoi().

    /btq :)
  2. Replies
    9
    Views
    1,670

    what is it more exactly that you want to do ?...

    what is it more exactly that you want to do ?
    Are you writing self-modifying-code ?
    If so, putting the code on the stack and calling it is
    perfectly accebtable(like you did).

    Although if you...
  3. your problem is here: void main(void) { ...

    your problem is here:


    void main(void)
    {
    srand(time(NULL));

    void testDeleteAtPos (void); // <---- here
    }
  4. Replies
    9
    Views
    1,670

    IIRC, on windows you can call the function...

    IIRC, on windows you can call the function VirtualProtect to
    to make a text-segment writable for these types of operations.

    /btq :)
  5. Replies
    3
    Views
    1,235

    basically you need to supply a template dialog...

    basically you need to supply a template dialog and a
    hookprocedure to your OPENFILENAME structure.
    I found this quite informative. Click on "Open and Save As dialog boxes" in the left frame....
  6. Thread: Hide Application

    by btq
    Replies
    17
    Views
    1,749

    I remember seeing someone asking this and the...

    I remember seeing someone asking this and the answer
    was simply "you can't" . Here's a draft of the irc-log (names erased, 3 persons and no 1 is the one asking the question ):



    maybe this is...
  7. Thread: HBITMAP from hdc

    by btq
    Replies
    5
    Views
    16,697

    uhmm...it's been a long time since I messed...

    uhmm...it's been a long time since I messed around with this.
    Here's what I did:


    HDC myDC = CreateCompatibleDC(originalDC);
    HBITMAP myBMP = CreateCompatibleBitmap(myHDC);...
  8. Thread: Compiling Dll's

    by btq
    Replies
    1
    Views
    1,047

    In devc++ just choose file->new->project and...

    In devc++ just choose file->new->project and select DLL.

    /btq :)
  9. Replies
    16
    Views
    5,575

    hmmm..when you said ,does this apply to all...

    hmmm..when you said


    ,does this apply to all functions, ie, you can't use a single function
    from you lib ?

    like I said it's really hard to solve this without seeing the code.
    I suggest you...
  10. Replies
    16
    Views
    5,575

    yes, it's like that. How do you include the .lib...

    yes, it's like that.
    How do you include the .lib file ? "Add existing" or in
    "project properties->linker->inputs->Additional dependencies" ?
    Don't know what the difference is really, both of the...
  11. Replies
    16
    Views
    5,575

    I'm really sorry about pointing you in the wrong...

    I'm really sorry about pointing you in the wrong direction :(

    It's really hard to tell what's wrong without seeing the code
    (or rather the project ).
    Can you upload the soultion/projects ?
    ...
  12. Replies
    16
    Views
    5,575

    the .lib files only tells the compiler where the...

    the .lib files only tells the compiler where the functions reside
    inside the dll. You must put the dll inside your programs library.
    There are no code in the .lib file, it's just an import...
  13. Replies
    12
    Views
    1,157

    just don't do it if you have doubts. You might...

    just don't do it if you have doubts. You might not only hurt someones feelings but you may also make it hard for yourself.
    Leaving for a year, not knowing what is goin on.
    I would avoid situations...
  14. Replies
    16
    Views
    5,575

    ehhrmm...I should've just done this in the first...

    ehhrmm...I should've just done this in the first place, sorry about that :




    # ifndef BUTTON_H
    # define BUTTON_H

    #ifdef export
    #define MYLIBAPI extern "C" _declspec(dllexport)
  15. Replies
    16
    Views
    5,575

    //this goes in the header #ifdef export #define...

    //this goes in the header
    #ifdef export
    #define MYLIBAPI extern "C" _declspec(dllexport)
    #else
    #define MYLIBAPI extern "C" _declspec(dllimport)
    #endif

    MYLIBAPI int MyFunctionInDaLib(int,int)...
  16. Replies
    16
    Views
    5,575

    are you sure you're exporting/importing it right...

    are you sure you're exporting/importing it right ?,
    ie, using the "_declspec(dllexport) / _declspec(dllimport)" correct ?
    what does the header look like where the functions are declared ?

    /btq :)
  17. this is just a pure guess as I don't know the...

    this is just a pure guess as I don't know the compiler or what linker it uses, but it seems out-dated as old apps are
    often restricted to 256-byte-strings when accessing various
    functions in the...
  18. Thread: Asm + C++

    by btq
    Replies
    17
    Views
    5,380

    ..or go to http://betov.free.fr/SpAsm.html and...

    ..or go to http://betov.free.fr/SpAsm.html and download x86eas.hlp
    which is pretty much the same but alot faster to use imo :)

    /btq
  19. Thread: ASM questions

    by btq
    Replies
    7
    Views
    1,207

    or if one want something lighter but still quite...

    or if one want something lighter but still quite enough to get
    started I suggest MadWizards tutorial . (<---- this l wont move! :) )

    cheers
    /btq :)
  20. Thread: Asm + C++

    by btq
    Replies
    17
    Views
    5,380

    I haven't really seen a tutorial on asm and c++...

    I haven't really seen a tutorial on asm and c++ but I think
    you'll be best of learning pure asm first, workin with registres etc.
    You might wanna consider downloading masm32 an perhaps
    and editor...
  21. Replies
    2
    Views
    914

    you can neglect the .h but the you need to put a...

    you can neglect the .h but the you need to put a 'using namespace std' or a std::-prefix before the functions.

    /btq :)
  22. Thread: Harry Potter

    by btq
    Replies
    49
    Views
    3,999

    Poll: the books are probably some of the best books...

    the books are probably some of the best books written in the genre the last decade. They are not filled with the usual rubbish that
    todays childrens books are.
    Haven't read no5 yet but it's here...
  23. Replies
    1
    Views
    1,070

    the argument to cos isn't in degrees, it's in...

    the argument to cos isn't in degrees, it's in radians
    Convert degrees to radians using:
    radian=degree*(pi/180)

    so



    #define _USE_MATH_DEFINES //to define M_PI
    #include <math>
  24. Replies
    3
    Views
    1,316

    hmm...I recall bein at a friends house doing this...

    hmm...I recall bein at a friends house doing this a year ago or so. I think we made a
    wrapper for it: a windows-application calling CreateProcess
    creating the console window, and using...
  25. Replies
    3
    Views
    826

    thanks for the help but after some experimenting...

    thanks for the help but after some experimenting
    it seems the only way to go is to ditch the nested loops.
    Seems to be the only way to get the effeiciency needed.
    The sad part is that it will...
Results 1 to 25 of 164
Page 1 of 7 1 2 3 4