r*****s 发帖数: 985 | 1 比如说
HRESULT GetWhatever(
[in] ULONG abc,
[out] LPWSTR pName);
这个pName要不要先alloc一块memory,还是assume GetWhatever会给分配一块内存?
BTW,这个GetWhatever是.NET的API,我没法看到它怎么实现的。
谢谢!
P.S. 我是给pName一个array的
wchar_t pName[512];
但是运行起来会有
Stack around the variable "pName" was corrupted的run time error. 我想是不是这
个GetWhatever写到pName分配的memory外面了? |
|
n********a 发帖数: 68 | 2 The question can be interpreted by different ways.
I took it mean that find the lastest four dates and
give me every position.
In Oracle 8.1.6 upper, you could do:
select pName from (
select position.pName,
dense_rank() over (order by EP.tDate desc nulls last) dr
from EP, Position
where EP.pID=position.pID and Position.state='Illinois'
) where dr <= 4;
If your database supports inline view and rownum, you could do
select pName from (
select position.pName
from EP, Position
where EP.pID=position. |
|
n********6 发帖数: 1511 | 3 此帖太弱,大牛请略过。
两个月前做报表需要用outer join,当时一时未想起来。
Table1: Project
PID, PName
1, waterdatabase
2, raiseweibi
3, enjoyweibi
Table2:Task
PID, TID, TName
1, 1, create entry
1, 2, say hi
3, 1, use weibi saving
Report1: Report
PID+TID, PName, TName
1.1, waterdatabase, create entry
1.2, waterdatabase, say hi
2, raiseweibi,
3.1, enjoyweibi, use weibi saving
Report2: Summary
PID, PName, CountTask
1, waterdatabase, 2
2, raiseweibi, 0
3, enjoyweibi, 1
若不用outjoin,“2, raiseweibi,”就不在报表中。 |
|
|
|
发帖数: 1 | 6 PyRun_SimpleString("import sys");
PyRun_SimpleString("sys.path.append('./')");
pName = PyUnicode_FromString("testpy");
pModule = PyImport_Import(pName);
pModule一直为空怎么办?我有尝试打印sys.path,发现sys.path包含很多路径,我已
经尝试把我的python脚本副本放在sys.path包含的所有路径里了。。。还是不行,求前
辈们指教。编译器用的visual studio. 谢谢。 |
|
|
|
|
|
|
|
|
r*********e 发帖数: 29495 | 14 http://www.fs.usda.gov/wps/portal/fsinternet/!ut/p/c5/04_SB8K8x
z9CP0os3gDfxMDT8MwRydLA1cj72DTUE8TAwgAykeaxRtBeY4WBv4eHmF-YT4GMHn8usNB9uHXDz
YBB3A00PfzyM9N1S_IjTDIMnFUBADW0rdA/dl3/d3/L2dJQSEvUUt3QS9ZQnZ3LzZfMjAwMDAwMD
BBODBPSEhWTjJNMDAwMDAwMDA!/?navtype=BROWSEBYSUBJECT&cid=stelprdb5150431&navi
d=091000000000000&pnavid=null&ss=110605&position=Not%20Yet%20Determined.Html
&ttype=detail&pname=Mt.%20Baker-Snoqualmie%20National%20Forest-%20Home
State Route 542
Mt. Baker Higway OPEN
The final tw... 阅读全帖 |
|
|
|
|
|
|
H****r 发帖数: 16240 | 20 看了你这贴我手痒
上次你又说到CZ 527是悬浮管的
所以我把托拆下来里面不平的地方弄干净,装回去果然悬浮了
然后买了一百发PPU那种钝头的弹
http://www.ammunitiontogo.com/product_info.php/pName/100rds-762
结果跑去靶场才发现,枪托装回去的时候弹匣释放钮没装好
机匣上压着释放钮的弹簧片我给放在钮里面鸟
所以弹匣插不到底,变单打一了
然后又没带螺丝刀
还好还带了FAL,但打的也不好
再次验证了winchester的FMJ精度超级烂,绝对比不上好的军剩
另外碰上一个玩PTR-91的,他装了非常漂亮的木家具
用英国军剩50码铁瞄三发差不多连洞
但他另一张用winchester FMJ的靶纸同样很难看
旁边靶道的越南大哥的AR也是spike's,装了个2.5-10倍的IOR……
另外终于见到了一支AR57,红脖小胖孩在打50码铁瞄,惨不忍睹 |
|
|
|
|
|
|
|
|
|
|
s*****g 发帖数: 17 | 30 What about having three tables?
PLAYER(pid, pname) pid is the key
GAME(gid, other attributes) gid is the key
GAMR-PLAYER(gid,pid) composite key of gid and pid.
Then they are well normalized. Can someone tell me how the performance
will be if we have the above three tables? |
|
c*********l 发帖数: 17 | 31 If I have two relations:
Employee(SSN, salary, name) SSN is primary key
Position(pID, pName, state) pID is primary key, state is the US state in
which a position released
And one relationship which link the two tables:
EP(SSN, pID, tDate) SSN, pID is primary key. tDate is the date on which
position was taken
Now I wanna write a SQL to retrieve data that meet requirement below from the
database: List the last four positions that took place in Illinois
Please give my some ideas, thank |
|
j*****n 发帖数: 1781 | 32 yes, there should be 3 tables
Employee (EID, EName)
Porjects (PID, PName, Manager_EID)
WorkHours (EID, PID, Hours) |
|
|
s**********o 发帖数: 14359 | 34 如果是3RD NORMAL FORM,TABLE应该是这样的,数据应该是这样存放的,
JOIN一下不就完了,有什么难的
PERSON
PERSONID PNAME GENDER OTHERSTUFF
1 JOHN M PIG
2 MARY F BITCH
DEPT
DEPTID DEPTNAME HEADCOUNT OTHERSTUFF
1 HR 3 GOTOHELL
2 IT 20 USELESS
ROLE
ROLEID ROLENAME OTHRESTUFF
1 MANAGER SHOULDDIE
2 ENGINERR SITTINGDUCK
PERSON_DEPT_ROLE
PERSONID DEPTID ROLEID
1 1 1
1 2 2
1 2 1 |
|
d*****l 发帖数: 8441 | 35 1. 先用uicontrol(...)定义一个button元件,并为该button定义一个事件处理函数。
2. 再在该事件处理函数中用
[fname,pname] = uigetfile('*.*','Enter data file'); |
|
|
c*******g 发帖数: 695 | 37 这个方法我想过了
但是我是在定义变量的时候
只能用一次statement
比如
PNAME ‘k12','k10',....如果变量多了程序就不读了
靠
我数了只能用244个字符
~~~~~~~这个东西太复杂了
我们就上个pkpd的课程
来不及学了
谢谢你帮我问同事 |
|
s**********r 发帖数: 330 | 38 你能分两次定义吗? PNAME一批,换行后再定义一批.
我无数年前参加过一个星期的PK/PD TRAINING,是SUNY BUFFALO的PROFESSOR给对PKPD一
窍不通的人办的强化训练班.学完了又不用,现在已经忘得一干二净了.
你写具体些,我明天再去问,我也正好学学. |
|
c*******g 发帖数: 695 | 39 好像不行呢
那个生成模型的向导自动生成的就只有一个
PNAMES
又不是C语言
int x
int y
随便写。。。。。 |
|
n*****t 发帖数: 41 | 40 谢谢,文件如下。我只要读取最后一个数,就是那个likelihood的数值。
MERLIN 1.1.2 - (c) 2000-2007 Goncalo Abecasis
References for this version of Merlin:
Abecasis et al (2002) Nat Gen 30:97-101 [original citation]
Fingerlin et al (2004) AJHG 74:432-43 [case selection for
association studies]
Abecasis and Wigginton (2005) AJHG 77:754-67 [ld modeling, parametric
analyses]
Fingerlin et al (2006) Gen Epidemiol 30:384-96 [sex-specific maps]
Chen and Abecasis (2007) AJHG 81:913-26 [qtl assoc... 阅读全帖 |
|
s***0 发帖数: 10 | 41 读了trix得买鞋经历,学了不少东西.发现我前面的帖子问了不少弱智问题.抱歉.我
开始想买双入门鞋,比如说Vanilla, 网上好像反响不好,说是crap.现在我也买bont
吧,
Option 1:
Bont Cheetah Inline Speed Skates White 3pt 110mm - $319.00
Option 2:
Bont Jet Inline Speed Skates 3pt Mount 110mm 2011 - $425.00 (有些肉痛!
Option 3:
Bont Jet Inline Speed Skates 3pt Mount 100mm 2010 - $280.00
另外我在网上发现了一个bont Jet 3 point Inline Speed Skates $299.00
http://www.netskate.com/proddetail.asp?pname=Bont+Jet+3+point+I
这是去年的型号吗?值得卖吗?
现在我比较纠结的是:
1. Cheetah vs. Jet
2. 100mm vs. 110 mm
3. 201... 阅读全帖 |
|
w*******y 发帖数: 60932 | 42 Link:Link:
http://www.ammunitiontogo.com/product_reviews.php/pName/50rds-9
I heard about this deal from a good friend I go to the range with. He said
it's a great price especially for federal copper cased.
I know it's a good deal for 147 gr if you happen to be involved with an
agency that mandates it....I know there are a few left. And it's very clean
ammo.
|
|