Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. How to assign a static function to a funtion pointer in C++
Forum Updated to NodeBB v4.3 + New Features

How to assign a static function to a funtion pointer in C++

Scheduled Pinned Locked Moved 3rd Party Software
2 Posts 2 Posters 2.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vasavi
    wrote on 2 Feb 2012, 15:55 last edited by
    #1

    Hi all,

    I use gsoap library in the application.
    My application is developed in C++ and it works fine with gsoap C++ library.

    Now i built the same stdsoap2.c as a gsoap C library.

    I assign static functions( which are not a part of my class) to
    soap->frecv and soap->fsend.
    And i observed that in stdsoap2.c the pointers are reversed.

    frecv in SoapJob::run == 0x807a448 //When assigned
    fsend in SoapJob::run== 0x807a4e8

    soap->frecv in gsoapC lib == 0x807a4e8 // On invokation.

    So, instead of invoking frecv, fsend is invoked.
    But when i test with gsoap C++ library,pointers are intact.

    It will be of great help if you can let me know how to fix this issue.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      luisvaldes88
      wrote on 7 Feb 2012, 13:05 last edited by
      #2

      Hi.

      I am not experienced with gsoap, but I would like to learn something with this.

      Can you provide a simple example ?

      so I wil be able to reproduce your problem ?

      It looks interesting

      best regards.

      Muchos quieren, pocos pueden, algunos consiguen.

      1 Reply Last reply
      0

      1/2

      2 Feb 2012, 15:55

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved