Search:

Type: Posts; User: punkywow

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    7,121

    GetPerformanceInfo

    if i call GetPerformanceInfo
    directly out from the psapi.dll it returns
    error 24, The Programm puts out an Command but the Command length is wrong!

    whats wrong?



    #### Just for...
  2. Replies
    2
    Views
    1,123

    nice thnx

    nice thnx
  3. Replies
    3
    Views
    4,041

    to dedect primes very fast code it can find all...

    to dedect primes very fast code it can find all primes of 1000000 in about 5mins or lower with just one cpu core, may it can help u ...



    int c=0;
    int zr=30; // this is the range for the ...
  4. Replies
    3
    Views
    3,424

    thnx a lot for this nice class

    thnx a lot for this nice class
  5. Replies
    2
    Views
    1,123

    mapped section, struct copy

    can there be a problem if i try to copy data from a mapped buffer:
    IMAGE_DOS_HEADER idh;
    memcpy(&idh,(PVOID)(VirutalAddress+a),sizeof(idh));

    i just know if it filles DWORD's the bits are in the...
  6. Replies
    3
    Views
    3,424

    opegnl LoadBMP or texture 2 sphere

    aynone knows why it does not display the texture on the sphere?




    GLunit TextureArray[6];

    glGenTextures(1, &TextureArray[1]);
    glBindTexture(GL_TEXTURE_2D, TextureArray[1]);...
  7. Replies
    4
    Views
    3,957

    opengl Light rays

    anyone knows a technique to make light rays visible?? or information about it?
  8. Replies
    2
    Views
    1,726

    Open GL and FPS

    is this normal that open gl get low FPS if i render 400 objects at the same time?
    just little spheres with radian 5, blending is on
    i use a DualCore AMD X 2 4800 1GB Ram and 256MB Ram DDR2...
  9. Replies
    3
    Views
    1,465

    bool a; if (a==true){ }else{ } ...

    bool a;
    if (a==true){

    }else{

    }


    for(int x=0;x<5;x++){
  10. Thread: Ramp game

    by punkywow
    Replies
    9
    Views
    3,773

    OPCODE Optimized Collision Detection OPCODE is...

    OPCODE
    Optimized Collision Detection
    OPCODE is a new small collision detection library. It is similar to popular packages such as SOLID or RAPID, but more memory-friendly, and often faster.
    ...
  11. Thread: Ramp game

    by punkywow
    Replies
    9
    Views
    3,773

    u need to use phytagoras and find the cutting...

    u need to use phytagoras and find the cutting point of the circle around the 2 radian of your object.

    i can't find my documents yet for collusion detection to give more detaild informations, i...
  12. Replies
    4
    Views
    2,464

    if u add if(c>2){ //if c is bigger than 2...

    if u add


    if(c>2){ //if c is bigger than 2 we dont need to look at rest of the number it cant be a prime
    break;
    }

    it makes an performance boost, its good if u calculate primes from high...
  13. Thread: CPU Question

    by punkywow
    Replies
    17
    Views
    2,439

    @sipher, maybe this can help u OpenGl - Tutorial...

    @sipher, maybe this can help u
    OpenGl - Tutorial 27 : Object Selection
  14. Replies
    16
    Views
    2,289

    why u dont convert the int to char a do a pointer...

    why u dont convert the int to char a do a pointer on the char than read it out byte for byte?
  15. Replies
    6
    Views
    1,550

    if u wanna know more about random number...

    if u wanna know more about random number generation read this:
    Mersenne Twister Random Number Generator
  16. Replies
    4
    Views
    2,464

    int c=0; int zr=30; // this is the range for the...

    int c=0;
    int zr=30; // this is the range for the primenumber search
    for(int i=zr;i>0;i--)
    {
    c=0; // reset counter for the new number
    for(int z=1;z<=zr;z++){
    if(i%z==0){ // lets look...
  17. Replies
    7
    Views
    34,467

    how to caluculate the startaddress of the struct?...

    how to caluculate the startaddress of the struct?
    ist it the BaseAdress of the proccess + the pointer address to the struct?
    and if yes, are the values of the struct something like this?

    ...
  18. Thread: CPU Question

    by punkywow
    Replies
    17
    Views
    2,439

    if there is nothing more to calculate or more...

    if there is nothing more to calculate or more code to process in your binary how should your cpu use more register to do this job?
  19. Replies
    7
    Views
    34,467

    yeah its true the function can't be found,i...

    yeah its true the function can't be found,i didn't managed this function with getlasterror before , it terminates with error 127 cant find function .
    even its a struct and no function ?

    anyway...
  20. Replies
    7
    Views
    34,467

    it does not depend on the memset it also crashs...

    it does not depend on the memset it also crashs if i only do

    CreatedWindows->LastIndex

    the thing is if i declare the struct in dll and exe without export
    it cant be used in the exe , surely...
  21. Replies
    7
    Views
    34,467

    dllexport of a structure

    is it possible to export a structure from the dll?
    for example, in the DLL:

    extern "C"
    {
    typedef struct __declspec(dllexport) __stdcall CreatedWindows {
    HWND windowhandle[50];
    BOOL...
  22. Replies
    4
    Views
    3,947

    button = CreateWindowEx(0, ...

    button = CreateWindowEx(0,
    "button",
    "MessageBox",
    WS_VISIBLE | WS_CHILD | BS_PUSHBUTTON,
    you define here the classsname...
  23. Replies
    4
    Views
    3,947

    you dont define a window class at the 2nd and...

    you dont define a window class at the 2nd and third window except u define for each button a new class!
  24. FIXED i GOT it

    void LVaddItem(PUCHAR pszText,HWND ListView,BOOL subitem){
    LV_ITEM lvI;
    // Initialize LVITEM members that are common to all items.




    lvI.mask = LVIF_TEXT|LVIF_PARAM | LVIF_IMAGE |...
  25. LVM_INSERTITEM I cannot make head or tail of it.

    hello all,

    is there another way to insert ListView Subitems exept over the WndProc


    btw i list some code of mine:


    ///////////////////////
    ///// ListView Insertitem
Results 1 to 25 of 37
Page 1 of 2 1 2