CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: glsl09

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Thread: Qt mouseEvent

    by glsl09
    Replies
    0
    Views
    1,024

    Qt mouseEvent

    hi. i know this is only for C++. only i want idea from you. i am devoloping simple cad program. there is some shape in QGLWdiget that is to be transleted. my algorithm firstly ask the user to pick...
  2. Replies
    10
    Views
    1,695

    Re: Passings Array by Refernce

    pointer version is just array name. for example to pass grades array function





    type func(int* array, ......)
    {
    ......................
    }
  3. Replies
    9
    Views
    7,994

    Re: Simple OBJ loader for freeglut?

    did you try using Assimp library. it loads obj and also lots of 3D formats.
  4. Replies
    12
    Views
    1,294

    Re: Construction issue

    problem arises from default parameter of loadNode() function. j is always 0. i removed default j variable and made it as static int j =0 begining of the function. problem is now solved. also i...
  5. Replies
    12
    Views
    1,294

    Re: Construction issue

    problem arises from default parameter of loadNode() function. j is always 0. i removed default j variable and made it as static int j =0 begining of the function. problem is now solved. also i...
  6. Replies
    12
    Views
    1,294

    Re: Construction issue

    i use Assimp library to load my model. yes you are right my matrix class is not too safe.
    only i want to control if i fill each mesh's member correctly or not.


    #include "ModelLoader.h"...
  7. Replies
    12
    Views
    1,294

    Re: Construction issue

    thank you all for replys. i changed class declaration and definiton the way you said.

    /////// Matrix4x4.h


    ifndef matrix4x4
    #define matrix4x4

    class Vector2D;
    class Vector3D;
  8. Replies
    12
    Views
    1,294

    Re: Construction issue

    i write construction for Mesh structure. only first object of Mesh structure is valid. rest have problem why
  9. Replies
    12
    Views
    1,294

    Construction issue

    ModelLoader.h


    //..................................
    struct Mesh
    {
    unsigned int* indices;
    float* vertices;
    Matrix4x4 matrix;
    unsigned int numVertex;
  10. Replies
    3
    Views
    3,462

    Re: C2236: unexpected 'class'

    i read article says if there is 2 class like

    //A.h
    class A

    and

    //B.h
    class B
  11. Replies
    3
    Views
    3,462

    Re: C2236: unexpected 'class'

    i fixed the problem. i forget putting semicolon end of the Matrix3x3 class. now code is working thanks have a nice evening
  12. Replies
    3
    Views
    3,462

    C2236: unexpected 'class'

    i have one header file Matrix4x4.h . it includes another header files. when i compile the code. it gives error "C2236: unexpected 'class' 'Matrix3x3'. Did you forget a ';'? " where i made mistake....
  13. Replies
    4
    Views
    514

    Re: a problem from a novice

    initialize temp in get_sequence() with any number. in while( temp != val) val here represents any control number. for example it may be 0. when you assign 0 to temp in
    while(temp != val){
    ...
  14. Re: error C2039: 'iterator_category' : is not a member of

    thanks laserlight for helping. i will put all friends function and Vector3D class into namespace Vector. then include Vector3D.h in main.cpp like below

    //main.cpp


    #include <iostream>...
  15. Re: error C2039: 'iterator_category' : is not a member of

    thanks laserlight your reply. if i put Vector3D class into Vector namespace. when i want to use Vector::distance() function in main.cpp. this makes problem mixed up std::distance() ?

    // main.cpp
    ...
  16. Re: error C2039: 'iterator_category' : is not a member of

    yes you are right. Vector3D::distance() is mixed up with std::distance(). thanks for helping.

    i decided to put friend functions (dot,crossProduct... functions making common calculations) into...
  17. error C2039: 'iterator_category' : is not a member of

    when i compiled the program i get error below show. you could help me where i made error



    c:\program files\microsoft visual studio 8\vc\include\xutility(610) : error C2039: 'iterator_category'...
  18. Replies
    12
    Views
    1,700

    Re: return a value to a void function

    no differnce between them. c++ programers prefer the last one to first one because of using reference is more sense. below shows difference


    int & ret = i;
    ret = 5;


    is equal to
  19. Replies
    1
    Views
    879

    Re: Texture & Bumpmap Image

    you store color information in your normal texture RGBA channel. but in bump mapping texture you store normal vector for each fragment.
  20. Re: 0xC0000005: Access violation reading location 0x00000010

    thanks you for reply. i think that error arises from Assimp library,loading 3d models.



    /////////////////////////////////////////////
    //// DefaultLogger.cpp ...
  21. Re: 0xC0000005: Access violation reading location 0x00000010

    only warning at debugin mode
    warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library

    i ignore this library (msvcrtd.lib). this time there is no error...
  22. 0xC0000005: Access violation reading location 0x00000010

    when i compile program i dont get any error but when program starts up it gives this error. 0xC0000005: Access violation reading location 0x00000010
    my code seems no problem. no it...
  23. Re: 0xC0000005: Access violation reading location 0xfeeefeee

    thank you very much VictorN. Assimp::Importer importer object keeps ownership of the data and destroys it upon destruction the way you said thanks again VictorN. hava a nice day
  24. Re: 0xC0000005: Access violation reading location 0xfeeefeee

    when the code gets error at start up. visual studio show error place in Model:: draw() in Model.cpp.
    why i need local importer object after returnnig const aiScene* . i keep returned const aiScene*...
  25. Re: 0xC0000005: Access violation reading location 0xfeeefeee

    thank you for replay. i didnt complote code because of it is bit long. i use Assimp library that loads3ds model. ReadFile is not win api. definition of ReadFile
    const aiScene* ...
Results 1 to 25 of 28
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured