<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hey, Brent! I figured it out! That's because I didn't give the manifest
tool proper arguments. It should be someting like:<br>
<br>
/nologo <b>/tlb:"D:\WebKit-r41121\Output\lib\WebKit.tlb"</b> <b>/dll:"WebKit"</b>
/out:"..\Output\obj\MiniBrowser\Debug\MiniBrowser_debug.exe.embed.manifest"
/notify_update<br>
<br>
It can be set from within IDE: Project Property Pages -&gt;
Configuration Properties -&gt; Manifest Tool -&gt; Isolated COM<br>
Set the Type library File to $(WebKitOutputDir)\lib\WebKit.tlb and
Component File Name to WebKit$(WebKitDLLConfigSuffix). According to
MSDN, these can make an exe use a specified COM server.<br>
<br>
Then recompile. That's OK!<br>
<br>
<br>
-------- 原始信息 --------<br>
主题: Re: [webkit-dev] VS2005 debugger complains that webkit.pdb does not
match with webkit.dll<br>
发件人: 张雷 <a class="moz-txt-link-rfc2396E" href="mailto:zhang.lei@kortide.com.cn">&lt;zhang.lei@kortide.com.cn&gt;</a><br>
收件人: Brent Fulgham <a class="moz-txt-link-rfc2396E" href="mailto:bfulgham@gmail.com">&lt;bfulgham@gmail.com&gt;</a><br>
抄送: WebKit Development <a class="moz-txt-link-rfc2396E" href="mailto:webkit-dev@lists.webkit.org">&lt;webkit-dev@lists.webkit.org&gt;</a><br>
日期: 2009-6-20 13:03<br>
<blockquote cite="mid:4A3C6DBD.70606@kortide.com.cn" type="cite">Thanks
Brent. But I searched my webkit source for WebKitCreateInstance and
found nothing. My source is r41121 Nightly Build. Is
WebKitCreateInstance unavailable in r41121?
  <br>
  <br>
-------- 原始信息 --------
  <br>
主题: Re: [webkit-dev] VS2005 debugger complains that webkit.pdb does not
match with webkit.dll
  <br>
发件人: Brent Fulgham <a class="moz-txt-link-rfc2396E" href="mailto:bfulgham@gmail.com">&lt;bfulgham@gmail.com&gt;</a>
  <br>
收件人: 张雷 <a class="moz-txt-link-rfc2396E" href="mailto:zhang.lei@kortide.com.cn">&lt;zhang.lei@kortide.com.cn&gt;</a>
  <br>
抄送: WebKit Development <a class="moz-txt-link-rfc2396E" href="mailto:webkit-dev@lists.webkit.org">&lt;webkit-dev@lists.webkit.org&gt;</a>
  <br>
日期: 2009-6-20 12:18
  <br>
  <blockquote type="cite">Hi,
    <br>
    <br>
I would suggest that you avoid using the CoCreateInstance mechanism for
instantiation of the WebKit types, and instead use the new
    <br>
    <br>
    <br>
1.  Include the header "&lt;WebKit/WebKitCOMAPI.h&gt;"
    <br>
2.  Link against the WebKitGUID.lib and WebKit.lib
    <br>
3.  Create your object like so:
    <br>
    <br>
HRESULT hr = WebKitCreateInstance(CLSID_WebView, 0, IID_IWebView,
(void**)&amp;gWebView);
    <br>
    <br>
The advantages are:
    <br>
    <br>
1.  No need to manipulate "Internal COM" or other manifest stuff.
    <br>
2.  No more errors that COM can't find your WebKit objects.
    <br>
3.  Your application will not get confused about Safari's DLL's and
your own DLL's (assuming you put your WebKit.dll in the same path with
your application.)
    <br>
    <br>
Good luck!
    <br>
    <br>
-Brent
    <br>
    <br>
    <br>
    <br>
On Jun 19, 2009, at 8:47 PM, 张雷 wrote:
    <br>
    <br>
    <blockquote type="cite">Sorry, I didn't notice that the webkit.dll
was not the one I built but the one under Safari install dir. What's
more, I missed to make it clear that I writes a minibrowser of my own,
not the WinLauncher demo. And I find that
      <br>
      <br>
CoCreateInstance(CLSID_WebView, 0, CLSCTX_ALL, IID_IWebView,
(void**)&amp;m_webView);
      <br>
      <br>
always locates the webkit.dll under Safary install dir rather than the
one I compiled no matter what path env I set. If I rename the one under
Safari dir, then CoCreateInstance(CLSID_WebView, ...) fails!
      <br>
      <br>
Do I need to register my webkit.dll as a COM server every time I launch
my minibrowser for debug? However, I also want my Safari working
without effects. So, any suggestions?
      <br>
      <br>
-------- 原始信息 --------
      <br>
主题: [webkit-dev] VS2005 debugger complains that webkit.pdb does not  
match with webkit.dll
      <br>
发件人: 张雷 <a class="moz-txt-link-rfc2396E" href="mailto:zhang.lei@kortide.com.cn">&lt;zhang.lei@kortide.com.cn&gt;</a>
      <br>
收件人: WebKit Development <a class="moz-txt-link-rfc2396E" href="mailto:webkit-dev@lists.webkit.org">&lt;webkit-dev@lists.webkit.org&gt;</a>
      <br>
日期: 2009-6-20 10:45
      <br>
      <blockquote type="cite">Hey, dear friends. I succeeded building
WebKit from within VS2005 IDE with your helps. But I encountered
another problem: when I was debugging with webkit.dll, no symbols for
that dll was loaded and the debugger complained that no proper PDB
found for webkit.dll, though webkit.pdb was placed exactly in the same
folder with webkit.dll. I tried manually specifying the webkit.pdb file
for the webkt.dll. But the compiler refused the pdb file for mismatch.
        <br>
        <br>
My platform and compliler tools are:
        <br>
WinXP with sp3
        <br>
Visual Studio 2005 Professional with sp1
        <br>
        <br>
I followed exactyly what the building instructions says and set
WEBKITOUTPUTDIR and WEBKITLIBRARIESDIR and did no change to any build
script.
        <br>
        <br>
Did you ever enconter this problem before and how did you fix it? Many
thanks for any help :)
        <br>
        <br>
        <br>
        <br>
_______________________________________________
        <br>
webkit-dev mailing list
        <br>
<a class="moz-txt-link-abbreviated" href="mailto:webkit-dev@lists.webkit.org">webkit-dev@lists.webkit.org</a>
        <br>
<a class="moz-txt-link-freetext" href="http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev">http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev</a>
        <br>
        <br>
      </blockquote>
      <br>
_______________________________________________
      <br>
webkit-dev mailing list
      <br>
<a class="moz-txt-link-abbreviated" href="mailto:webkit-dev@lists.webkit.org">webkit-dev@lists.webkit.org</a>
      <br>
<a class="moz-txt-link-freetext" href="http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev">http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev</a>
      <br>
    </blockquote>
    <br>
    <br>
  </blockquote>
  <br>
_______________________________________________
  <br>
webkit-dev mailing list
  <br>
<a class="moz-txt-link-abbreviated" href="mailto:webkit-dev@lists.webkit.org">webkit-dev@lists.webkit.org</a>
  <br>
<a class="moz-txt-link-freetext" href="http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev">http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev</a>
  <br>
</blockquote>
<br>
</body>
</html>