问题列表 - 第10702页

Win32 API枚举DLL导出函数?

我发现了类似的问题,但没有回答我正在寻找的东西.所以这里:

对于本机Win32 DLL,是否有一个Win32 API来枚举其导出函数名称?

c++ windows dll winapi

36
推荐指数
3
解决办法
2万
查看次数

Easiest way to develop/debug a Windows service

I'm developing a Windows Service in VB.NET 2008, but I feel like I'm going to have an aneurysm. To debug the service, I've added a 15 second wait to the initialization code, which gives me time to start the service and attach the .NET debugger before anything happens, so I can hit breakpoints and such. I really miss "integrated" debugging with this type of workaround, and testing seems to be a huge pain.

What's the best way to do "regular" …

.net vb.net debugging windows-services

4
推荐指数
4
解决办法
2万
查看次数

Validation for URL/Domain using Regex? (Rails)

I am trying to create a validation that checks to make sure a domain/url is valid for example "test.com"

def valid_domain_name?
  domain_name = domain.split(".")
  name = /(?:[A-Z0-9\-])+/.match(domain_name[0]).nil?
  tld = /(?:[A-Z]{2}|aero|ag|asia|at|be|biz|ca|cc|cn|com|de|edu|eu|fm|gov|gs|jobs|jp|in|info|me|mil|mobi|museum|ms|name|net|nu|nz|org|tc|tw|tv|uk|us|vg|ws)/.match(domain_name[1]).nil?
  if name == false or tld == false
    errors.add(:domain_name, 'Invalid domain name. Please only use names with letters (A-Z) and numbers (0-9).')
  end
end
Run Code Online (Sandbox Code Playgroud)

This is what I have so far but it doesn't work. It lets bad URLs through without failing.

I don't know regex very well.

regex ruby-on-rails

27
推荐指数
5
解决办法
5万
查看次数

Measuring iPhone application load time

I am in the process of optimizing an iPhone app for very short load time and am wondering:

Is there a means of measuring the load time of an iPhone app from the time the user taps the icon to the time that the app is usable (or at least –viewDidLoad gets called)?

Ideally this would work in the device and simulator, but if someone has found a way to measure this time exclusively in the simulator that would at …

iphone optimization

6
推荐指数
1
解决办法
2066
查看次数

How do I convert a LPWSTR to a GUID?

I'm working with the Windows 7 audio APIs, and I've hit a wall.

Basically, I need to take an IAudioSessionControl2* and get an ISimpleAudioVolume* out of it.

Now, it looks like I can call on IAudioSessionManager->GetSimpleAudioVolume() using the value of IAudioSessionControl2->GetSessionInstanceIdentifier(...). Note that this isn't exactly spelled out as such in the docs, but it seems like a reasonable behavior.

The problem, GetSimpleAudioVolume() takes a GUID* and GetSessionInstanceIdentifier() spits out a LPWSTR. Through debugging I've …

c++ string guid windows-7

4
推荐指数
1
解决办法
1万
查看次数

Split String into Array in Flex

I am getting the output as 0,1,2,3. I need this to be split into array

apache-flex actionscript

7
推荐指数
1
解决办法
3万
查看次数

如何在Python中获得完整的AST?

我喜欢_ast模块提供的选项,它非常强大.有没有办法从中获取完整的AST?

例如,如果我得到以下代码的AST:

import os
os.listdir(".")
Run Code Online (Sandbox Code Playgroud)

通过使用 :

ast = compile(source_string,"<string>","exec",_ast.PyCF_ONLY_AST)
Run Code Online (Sandbox Code Playgroud)

ast对象的主体将有两个元素,一个导入对象和一个expr对象.但是,我想更进一步,获得导入listdir的AST,换句话说,我想让_ast下降到可能的最低级别.

我认为这种事情应该是可行的,这是合乎逻辑的.问题是如何

编辑:在可能的最低级别,我并不意味着访问什么是"可见的".我想获得用于实现listdir的AST :比如可以为它执行的stat和其他函数调用.

python abstract-syntax-tree

5
推荐指数
2
解决办法
2902
查看次数

与iPhone相比,iPod Touch是iPhone应用程序的开发平台

基本上我想知道iPhone和iPod Touch的兼容性.我想知道我是否可以购买iPod Touch(从而节省一些现金)并在其上开发iPhone应用程序,或者我是否真的应该花费额外的钱并忍受AT&T并获得iPhone.

这两个设备之间究竟有什么不同(除了iPod Touch中缺少的手机部分).

有人做过这个吗?或者我是否因为思考而疯狂?

编辑

我在文中更正了对iPod Touch的引用,以便@ person-b不会扼杀我..

此外,我想确保我指出我在iPod Touch上开发iPhone应用程序可行性真的很有趣.

iphone cocoa-touch ipod ipod-touch

16
推荐指数
2
解决办法
7298
查看次数

在ASP.NET Repeater Control中将Container.Eval传递给(Html.ReaderPartial)

我试图将Eval传递给ASP.NET Repeater中的Html.RenderPartial,但它无法正常工作吗?

<asp:Repeater runat="server">
            <ItemTemplate>
                <% Html.RenderPartial("UserControl1",Eval("Title")); %>
            </ItemTemplate>
</asp:Repeater>
Run Code Online (Sandbox Code Playgroud)

顺便说一句,我知道我可以通过其他方式做到这一点,但我想知道它是否可行.

asp.net asp.net-mvc repeater htmlextensions

2
推荐指数
1
解决办法
1577
查看次数

带有大写字母的CamelCased单词的正则表达式

如何在带正则表达式的文档中找到所有CamelCased单词?我只关心领先的上骆驼案(即第一个字母大写的骆驼套话).

regex search camelcasing pascalcasing

31
推荐指数
4
解决办法
3万
查看次数