小编Mic*_*tta的帖子

使用php发送电子邮件

我怎么知道我的主机是否允许我使用PHP mail()函数发送电子邮件?

可以用phpinfo()输出检查吗?

php email

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

自定义页面类

我正在尝试在我的项目中为我的页面创建一个自定义类.

这是default.aspx.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : FrontPage
{
    public String text;
    protected void Page_Load(object sender, EventArgs e)
    {
        text = "";
    }
}
Run Code Online (Sandbox Code Playgroud)

这是FrontPage类:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for FrontPage
/// </summary>
public class FrontPage
{
    public DataContext db = new DataContext();
    public String a;
    //public void Page_Load(object sender, EventArgs e)
    //{        
    //}
}
Run Code Online (Sandbox Code Playgroud)

问题是我一直收到错误:

Make sure the …

c# asp.net

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

我不理解使用函数传递的一维数组处理

我有一个名为record [10]的数组,其类型是表结构 { int, int, long, long,char}

我有一个函数,我想传递这个在循环中调用的数组的地址:

for(i = 0 ; i<10; i++)
{
    // internal resolution will be *(record + i) will fetch an address
    function(record[i]);
}
Run Code Online (Sandbox Code Playgroud)

我很困惑为什么它不起作用.我知道它与基础知识有关.

它开始与之合作

for(i = 0 ; i<10; i++)
{
    // then why do I need to pass this address of address here 
    function(&record[i]); 
}
Run Code Online (Sandbox Code Playgroud)

c

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

如何在运行时注册组件和属性编辑器?

一番搜索之后,它看起来像我不得不分配RegisterComponentsProc和RegisterPropertyEditorProc,这是我做的事.

但是,我认为我可以调用我的设计时间寄存器功能,即<myComponentUnit>.Register();.

当我这样做时,我得到堆栈溢出,因为,好吧......

procedure myComponentUnit.Regiter;
begin
  RegisterPropertyEditor(TypeInfo(Integer), 
                         TMyComponent, 'myProperty',   TMyProperty);
Run Code Online (Sandbox Code Playgroud)

结束;

procedure RegisterPropertyEditor(PropertyType: PTypeInfo;
  ComponentClass: TClass; const PropertyName: string;
  EditorClass: TPropertyEditorClass);
begin
  if Assigned(RegisterPropertyEditorProc) then
    RegisterPropertyEditorProc(PropertyType, ComponentClass, PropertyName,
      EditorClass);
end;
Run Code Online (Sandbox Code Playgroud)

所以,我打电话给.Register();
调用RegisterPropertyEditorProc()
调用RegisterPropertyEditorProc()
调用RegisterPropertyEditor()<=== aaargh !!

那么,我应该在RegisterPropertyEditorProc的主体中拥有什么?

进一步搜索后,看起来我想DesignEditors.RegisterPropertyEditor()直接调用,但它不在界面部分......

delphi vcl

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

什么是@property和@synthesize用于Objective-C?

什么是使用@property和@synthesize?你能用一个例子解释一下吗?

objective-c

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

用于检查两个数字之间的逻辑

我想确定区域被赋予任意数字的位置.

zones = [0, 150, 300, 400, 600, 800]

function checkZone(mouseX) {
    // if mouseX is 321, it should be index 2 of zones array
}
Run Code Online (Sandbox Code Playgroud)

javascript

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

为什么jfilechooser对Documents开放?

在Windows 7中,为什么jfilechooser对文档打开?

java

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

如何检查目录是文件还是文件夹?

好的,所以我使用的是mingW,直接结构没有名为d_type或stat,d_stat或dd_stat的变量.我需要知道如何使用我的直接结构来确定我所拥有的是文件或文件夹.这是我的代码.

#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
#include <errno.h>
#include <vector>
#include <string>
#include <iostream>

using namespace std;

/*function... might want it in some class?*/
int getdir (string dir, vector<string> &files)
{
    DIR *dp;
    struct stat _buf;
    struct dirent *dirp;
    if((dp  = opendir(dir.c_str())) == NULL) {
        cout << "Error(" << errno << ") opening " << dir << endl;
        return errno;
    }

    while ((dirp = readdir(dp)) != NULL) {

        if(stat(dirp->d_name, &_buf) != 0x4)
        files.push_back(string(dirp->d_name));
    }
    closedir(dp);
    return 0;
}

int …
Run Code Online (Sandbox Code Playgroud)

c++ directory file dirent.h

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

NIVO滑块圆角问题

请访问我的网站.

如果你看一下我的滑块,你会发现第一张幻灯片是完美的,但所有其他幻灯片有白角仅在图像的底部.

我想不出来了!我初步解决了问题,通过给片圆角,但随后的过渡效果会留下该图像面色削减了圆角切片.

谁能在这里提出建议?这让我疯狂!

slider

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

在抛出'NSException'错误Xcode的实例后终止调用

我正在尝试编译我的应用程序(这是一个扫描仪(假的;))).但是在模拟器中(以及在我的iTouch中),应用程序崩溃了.

这就是我所拥有的:

[Session started at 2010-10-03 00:25:56 +0200.]
GNU gdb 6.3.50-20050815 (Apple version gdb-1472) (Thu Aug  5 05:54:10 UTC 2010)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i386-apple-darwin --target=arm-apple-darwin".
tty /dev/ttys000 …

iphone xcode

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

标签 统计

asp.net ×1

c ×1

c# ×1

c++ ×1

delphi ×1

directory ×1

dirent.h ×1

email ×1

file ×1

iphone ×1

java ×1

javascript ×1

objective-c ×1

php ×1

slider ×1

vcl ×1

xcode ×1