Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Using functions in a namespace from a DLL?

Here is what the class looks like from the DLL when browse it :
[Image: vhtfEJX.png]

This is what the documentation shows from where I got the DLL from:
[Image: 3jhSlXG.png]

How do you use this? I tried doing something like :

Code
Imports Gds.GoogleMap.UltimatePlus.Math
Dim MeService As MathService
Dim locate As Point
locate = svc.ConvertLatLngToPoint(New LatLng(e.Location.Lat, e.Location.Lng))

This keeps giving me an error saying that MeService is used before it's been assigned. I don't think its even supposed to be assigned anything?
Help a noob out?
"this keeps giving me an error saying that MeService is used before it's been assigned"

You need to declare properly.
Dim MeService As new MathService
(Jan 25, 2019 02:51 PM)NYANxCAT Wrote:  "this keeps giving me an error saying that MeService is used before it's been assigned"

You need to declare properly.
Dim MeService As new MathService

I already tried that, the error for that is: Overload resolution failed because no 'New' is accessible.

Code
Dim MeService As New MathService
Dim locate As Point
locate = svc.ConvertLatLngToPoint(New LatLng(e.Location.Lat, e.Location.Lng))


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by SigmaApr 22, 2021 04:37 AM 2 120 Apr 22, 2021 04:37 AM
Last Post: caw
[C] by SugawaraFeb 2, 2020 10:39 AM 8 297 Feb 2, 2020 10:39 AM
Last Post: m1n0r1tyrep0rt
[C] by SecurifierJan 17, 2020 07:20 AM 12 410 Jan 17, 2020 07:20 AM
Last Post: SIM-3602340