how to use c function pointer in c#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • semomaniz
    Recognized Expert New Member
    • Oct 2007
    • 210

    #1

    how to use c function pointer in c#

    I am trying to use the function created in c language by importing from a dll file. The function in c is

    Code:
    int  RadiusLookup (Trip trip, const char *city, int radius, Bool cities);
    How can i use this function in c# ? How can i pass pointers in a function? Please help..

    The function is supposed to return a list of cities and zipcodes within the provided radius of the city.

    maniz
    Last edited by semomaniz; Oct 18 '07, 04:53 PM. Reason: more details
  • semomaniz
    Recognized Expert New Member
    • Oct 2007
    • 210

    #2
    never mind i did figure it out. the pointer can be simply passes in as a string and it worked for me.

    Comment

    Working...