Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

anbluemoon

@anbluemoon
About
Posts
8
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Strange problem with pointers
    A anbluemoon

    Here is data structures: typedef unsigned char uint8; class MD2Mesh { struct Vertex { uint8 coord[3], normalIdx; }; struct Frame { float translation[3], rotation[3]; char name[16]; Mesh::Vertex* vertices; }; }; At first I tried to do something like : MD2Mesh::Frame* md2Frame = (MD2Mesh::Frame*)buffer to get the values from the buffer without initializing the pointer and I managed to get the values of translation, rotation and name but the vertices address didn't point to the "buffer + 40(size of translation + rotation + name)" so i just pass the the address of vtx which is buffer + 40

    C / C++ / MFC help question

  • Strange problem with pointers
    A anbluemoon

    I wrote something like this : MD2Mesh::Frame* md2Frame = (MD2Mesh::Frame*)buffer; uint8* tmp = buffer + 40; MD2Mesh::Vertex* vtx = (MD2Mesh::Vertex*)tmp; md2Frame->vertices = vtx; The value of "vtx" is changed after the line "mdFrame->vertices = vtx" U can look at the following debugging table:

    vtx

    0x00434140 {v=0x00434140 "ÐBÄ" normIdx=0 }

    origin::MD2Mesh::Vertex *

    after line "mdFrame->vertices = vtx" it becomes like this :

    vtx

    0x00434140 {v=0x00434140 "@AC" normIdx=0 }

    origin::MD2Mesh::Vertex *

    md2Frame->vertices

    0x00434140 {v=0x00434140 "@AC" normIdx=0 }

    origin::MD2Mesh::Vertex *

    Do u have any ideas ?

    C / C++ / MFC help question

  • Need help with member function pointer
    A anbluemoon

    But i did have a private static instance of Test class , and i use that to call the function pointer

    C / C++ / MFC help

  • Need help with member function pointer
    A anbluemoon

    I define a class like this : class Test { private: static Test* instance; private: typedef void (Test::*SayHello)(char*); SayHello sayHello; void Say(char* name) { cout<< "Hello " <<name; } static void test() { instance->*sayHello("hello"); // this where i got the error notification } public: Test() { sayHello = &Test::Say; } ~Test() { } static Test* getInstance() { if(instance == NULL) instance = new Test(); return instance; } }; When compiling i receive some error messages : error C2597: illegal reference to non-static member 'Test::sayHello' error C3867: 'Test::sayHello': function call missing argument list; use '&Test::sayHello' to create a pointer to member error C2568: '->*' : unable to resolve function overload If you have any ideas plz tell me Thanks in advance

    C / C++ / MFC help

  • How can i get special folder icon ?
    A anbluemoon

    Can anyone tell me how to get special folder icon (eg . My Computer , Network place,My Picture...) ?

    Java question sysadmin tutorial

  • How to open file using it defualt program using C# ?
    A anbluemoon

    Can anyone tell me how to open any file using its default program ?

    C#

  • plz, help me with Window Media SDK
    A anbluemoon

    i create a MFC(Dialog Based) project and insert the WMP ActiveX control in it , now i want to change the skin of WMP AciveX control , but i don't know how to do that , can anybody help me ? (the sample in the SDK using ATL/COM)

    C / C++ / MFC c++ com help tutorial question

  • help with fstream
    A anbluemoon

    can anybody tell me how to read hex number in IDX file (foxpro) by using fstream::read ?

    C / C++ / MFC help tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups