Good Day,
I'm currently working on a project with the Google Earth API and one method in the API goes as follows:
ge.OpenKmlFile( "C:/Users/Joey/Documents/C/Google Earth Form/Google Earth Form/bin/Debug/JoeyTest.kml", 1);
As you can see I'm using the complete pathname to get to my .kml test file, but the method won't accept a string as : "/JoeyTest.kml" or "JoeyTest.K ml" or any other synonym for getting a file out of the exact same folder.
Is the parameter for the file name dependend on how the method has been written or is there any way to turn it into a computer independend pathname?
When I try to install my C# Application onto a different computer, the file won't be read unless I change the filename again. This isn't the way I want to approach the users to read a file intro Google Earth.
Any help would be greatly appreciated!
King regards,
Joey =)
I'm currently working on a project with the Google Earth API and one method in the API goes as follows:
ge.OpenKmlFile( "C:/Users/Joey/Documents/C/Google Earth Form/Google Earth Form/bin/Debug/JoeyTest.kml", 1);
As you can see I'm using the complete pathname to get to my .kml test file, but the method won't accept a string as : "/JoeyTest.kml" or "JoeyTest.K ml" or any other synonym for getting a file out of the exact same folder.
Is the parameter for the file name dependend on how the method has been written or is there any way to turn it into a computer independend pathname?
When I try to install my C# Application onto a different computer, the file won't be read unless I change the filename again. This isn't the way I want to approach the users to read a file intro Google Earth.
Any help would be greatly appreciated!
King regards,
Joey =)
Comment