cannot find Dll EntryPoint!

JerryLia
JerryLia Global Mapper User
edited September 2007 in Technical Support
hello everyone,
When I use the function "GM_GetAreaFeatureClassDrawStyle" to obtain a layer's default style,an error occured which could not find dll entrypoint.My function declare is such as :

[DllImport(DLLFileName, EntryPoint = "GM_GetAreaFeatureClassDrawStyle ")]
public static extern GM_Error_t32 GM_GetAreaFeatureClassDrawStyle(UInt16 aFeatureClass,out GM_AreaStyle_t aAreaStyle);

HELP ME,please.
:confused:

Comments

  • global_mapper
    global_mapper Administrator
    edited September 2007
    It looks like you have an extra space after the entry point name in your declaration. Try removing that and see if it works better.

    Let me know if I can be of further assistance.

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com
  • JerryLia
    JerryLia Global Mapper User
    edited September 2007
    YES!
    I am so Careless!
    Thanks a lot.:p