Thanks,
Jeremy
For anyone else trying this, I did run into a problem making it work.
I created my .manifest file and it had zero effect. After pulling my
hair out for a while I read a blog post that stated Windows caches the
.manifest file and the time it looked for a manifest file. The first
time I ran my .exe file it contained no manifest file and Windows
remembered that. It was ignoring my file. I recompiled my application
and viola, the manifest file worked. Windows saw that it was a new
executable since the last time it looked for a manifest so it searched
for and found my exename.exe.manifest file.
2011/5/14 AllenDang <alle...@gmail.com>:
cd src && ./all.bash
some time into the compile process I begin getting GP faults on 8l :-(
Reverting the change the above command compiles Go w/no issue. The
linker does build fine, but later use of it seems to be causing the
issue. Does a complete rebuild of Go work for you with the new linker?
Jeremy
2011/5/15 Wei guangjing <vcc...@gmail.com>:
Is the going to become part of core? It doesn't seem like that complex
of an addition and essential if Go wishes to be a first class citizen
on Windows.
It's there now. hg pull; hg update default
1. Create a RC file
2. Create a Manifest file
3. Compile your RC file
4. Link your compiled RC file with your application
For 1 & 2, please see https://github.com/jcowgar/go-iup ... Look in
the demos directory for demo.rc and demo.manifest.
For 3 & 4:
$ windres -o demo-rc.o demo.rc
$ 8g demo.go
$ gopack grc _go_.8 demo.8 demo-rc.o
$ 8l -o demo.exe _go_.8
Jeremy
2011/5/25 AllenDang <alle...@gmail.com>:
I don't think there is a way to take a manifest file and directly
place it into the executable, but I could be wrong. Is there a problem
with compiling it to a resource and linking it in?
As for the sample manifest file, it is located on github.com, please
see https://github.com/jcowgar/go-iup and look under demos for
demo.manifest. Also see the related demo.rc file.
Jeremy Cowgar
On Thu, May 26, 2011 at 10:47 AM, Dang Allen <alle...@gmail.com> wrote:
> Hi, Jeremy
>
> Thanks for your reply! But what I want to know is "how to embed the
> manifest file into exe?". I think I have to add a line like "123
> RCDATA c:\...\my.exe.manifest" into RC file, and compile.
>
> But I cannot do this right after explorer related articles in MSDN.
> Can you send me your manifest and RC file for reference?