CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 10 of 10

Threaded View

  1. #1
    Join Date
    May 2009
    Posts
    140

    Post function returning written address

    hi i have problem with that

    Code:
    
    void* FindVersion(void)
    {
    
    	return (void*)(DWORD*)0x01EA2B00;
    }
    
    
    
    struct cl_funcs_s	ofuncs;
    cl_funcs_s *pfuncs	= (cl_funcs_s*) FindVersion();
    it doesn't return address right, so it crash application

    if i just make
    Code:
    struct cl_funcs_s	ofuncs;
    cl_funcs_s *pfuncs	= (cl_funcs_s*) 0x01EA2B00;
    so it is all ok, but i need function there
    Last edited by Owyn; May 18th, 2009 at 04:08 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured