views:

68

answers:

1

More specifically, I'm wanting to compile the XML required by Microsoft to create a GDF.dll file, in order to add a game to the Games Explorer in Windows 7. I found this KB article that explains how to programmatically compile source into a DLL or EXE, but I'm unsure how to properly compile a DLL that contains XML.

A: 

I've never created or embedded GDF files before but after a quick search on msdn I believe you will need to do the following:

  1. Use the Game Definition File Editor to create the GDF file and associated resource compiler scripts* (.rc files)
  2. Compile the script with RC
  3. Use the CompilerParameters.Win32Resource property to embed the .res file generated in step 2

*I'm making the assumption here that the Game Definition File Editor creates .rc files. If the tool creates .resx files convert them to .resource files using the resgen tool and embed them using the CompilerParameters.EmbeddedResources property.

Brad
The thing is, I'm writing an application in which I'd like to be able to generate/compile these GDF files on the fly, rather than having to use a separate application (which would kind of negate a big part of the purpose I'm writing this application)
shifuimam