Redian新闻
>
how to export a class in a namespace in DLL?
avatar
how to export a class in a namespace in DLL?# Programming - 葵花宝典
y*9
1
I have not been back home more than 4 years.
Now i am F-1 visa in the same school.
When i am preparing the document for applying the visa in U.S. Embassy, i
notice the requirement of SEVICE fee.
I am not quite sure what it is for.
Could someone please help me with this question?
Thanks a lot!
avatar
M*c
2
中行,居家,人寿,万科.....
不要再去搞小盘股了,现在轮动到蓝筹里面,进了蓝筹,资金就不会很快出去。
avatar
v*s
3
Second -- the resulting accident at Fukushima is very bad and will
impact people around the plant and cause the loss of millons of dollars
of lost property but there are unlikely to be any public health effects
from the radiation. There may be some health effects to plant workers
who are bravely working to control the accident. Third -- even if things
get much, much worse the radiation levels in the US will not approach
the levels I've seen on a "Nuclear Fallout Map" credited to Australian
Radiation Services. While it might be theoretically possible to take the
radiation in the Fukushima core and have everyone on the west coast
receive hundreds of rads of exposure as that shows, it's not possible to
do it by blowing it on the wind. As a professor of mine used to say --
"I could theoritically impregnate every woman on earth. I have enough
sperm, but what I lack is the delivery system." It's the same with the
radioactivity in the core of a nuclear reactor.
Some information on me. I have a degree in Nuclear Engineering and a
Professional Engineering License in Mechanical Engineering. I worked in
the Nuclear Industry for 22 years. My experience includes refueling
nuclear submarines, and working at a commercial power plant as start up
test engineer, project manager and emergency planning (which included
creating scenarios like the one at Fukushima as part of extensive drills
that tested emergency procedures and the response of people from the
plant, local communities, the state and the federal government). I've
been a member of the American Nuclear Society since 1973. Here is a link
to credible information about the accident ansnuclearcafe.org.
avatar
s*e
4
我讲几个像你这样的女生和那样的男生的事。
我高中时候的闺密,在上了大学以后仍然恋恋不忘她高中班的一个男生,而她也觉得
那个男生隐隐约约喜欢他,虽然大学期间她交过两个男朋友,但她仍然不能忘怀。
后来她给那个男生写了一封信,其实是很普通的一封问候,而那个男生的表现却是
令我的闺密颇为失望,她说,其实那个男生只是enjoy有女生对他暗暗恋着的感觉,
而他其实谁也不喜欢,他只喜欢他自己。
我上大学的时候偶然机会认识一个女生。她很矛盾要不要去见那个她心里一直喜欢的
男生,虽然她有男朋友,而那个男生刚和女朋友分手了。那个男生邀她去他家玩,
她拿不定主意。我说那你去吧,否则以后你会后悔的。然后她去了,回来的时候很
伤心。她说她看到那个男生的手机里短信和他的前女朋友很暧昧,她和那个男生谈了,
而那个男生的话令她灰心:他说如果他不和其他女生结婚的话,那最后一定会和她结婚。
所以,我觉得那句,如果那个男生真的喜欢你,他一定会追你的,要是不追你话,
那就是他不够喜欢你, 还是很有道理的。
再讲一个吧,有两个很内向的男生,女生,关系很好,旁观者都看出来了他们关系非
同一般,但他们就是不承认。我以为可能真的是普
avatar
x*n
5
结婚是人生大事,娶老婆不像买衣服,合适留下过日子,不合适再换一个。尽管男人都
希望能娶回一位聪慧贤淑的漂亮女人做老婆,可女人有很多种类型,娶到优秀女人并能
相伴终生并不容易。由于女人青春易逝,容颜易老,聪明男人选老婆不能只盯着容貌,
应对女人进行全方位考察。一般来说,五种女人能给男人带来幸福,男人碰上了不会错
过,娶回家也能倍加珍惜。
1、有内涵的知识女人。有内涵的女人就像一本好看的书,男人看完一页还想翻看下一
页,即便女人没有出众的容貌,内涵的魅力也同样让男人竞折腰。有内涵的女人举止优
雅得体,处事聪慧睿智,举手投足间都能给人美的视觉享受,男人娶这样的女人不有审
美疲劳,利于婚姻稳定和长久幸福。有内涵的女人不愚昧,遇事不莽撞,不靠撒泼处理
家务纠纷,男人娶这样的女人更容易相处。但女人的涵养要靠后天知识的不断积累,需
要有个长期学习和修炼的过程,因此,知识丰富的女人不一定都有内涵,但没文化的女
人一定会缺少内涵。
2、有品位的时尚女人。品位是女人观察事物的态度,品味高低取决于对事物的发现和
理解程度。有品位的女人通常比较时尚,而时尚女人则不一定有很高的品位。有品位的
女人懂得用眼光去欣赏事物,廉价服饰也能装扮出时尚个性,不会跟在时髦女人的后面
大把花钱,一般都很会过日子。有品位的女人性格也较内敛,喜怒不形于色,容易和睦
相处,很少与男人在争吵中过日子,婆媳关系也会处理的很好。有品位的女人大都重视
生活品质,在给男人赏心悦目外表的同时,也会给他创造一个温馨的家,男人娶这样的
女人更容易得到幸福。
3、有修养的成熟女人。成熟女人有一种成熟之美,处变不惊的修养和较强的控制力是
女人不可多得的优秀品质。成熟女人懂得处事之度,既不会毫无原则的逆来顺受,也不
会毫无道理的胡搅蛮缠,她不会放纵男人犯错,也会给犯错男人改正机会,这样的女人
讲道理。成熟女人善解人意,能读懂男人内心,了解男人需求,理解男人难处,分担男
人忧愁,这样的女人都“旺夫”。成熟女人大多善良,富有爱心,处事得体,懂得如何
与人相处,从不会给男人惹麻烦。男人娶这样的女人可以专注事业,不用为家务分心,
婚姻生活会很舒心。
4、有胸襟的宽容女人。宽容是女人非凡的气度与胸怀,宽容不代表懦弱,而是女人的
一种美德。当与人发生不快时,她会用适当忍让体现涵养,成为受人尊敬和欢迎的人,
在不乏小姐脾气的女人堆里,女人的宽容品质更显高贵。宽容的女人心中装着大局,当
夫妻因琐事发生矛盾时,她不会在鸡毛蒜皮的小事上斤斤计较,会为维护夫妻关系大局
而隐忍,过后再通过沟通表明自己的立场。宽容的女人更容易与人相处,不会把亲情关
系搞得鸡飞狗跳,男人娶这样的女人家庭更和睦。
5、有事业的智慧女人。很多女性认为不能依附于男人,要有自己的事业,在婚姻生活
中相对独立,免得婚后失去自我,这话不无道理。男人其实也不喜欢不劳而获的女人,
更青睐有事业的智慧女性,更希望在事业上夫妻比翼双飞。有事业的女人不一定都是智
慧女人,那些忙于事业而忽视老公和家庭的职业女性很难让男人满意。智慧女人会把老
公和家庭放在首位,让事业为婚姻生活服务,哪怕有再好的发展前途,也不会主次颠倒
。男人娶这样的女人没有太大的养家压力,也不用担心家务和孩子没人管,是做梦都想
娶的理想女人。
avatar
m*x
6
Using VS2010, a class can be exported from DLL. the client can access it
without problem. when put it into a namespace, the client program has link
error: unsolved external objs...
Any idea? thanks
the dll header file is:
#pragma once
#ifndef ECONOMICS_API_DCL
#ifdef ECONOMICS_EXPORTS
#define ECONOMICS_API_DCL __declspec(dllexport)
#else
#define ECONOMICS_API_DCL __declspec(dllimport)
#endif
#endif
namespace Economics
{
class ECONOMICS_API_DCL InterestRate
{
public:
InterestRate(void);
~InterestRate(void);
};
}
the client code is :
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
Economics::InterestRate mRate;
return 0;
}
error is:
Error 2 error LNK2019: unresolved external symbol "__declspec(
dllimport) public: __thiscall Economics::InterestRate::InterestRate(void)" (
[email protected]@@[email protected]) referenced in function _wmain E:
\Litn\VS2010\Financial Analystics\Test\Test.obj Test
avatar
i*n
7
是SEVIS fee好不好?

【在 y****9 的大作中提到】
: I have not been back home more than 4 years.
: Now i am F-1 visa in the same school.
: When i am preparing the document for applying the visa in U.S. Embassy, i
: notice the requirement of SEVICE fee.
: I am not quite sure what it is for.
: Could someone please help me with this question?
: Thanks a lot!

avatar
M*c
8
只要资金不在小盘股里面就好,市场震荡倒霉的只能是小盘股。
而且接下来这波上涨,估计和小盘股无关。 今天的红指数,小盘股跌
就是反映的这种状况。
avatar
E*n
9
又到了这种不知道听谁的的时候了
不过还有至少6-7天的时间,不慌

【在 v******s 的大作中提到】
: Second -- the resulting accident at Fukushima is very bad and will
: impact people around the plant and cause the loss of millons of dollars
: of lost property but there are unlikely to be any public health effects
: from the radiation. There may be some health effects to plant workers
: who are bravely working to control the accident. Third -- even if things
: get much, much worse the radiation levels in the US will not approach
: the levels I've seen on a "Nuclear Fallout Map" credited to Australian
: Radiation Services. While it might be theoretically possible to take the
: radiation in the Fukushima core and have everyone on the west coast
: receive hundreds of rads of exposure as that shows, it's not possible to

avatar
b*i
10
#include "interestrate.h"
using namespace Economics;
设置你的include 路径,能够正确找到interestrate.h

【在 m***x 的大作中提到】
: Using VS2010, a class can be exported from DLL. the client can access it
: without problem. when put it into a namespace, the client program has link
: error: unsolved external objs...
: Any idea? thanks
: the dll header file is:
: #pragma once
: #ifndef ECONOMICS_API_DCL
: #ifdef ECONOMICS_EXPORTS
: #define ECONOMICS_API_DCL __declspec(dllexport)
: #else

avatar
j*g
11
sevis fee 你第一次来美的时候已经交了,返签就不用了
avatar
M*c
12
呵呵,还不错,前两天让你换中金,你就是找个慢的。
avatar
v*s
13
LG的客户就是生产各种气体的我本来想说他们可能会收到n多helium订单。。。
在仔细一看,小日本用的是氢气,我自己抽自己嘴巴了~

【在 E*****n 的大作中提到】
: 又到了这种不知道听谁的的时候了
: 不过还有至少6-7天的时间,不慌

avatar
m*x
14
not this issue.
when add the project to the reference of client, there is no problem.

【在 b***i 的大作中提到】
: #include "interestrate.h"
: using namespace Economics;
: 设置你的include 路径,能够正确找到interestrate.h

avatar
y*9
15
thanks for correcting me.
i had never paid sevis fee before.
avatar
M*c
16
因为山东黄金都跟中金学,呵呵
avatar
E*n
17
Quote:"日本都这样了奥特曼还不出现,我再也不相信爱情了"

【在 v******s 的大作中提到】
: LG的客户就是生产各种气体的我本来想说他们可能会收到n多helium订单。。。
: 在仔细一看,小日本用的是氢气,我自己抽自己嘴巴了~

avatar
b*i
18
if you don't add the reference, you couldn't build even without using
namespace.
You said, it compiled without namespace, so you already added the reference.

【在 m***x 的大作中提到】
: not this issue.
: when add the project to the reference of client, there is no problem.

avatar
i*n
19
那你显然要付了这次
SEVIS缴费网站上有FAQ详细列举了那些人要付那些人不要付,去看看你是那种情况

【在 y****9 的大作中提到】
: thanks for correcting me.
: i had never paid sevis fee before.

avatar
p*n
20
re

【在 M******c 的大作中提到】
: 中行,居家,人寿,万科.....
: 不要再去搞小盘股了,现在轮动到蓝筹里面,进了蓝筹,资金就不会很快出去。

avatar
m*x
21
without adding dll project as reference, the client compiled andrun well
without namespace.
if i deliver the dll, the client has no way to add project reference. that
is concern.
dont know what trick vs2010 made when
adding project reference.

reference.

【在 b***i 的大作中提到】
: if you don't add the reference, you couldn't build even without using
: namespace.
: You said, it compiled without namespace, so you already added the reference.

avatar
y*9
22
Thanks a lot.
I got the answer.
avatar
e*e
23
王八从王六快变成王十二

【在 M******c 的大作中提到】
: 中行,居家,人寿,万科.....
: 不要再去搞小盘股了,现在轮动到蓝筹里面,进了蓝筹,资金就不会很快出去。

avatar
a9
24
....

【在 m***x 的大作中提到】
: without adding dll project as reference, the client compiled andrun well
: without namespace.
: if i deliver the dll, the client has no way to add project reference. that
: is concern.
: dont know what trick vs2010 made when
: adding project reference.
:
: reference.

avatar
s*x
25
这个人很可能自己付过了都不知道
4年前的很难想象怎么可能没有付呢,10年前的还差不多

【在 i*n 的大作中提到】
: 那你显然要付了这次
: SEVIS缴费网站上有FAQ详细列举了那些人要付那些人不要付,去看看你是那种情况

avatar
b*i
26
我猜,你不加reference可以编译是因为你没有显式写构造函数。但是不写构造函数,有没有namespace没什么不同,同样可以编译运行,用好include, using namespace就行。你如果写了构造函数,尽管没有namesapce,没有reference仍然会报同样的错。
加了reference(当然应该要加),就可以有正常的构造函数,而这种情况,有没有namespace也没什么大的不同,用好include, using namespace就行。
写visual studio的dll, 必须(或者说,推荐)把所有事情都做对,参考
http://www.mitbbs.com/article_t/Programming/31216231.html

【在 m***x 的大作中提到】
: without adding dll project as reference, the client compiled andrun well
: without namespace.
: if i deliver the dll, the client has no way to add project reference. that
: is concern.
: dont know what trick vs2010 made when
: adding project reference.
:
: reference.

avatar
i*n
27
有道理,有些人真是糊里糊涂,还没有记录和复印留底的习惯

【在 s******x 的大作中提到】
: 这个人很可能自己付过了都不知道
: 4年前的很难想象怎么可能没有付呢,10年前的还差不多

avatar
y*9
28
In general, the following people do not have to pay the SEVIS I-901 fee:
Students or exchange visitors who meet all of the following criteria:
Started at a school or a program with a Form I-20 or DS-2019 dated before
the fee first came into effect on September 1, 2004;
Have not completed that program, including students who transfer schools or
changed program levels; and
Have maintained status
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。