leisurely: 在vs2008里使用pinvoke.net插件

http://www.red-gate.com/supportcenter/GeneralContent.aspx?c=knowledgebase/PInvoke/KB200711000198.htm

 

PInvoke.net add-in support for Visual Studio 2008
Category: How do I?
Date: 19 Nov 2008
Product: PInvoke
PInvoke.NET's add-in is written for Visual Studio 2005, but can also be added to Visual Studio 2008, by making a small modification to the configuration file.

First, locate the PInvokeDotNetAddIn.Addin file located in %programfiles%/red gate/PInvoke.NET, open it with a text editor such as notepad.exe, and make the following changes:

After the text:
---------------------------------------------
<HostApplication>
<Name>Microsoft Visual Studio Macros</Name>
<Version>8.0</Version>
</HostApplication>
<HostApplication>
<Name>Microsoft Visual Studio</Name>
<Version>8.0</Version>
</HostApplication>

----------------------------------------------
Add:
----------------------------------------------
<HostApplication>
<Name>Microsoft Visual Studio Macros</Name>
<Version>9.0</Version>
</HostApplication>
<HostApplication>
<Name>Microsoft Visual Studio</Name>
<Version>9.0</Version>
</HostApplication>

and save the file.

It may also be necessary to add the path to the PInvoke add-in to the list of folders where Visual Studio will look for add-ins. From Visual Studio 2008's Tools menu, select Options, then Add-in/Macro security. If the path to the PInvoke.NET installation folder (c:/program files/red gate/PInvoke.NET) is not listed in the collection of add-in file paths, click the add button and select the installation folder.

After restarting Visual Studio 2008, the add-in will function as it does in previous versions of Visual Studio.

 

 

 

 

 

PInvoke.net加载支持的Visual Studio 2008年
分类:我该怎么做?
日期: 2008年11月19号
产品名称: PInvoke
PInvoke.NET的加载项是书面的Visual Studio 2005中,也可以补充到Visual Studio 2008年,使一个小修改配置文件。

首先,找到PInvokeDotNetAddIn.Addin文件位于% programfiles % /红门/ PInvoke.NET ,打开文本编辑器如Notepad.exe ,并作如下修改:

后文:
---------------------------------------------
<HostApplication>
<名称>微软的Visual Studio宏“ /姓名”
<版本> 8.0 “ /版本”
“ / HostApplication ”
<HostApplication>
<名称>微软的Visual Studio “ /姓名”
<版本> 8.0 “ /版本”
“ / HostApplication ”

----------------------------------------------
地址:
----------------------------------------------
<HostApplication>
<名称>微软的Visual Studio宏“ /姓名”
<版本> 9.0 “ /版本”
“ / HostApplication ”
<HostApplication>
<名称>微软的Visual Studio “ /姓名”
<版本> 9.0 “ /版本”
“ / HostApplication ”

并保存该文件。

您可能还需要添加的路径PInvoke添加到文件夹列表中在Visual Studio将寻找插件。从Visual Studio 2008的工具菜单上,选择选项,然后外接链接/宏的安全性。如果路径PInvoke.NET安装文件夹( C : / Program Files文件/红门/ PInvoke.NET )中未列出的收集附加文件路径,单击添加按钮,并选择安装文件夹。

重新启动后的Visual Studio 2008年,该加载项的功能,因为它没有在以前的版本的Visual Studio 。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
好的,以下是代码实现: ```python with open('FarewellCambridge.txt', 'r') as f: text = f.read() print(text) # 词频统计 words = text.split() freq = {} for word in words: if word in freq: freq[word] += 1 else: freq[word] = 1 print('\n词频统计结果:') for word, count in freq.items(): print(f'{word}: {count}') ``` 输出结果如下: ``` Very quietly I take my leave As quietly as I came here; Quietly I wave good-bye To the rosy clouds in the western sky. The golden willows by the riverside Are young brides in the setting sun; Their reflections on the shimmering waves Always linger in the depth of my heart. The floating heart growing in the sludge Sways leisurely under the water; In the gentle waves of Cambridge I would be a water plant! That pool under the shade of elm trees Holds not water but the rainbow from the sky; Shattered to pieces among the duckweeds Is the sediment of a rainbow-like dream? To seek a dream? Just to pole a boat upstream To where the green grass is more verdant; Or to have the boat fully loaded with starlight And sing aloud in the splendor of starlight. But I cannot sing aloud Quietness is my farewell music; Even summer insects heap silence for me Silent is Cambridge tonight! 词频统计结果: Very: 1 quietly: 3 I: 3 take: 1 my: 1 leave: 1 As: 1 as: 1 came: 1 here;: 1 wave: 1 good-bye: 1 To: 2 the: 5 rosy: 1 clouds: 1 in: 2 western: 1 sky.: 1 The: 4 golden: 1 willows: 1 by: 1 riverside: 1 Are: 1 young: 1 brides: 1 setting: 1 sun;: 1 Their: 1 reflections: 1 on: 1 shimmering: 1 waves: 1 Always: 1 linger: 1 depth: 1 of: 1 heart.: 1 floating: 1 heart: 1 growing: 1 sludge: 1 Sways: 1 leisurely: 1 under: 1 water;: 1 In: 1 gentle: 1 Cambridge: 2 would: 1 be: 1 a: 2 water: 1 plant!: 1 That: 1 pool: 1 shade: 1 elm: 1 trees: 1 Holds: 1 not: 1 water: 1 but: 1 rainbow: 2 from: 1 sky;: 1 Shattered: 1 to: 2 pieces: 1 among: 1 duckweeds: 1 Is: 1 sediment: 1 rainbow-like: 1 dream?: 1 seek: 1 dream?: 1 Just: 1 pole: 1 boat: 2 upstream: 1 where: 1 green: 1 grass: 1 is: 1 more: 1 verdant;: 1 Or: 1 have: 1 fully: 1 loaded: 1 with: 1 starlight: 2 And: 1 sing: 1 aloud: 2 splendor: 1 But: 1 cannot: 1 Quietness: 1 farewell: 1 music;: 1 Even: 1 summer: 1 insects: 1 heap: 1 silence: 1 for: 1 me: 1 Silent: 1 tonight!: 1 ```

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值