views:

8

answers:

0

I have to use one API with params like

XYS(LPWSTR UrlOfXmlFile);

This API is exposed from a third party COM dll.

Now I want to call this api with a url of xml file .This works fine when user is online. But if user if offline then I want to embed xml file as resource in VC++ with some values and want to pass this xml file as url to this api.

Is this possible to do this, using resource xml file as url?

Other workaround is that I can use this xml file as resource and if user is offline then I can dump this file on user hard drive and then use the url to that location in that api.

eg url can be "file:///c:/tst.xml"