The的应用! 为什么不能用theApp访问应用程序?

the\u7684\u5e94\u7528\u5b9e\u5728\u592a\u5e7f\u6cdb\u4e86\uff0c\u51e0\u4e4e\u90fd\u80fd\u7528\uff0c\u5c31\u544a\u8bc9\u6211\u54ea\u4e9b\u79cd\u7c7b\u7684\u8bcd\u4e0d\u7528\u5427

\u4e0d\u662f\u7279\u6307\u7684\u90fd\u4e0d\u7528the

MFC\u5e94\u7528\u7a0b\u5e8f\u4e2d\uff0c\u65e0\u8bba\u662f\u57fa\u4e8e\u5355\u6587\u6863\u8fd8\u662f\u5bf9\u8bdd\u6846\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u5728\u5e94\u7528\u7a0b\u5e8f\u7c7b\u4e2d\uff0c\u90fd\u6709theApp\u8fd9\u4e2a\u53d8\u91cf\uff0c
eg\uff1aCADOApp theApp;
theApp\u4ee3\u8868\u5e94\u7528\u7a0b\u5e8f\u5b9e\u4f8b~~

\u5982\u679c\u6211\u4eec\u5728\u5e94\u7528\u7a0b\u5e8f\u7c7b\u518d\u5b9a\u4e49\u4e86\u4e00\u4e2a\u53d8\u91cf\uff0c\u4f8b\u5982 _ConnectionPtr m_pConnection;
\u5f53\u6211\u4eec\u5728\u5176\u4ed6\u7c7b\uff0c\u6bd4\u5982Dlg\u7c7b\u4e2d\uff0c\u60f3\u7528\u5230m_pConnection\u8fd9\u4e2a\u53d8\u91cf\u65f6\uff0c\u53ef\u4ee5\u501f\u52a9theApp\u6765\u8c03\u7528\uff0c
\u4f8b\u5982\uff0c\u5728OnInitDialog\u51fd\u6570\u4e2d\uff0c\u6709
m_pRecordset->Open("SELECT * FROM tt",
theApp.m_pConnection.GetInterfacePtr(),
adOpenDynamic,
adLockOptimistic,
adCmdText);

\u8fd9\u53e5\u8bdd~~
\u5c31\u662f\u901a\u8fc7theApp\u6765\u8c03\u7528~~

***********************************************************************************************************************

\u6ce8\u610f\uff1a\u5728C\u00d7\u00d7\u00d7App\u7c7b\u4e2d \uff0c\u6709 theApp \u8fd9\u4e2a\u53d8\u91cf\uff0c
\u5728MFC\u7a0b\u5e8f\u5176\u4ed6\u7c7b\u4e2d\uff0c\u53ef\u4ee5\u7528 theApp \u6765\u8c03\u7528C\u00d7\u00d7\u00d7App\u7c7b\u4e2d\u6240\u6709\u7684\u65b9\u6cd5\u548c\u516c\u6709\u6210\u5458\u53d8\u91cf\uff0c
\u6bd4\u5982\uff0c\u5982\u679c\u60f3\u5728B\u7c7b\u4e2d\u8c03\u7528C\u00d7\u00d7\u00d7App\u7c7bVerifyPower\uff08\uff09\u51fd\u6570\uff0c\u53ea\u9700\u5728B\u7c7b\u7684\u5934\u6587\u4ef6\u7c7b\u7684\u5b9a\u4e49\u5916\uff0c\u52a0\u4e0a
extern C\u00d7\u00d7\u00d7App theApp; \u8fd9\u53e5\u8bdd~~
\u5982\u679c\u5728C\u7c7b\u4e2d\u4e5f\u60f3\u8c03\u7528\uff0c\u5219\u4e5f\u8981\u5728C\u7c7b\u7684\u5934\u6587\u4ef6\u4e2d\uff0c\u52a0\u4e0aextern C\u00d7\u00d7\u00d7App theApp;
\uff08
extern\u662f\u5916\u90e8\u7684\u610f\u601d \u7528\u6765\u8c03\u7528\u5176\u4ed6\u6587\u4ef6\u4e2d\u5b9a\u4e49\u8fc7\u7684\u53d8\u91cf
\u5f53\u7136\uff0c\u5982\u679c\u5728\u4e00\u4e2a\u6587\u4ef6\u4e2d\u5982\u679c\u5305\u62ec\u4e86\u5934\u6587\u4ef6\uff0c\u4e5f\u53ef\u4ee5\u7701\u53bb\u8fd9\u4e00\u6b65
\uff09

\u8fd9\u6837\u505a\u7684\u597d\u5904\u662f\uff0c\u5728\u67d0\u4e00\u4e2a\u7c7b\u4e2d\u5b9a\u4e49\u7684\u51fd\u6570\u6216\u53d8\u91cf\uff0c\u5728\u5176\u4ed6\u7c7b\u4e2d\u90fd\u53ef\u4ee5\u4f7f\u7528\uff0c\u5e76\u4e14\u4e0d\u7528\u5bf9\u539f\u6765\u90a3\u4e2a\u7c7b\u8fdb\u884c\u5b9e\u4f8b\u5316\uff0c\u65b9\u4fbf\u5feb\u6377\uff0c
\u8fd9\u6837\u505a\uff0c\u5bf9\u7a0b\u5e8f\u7684\u5c01\u88c5\u4e5f\u6709\u4e00\u4e9b\u4e0d\u5229\u7684\u5f71\u54cd
*********************************************************************************************************************************

CSDN\u4e2d\u5bf9theApp\u7684\u7528\u6cd5\u7684\u603b\u7ed3\uff1a
1.theApp\u662f\u4f60\u5de5\u7a0b\u7684\u5934\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7AfxGetApp()\u83b7\u5f97\u6574\u4e2a\u8fdb\u7a0b\u7684\u6307\u9488\uff0c\u7136\u540e\u901a\u8fc7\u5b83\uff0c\u53ef\u4ee5\u83b7\u5f97\u8be5\u8fdb\u7a0b\u7684HWND\u4ee5\u53caHINSTANCE\uff0c\u548c\u83dc\u5355\u3002\u3002\u3002\u7b49\u7b49\u3002\u4e0d\u4e00\u800c\u8db3\u3002\u53ef\u4ee5\u901a\u8fc7msdn\u83b7\u5f97\u66f4\u591a\u7684\u4fe1\u606f

2.theApp\u662f\u4e2a\u5168\u5c40\u53d8\u91cf\uff0c\u51e0\u4e4e\u53ef\u4ee5\u5728\u7a0b\u5e8f\u7684\u4efb\u4f55\u5730\u65b9\u5f15\u7528\u3002\u5982\u679c\u4f60\u5efa\u7acb\u4e00\u4e2aMDI\u6216\u8005SDI\u5de5\u7a0b\uff0c\u90a3\u4e48\uff0c\u4f60\u53ef\u4ee5\u770b\u5230\u4e00\u4e2a\u7c7b\u4ee5*App\u7ed3\u5c3e\uff0c\u8fd9\u4e2atheApp\u5c31\u662f\u5b83\u7684\u4e00\u4e2a\u5b9e\u4f8b\uff0c\u5728\u8fd9\u4e2a\u7c7b\u4e2d\u6dfb\u52a0\u7684public\u53d8\u91cf\u53ef\u4ee5\u901a\u8fc7theApp\u5f15\u7528\u3002\u5f53\u7136\uff0c\u7531\u4e8eWinApp\u662f\u5b83\u7684\u57fa\u7c7b\uff0ctheApp\u4fdd\u5b58\u6709\u8bb8\u591a\u6709\u5173\u7a0b\u5e8f\u8fd0\u884c\u671f\u95f4\u7684\u5f88\u591a\u4fe1\u606f\uff0c\u5982\u6267\u884c\u7a0b\u5e8f\u540d\uff0c\u8def\u5f84\u4ec0\u4e48\u7684\u3002

3.\u52a0\u4e2a\u6210\u5458\u53ca\u65b9\u6cd5\uff0c\u53ef\u4ee5\u968f\u65f6\u7528AfxGetApp\u8bbf\u95ee

4.theApp\u662fCWinApp\u7c7b\u7684\u6d3e\u751f\u7c7b\u7684\u5bf9\u8c61\uff0c\u662f\u4e00\u4e2a\u5168\u5c40\u53d8\u91cf\u3002\u5168\u5c40\u53d8\u91cf\u5728WinMain()\u524d\u88ab\u521b\u5efa\u3002

5.theApp\u5c31\u662f\u5e94\u7528\u7a0b\u5e8f\u7684\u5b9e\u4f8b\uff0c\u6ca1\u6709\u4ed6\u4f60\u5c31\u4ec0\u4e48\u90fd\u4e0d\u80fd\u505a\u554a\uff01\u4ed6\u521d\u59cb\u4e86\u8fdb\u7a0b\u554a\uff01

定冠词the的用法

冠词是英语当中最典型高考最常考的限定词,包括定冠词、不定冠词和零冠词(不用冠词)。它们的基本用法总结归纳如下:

1.定冠词的基本用法:

①特指 可用于各类名词,包括物质名词、抽象名词及专有名词。如:

I own a dog. The dog is brown.

②与可数名词单数及某些形容词、分词连用,表示类别。如:

Bell invented the telephone.

The rich get richer, and the poor get children.

③用于表示民族、阶级、党派的名词前。如:

The Chinese is a great people in the world.

④表示世界上独一无二的事物,名词前用定冠词。如:

The earth runs around the sun.

⑤与姓氏的复数连用,表示一家人。如:

The Smiths are on holiday now.

⑥用于表示方向、方位的名词前。如:

It rains more often in the south of China than in the north.

⑦在最高级、序数词及next,last,same等词前常用定冠词。如:

The last one is the most important one.

⑧用于乐器名称前。如:

He is good at playing the piano.

注意:定冠词the与指示代词this,that同源,有“那(这)个”的意思,可以和一个名词连用,来表示某个或某些特定的人或东西。

1)特指双方都明白的人或物:Take the medicine。把药吃了。

2)上文提到过的人或事:He bought a house。Ive been tothehouse。他买了幢房子。我去过那幢房子。

3)指世上独一物二的事物:the sun,the sky,the moon, he earth

4)单数名词连用表示一类事物:如:the dollar 美元;thefox 狐狸;或与形容词或分词连用,表示一类人:therich 富人;the living 生者。

5)用在序数词和形容词最高级,及形容词only,very,same等前面:Where do you live?I liveonthe second floor。你住在哪?我住在二层。Thats the very thing Ive beenlookingfor。那正是我要找的东西。

6)与复数名词连用,指整个群体:They are the teachers of thisschool。指全体教师) Theyare teachers of this school。(指部分教师)

7)表示所有,相当于物主代词,用在表示身体部位的名词前:he caught me by the arm。她抓住了我的手臂。

8)用在某些由普通名词构成的国家名称、机关团体、阶级、等专有名词前:the Peoples RepublicofChina中华人民共和国 the United States美国

9)用在表示西洋乐器的名词之前:She plays the piano/ guitar/violin。她会弹钢琴/吉他/小提琴。

10) 用在姓氏的复数名词之前,表示一家人:the Greens格林一家人(或格林夫妇)

11) 用在惯用语中:in the day,in the morning (afternoon,evening),thedayafter tomorrowthe day before yesterday,the next morning,inthesky (water,field,country) in the dark,in the rain,inthedistance,in the middle (of),in the end,on the whole,by theway,goto the theatre

2.不定冠词的基本用法:

①泛指 表示"某一个",用于可数名词单数前。如:

We need a pen to write with.

②与可数名词单数连用,表示类别。如:

An ox is a useful animal.

③在某些词组中,代替介词per。如:

I go back home once a month.

④表示人的职业或工作。

I am a teacher, teaching in a college.

⑤专有名词也可以加不定冠词,表示专有名词的普通化。如:

He wishes to be an Edison.

3.零冠词的基本用法(即不用冠词的情况)

①表示一般概念的物质名词、抽象名词前不用冠词。如:

Unity is strength.

②在复数名词与不可数名词前不用冠词表示类别或泛指。如:

They are teachers, not students.

③表示人名、地名等专有名词在一般情况下不用冠词。但是,表示江河、海洋、山脉、群岛等地理名词及含有普通名词的国名、组织机构名词前需要用定冠词the,人名、地名在特指时也需要加定冠词 the。如:

Beijing is the capital of China.

④表示季节(除in the fall外)、月份、星期、日期、节日等名词前一般不用冠词。如:

I often swim in summer.

⑤在作表语或宾语补定语表示职位、身份、头衔等的名词前常不用冠词。如:

George W. Bush, president of U. S., declared the war against Iraq.

⑥具有抽象意义的个体名词和一些介词构成短语时,一般不用冠词。如:

The peasants are in trouble because of the bad harvest.

⑦表示使用某种交通手段时,名词前不用冠词。如:

I usually go to my office by bus.

⑧学科名词前一般不用冠词。如:

The boy is very interested in physics.

⑨表示某顿饭的名词在一般情况下通常不加冠词。如:

After supper, I often go out for a walk with my wife.

⑩表示运动项目的名词前不用冠词。

I prefer playing basketball to playing football.

1、什么时候用the,什么时候不用。一般特指名词前才用the

2,上文提到的人或事,再提到时用the. 特指双方都知道的事或人时用the.

3、在一些固定的搭配中,是没有办法来自己定加不加the的,只能对这样的词组加以记忆不过其它情况也有一些记忆的巧门比如球类前不加,而乐器前加等。再比如in theevening 等。

4、世界上独一无二的事物前面用the.

上面的很详细啊

  • play鐞电惗瑕佸姞the鍚
    绛旓細playchess涓嬪浗闄呰薄妫嬬瓑銆傚洜姝わ紝鏍规嵁杩欎釜鍙h瘈锛宲lay鐞电惗鏃跺簲璇ュ姞the锛屽嵆playthepipa銆傝櫧鐒跺湪姝h鑻辫涓紝鏃犺浠涔堜箰鍣紝鍓嶉潰鏄簲璇ュ姞the鐨銆備絾鏄篃鏈変竴绉嶈娉曡涓猴紝鍦ㄤ腑鍥戒紶缁熶箰鍣ㄥ墠锛屽浜岃儭銆佺惖鐞剁瓑锛屼笉鐢ㄥ姞瀹氬啝璇峵he銆傜劧鑰岋紝鍦ㄥ疄闄搴旂敤涓紝涓轰簡绗﹀悎鑻辫璇硶瑙勫垯鍜岃〃杈句範鎯紝寤鸿鍦╬lay鐞电惗鏃跺姞涓妕he銆
  • dosethe鏄粈涔堟剰鎬?
    绛旓細Dosethe鏄渄ose鈥濆拰鈥渢he鈥濈殑鍚堟垚璇嶃傚叾涓紝鈥渄ose鈥濊〃绀哄墏閲忔垨缁欒嵂閲忥紝涔熷彲浠ユ寚涓娆℃湇鑽殑閲忋傝屸渢he鈥濅綔涓哄畾鍐犺瘝锛屾剰鎸囩壒鎸囩殑鈥滈偅涓濇垨鈥滈偅浜涒濄傛墍浠ワ紝Dosethe鍙互琚悊瑙d负鐗瑰畾鑽墿鐨勪竴娆$敤閲忔垨鑰呮槸鐗规畩鎯呭涓嬬殑鍓傞噺銆傚湪鍖昏嵂棰嗗煙锛孌osethe鐨勫簲鐢灏や负鍏抽敭銆傚尰鐢熶細鏍规嵁鎮h呯殑鍏蜂綋鎯呭喌鍒跺畾娌荤枟鏂规锛岃繖...
  • theghost鑻规灉鎬庝箞涓嬭浇
    绛旓細3. 鎼滅储TheGhost锛氬湪App Store鐨勬悳绱㈡爮涓緭鍏“TheGhost”銆4. 鏌ユ壘TheGhost搴旂敤锛氬湪鎼滅储缁撴灉涓紝鎵惧埌鐢卞彲闈犲紑鍙戝晢鍙戝竷骞舵爣璁颁负“宸茶喘涔”鎴“鍙笅杞”鐨凾heGhost搴旂敤銆5. 涓嬭浇搴旂敤锛氬鏋滄壘鍒板悎閫鐨勫簲鐢鐗堟湰锛岀偣鍑“瀹夎”鎴“涓嬭浇”鎸夐挳锛屾寜鐓...
  • the number of鐨勭敤娉
    绛旓細渚嬪彞锛氣憼The number of students in the class is twenty. 杩欎釜鐝骇閲岀殑瀛︾敓鏁伴噺鏄簩鍗併傗憽The amount of water in the bottle is not enough for everyone. 鐡跺瓙閲岀殑姘寸殑閲忎笉澶熸瘡涓汉鍠濄2銆佽澧搴旂敤鐨勪笉鍚 the number of甯哥敤浜庤绠楀叿浣撶殑涓綋鏁伴噺锛屾瘮濡備汉鏁般佷功鐨勬暟閲忕瓑銆傝宼he amount of甯哥敤浜...
  • The Application of鏄粈涔堟剰鎬
    绛旓細of 搴旂敤 鍙岃渚嬪彞 1. Your foot will feel better after the application of this ointment.鏁风敤杩欒嵂鑶忓悗,浣犵殑鑴氫細鎰熷埌鑸掓湇浜.2. His lecture is intended to bear down on the application of acupuncture anaesthesia in brain surgery.浠栫殑瀛︽湳鎶ュ憡鎵撶畻閲嶇偣璋堥拡鍒洪夯閱夊湪鑴戝绉戞柟闈鐨勫簲鐢....
  • onthelook杞欢鎬庝箞涓嬭浇?
    绛旓細onthelook杞欢鐨勪笅杞芥柟娉曟楠ゅ涓嬶細1銆佹墦寮搴旂敤鍟嗗簵鎴栬呮祻瑙堝櫒锛屾悳绱"Onthelook"銆2銆佹壘鍒癘nthelook搴旂敤锛岀偣鍑讳笅杞/瀹夎銆3銆佺瓑寰呬笅杞藉畬鎴愬悗锛岀偣鍑绘墦寮Onthelook搴旂敤銆4銆佸湪Onthelook搴旂敤涓悳绱㈡兂瑕佽鐪嬬殑鐢靛奖鎴栫數瑙嗗墽璧勬簮锛屽嵆鍙揩閫熸壘鍒拌祫婧愬苟鍦ㄧ嚎瑙傜湅銆
  • The Application of鏄粈涔堟剰鎬
    绛旓細The Application of 鎰忔 搴旂敤 渚嬪彞:鍙岃鑻辫1.The application of spurious economic theorems results in undesired consequences.搴旂敤璋鐨勭粡娴庡鍘熺悊浼氬鑷撮潪鎵鏈熷緟鐨勫悗鏋溿2.The application of fluorescein can help the clinician see the defect ( shown).浣跨敤鑽у厜绱犲彲鍗忓姪涓村簥鍖荤敓鍙戠幇瑙掕啘缂烘崯锛堝鍥...
  • a鍜the鐨灏忛棶棰
    绛旓細杩欓亾棰橀夋嫨A锛岀涓涓┖锛屽悗闈"excited tourists "鏄鏁板舰寮忥紝涓旀槸鐗规寚锛屼笉鑳界敤a锛岃搴旂敤the锛涚浜屼釜绌猴紝姝ゅ璇寸埇榛勫北鏄竴浠跺緢鏈変箰瓒g殑浜嬫儏锛屾鏃剁殑delight鏄釜鍙暟鍚嶈瘝锛岃〃绀衡滄湁涔愯叮鐨勪簨鎯呪濓紝鏁呯敤a淇グ銆傛墍浠ョ瓟妗堟槸A銆傚笇鏈涜兘甯埌浣狅紒锛氾級
  • 甯繖鎶婁笅闈㈢殑鑻辫缈昏瘧!闈炲父鎰熻阿!
    绛旓細Unhand渚嬪鍙戠敓鍦ㄤ綘鐨勫簲鐢绋嬪簭銆傚鏋滄偍鍗曞嚮continue.the搴旂敤绋嬪簭灏嗗拷鐣ヨ繖涓敊璇苟璇曞浘缁х画銆傚鏋滀綘鐐瑰嚮鈥滈鍑衡濓紝搴旂敤绋嬪簭灏嗙珛鍗冲叧闂傛绱㈢被宸ュ巶鐨勭粍浠剁被浠g爜}8fciee75-72b3-4a23-b987-2bic4c8a611b}澶辫触鐨勫師鍥犲涓嬶細80040154銆傚弬鑰冭祫鏂欙細鑻辫鍦ㄧ嚎缈昏瘧 ...
  • theis鍏紡鐨勫簲鐢鏈夋病鏈夊眬闄愭
    绛旓細theis鍏紡鐨勫簲鐢鏈夊眬闄愭с倀heis鍏紡鐨勫簲鐢ㄦ槸璺熺浉鍏虫暟鎹湁鍏崇殑锛屽綋鐩稿叧鏉′欢涓嶆弧瓒崇殑鏃跺欏氨浼氫骇鐢熷眬闄愩
  • 扩展阅读:thel最新版本安卓版下载 ... theconcert app官网 ... theghost官方正版下载 ... thel苹果版 ... theghost官网入口 ... 加the和不加the的口诀 ... the ghost官网下载地址 ... telegraph官网入口苹果 ... the l苹果手机怎样下载 ...

    本站交流只代表网友个人观点,与本站立场无关
    欢迎反馈与建议,请联系电邮
    2024© 车视网