|登录 |注册

查看: 2701|回复: 18
打印 上一主题 下一主题

【疑问】关于DarkGDK

[复制链接]
goodhermit95
2009-1-25 12:03 AM
这个东西应该听过吧?为什么我看他们的tutorial开了新project可以直接build,
他说darkGDK.h missing,我就
#include "darkGDK.h"

可是darkGDK.h里面又include其它东西,我全部Copy完了,Compiler还是说没有……(DarkSDKCore.h)
Super-Tomato
2009-1-25 04:15 AM
原帖由 goodhermit95 于 2009-1-25 12:03 AM 发表
这个东西应该听过吧?为什么我看他们的tutorial开了新project可以直接build,
他说darkGDK.h missing,我就
#include "darkGDK.h"

可是darkGDK.h里面又include其它东西,我全部Copy完了,Compiler还是说没有 ...


你是不是沒有设定好所需要的 include 和 lib 资料夹

回复 #2 Super-Tomato 的帖子

goodhermit95
2009-1-25 09:25 AM
他是一个templete,里面有include DARKGDK.h
darkgdk.h 里面又Include DarkSDKCore.h ,lib 我Copy到完了,就是没有
Super-Tomato
2009-1-25 10:01 AM
原帖由 goodhermit95 于 2009-1-25 09:25 AM 发表
他是一个templete,里面有include DARKGDK.h
darkgdk.h 里面又Include DarkSDKCore.h ,lib 我Copy到完了,就是没有


不明白你所說的 Copy 是怎麼做, 但要編譯 C 就必須設定好編譯環境, 你還是再看看 darkgdk 的說明手冊

回复 #4 Super-Tomato 的帖子

goodhermit95
2009-1-25 10:07 AM
= =
我看他们说明手册都不用copy来copy去的,直接debug
(教你开新project然后debug的手册)

就是copy进去了output一直说找不到那个file

编辑:所谓的copy就是把darkGDK.h 之类的东西copy进去啊
Super-Tomato
2009-1-25 11:11 AM
原帖由 goodhermit95 于 2009-1-25 10:07 AM 发表
= =
我看他们说明手册都不用copy来copy去的,直接debug
(教你开新project然后debug的手册)

就是copy进去了output一直说找不到那个file

编辑:所谓的copy就是把darkGDK.h 之类的东西copy进去啊



我沒說過 copy, 我是說你的 Environment Settings 問題, 沒有正確指向所需的 DirectX 和 DarkGDK 庫

回复 #6 Super-Tomato 的帖子

goodhermit95
2009-1-25 11:40 AM
问题是为什么他们开一个新project可以直接debug我就会有error?
我找了他们都没有这样的问题
goodhermit95
2009-1-25 11:42 AM
怪了,我看他们的教学,显示另外一个form是
比如第二个form是second.h
#include "second.h"

他又error,说没有second.h

回复 #6 Super-Tomato 的帖子

goodhermit95
2009-1-25 11:59 AM
找到了,谢谢,我去试试看
http://www.daniweb.com/forums/thread103648.html
goodhermit95
2009-1-25 12:28 PM
快疯了

这个事第二个Form的Code

  1. #pragma once
  2. using namespace System;
  3. using namespace System::ComponentModel;
  4. using namespace System::Collections;
  5. using namespace System::Windows::Forms;
  6. using namespace System::Data;
  7. using namespace System::Drawing;



  8. namespace My3DSchoolUI {

  9.         /// <summary>
  10.         /// Summary for SysSettings
  11.         ///
  12.         /// WARNING: If you change the name of this class, you will need to change the
  13.         ///          'Resource File Name' property for the managed resource compiler tool
  14.         ///          associated with all .resx files this class depends on.  Otherwise,
  15.         ///          the designers will not be able to interact properly with localized
  16.         ///          resources associated with this form.
  17.         /// </summary>
  18.         public ref class SysSettings : public System::Windows::Forms::Form
  19. .................
  20. #pragma endregion
  21.         };
  22. }

复制代码


这个是第一个Form的

  1.                 }
  2. #pragma endregion
  3. #include "SysSettings.h"  //加了这里后,SysSettings的NameSpace只要有就会error
  4.         private: System::Void button4_Click(System::Object^  sender, System::EventArgs^  e) {
  5.                                  this->Close();
  6.                          }

  7. private: System::Void button2_Click(System::Object^  sender, System::EventArgs^  e) {
  8.                  }
  9. };
  10. }

复制代码


现在我弄这个Include没有问题,有问题的是DarkGDK,下一个贴贴出来
您需要登录后才可以回帖 登录 | 注册

JBTALKS.CC |联系我们 |隐私政策 |Share

GMT+8, 2025-10-28 03:49 AM , Processed in 0.108910 second(s), 24 queries .

Powered by Discuz! X2.5 © 2001-2012 Comsenz Inc.

本论坛言论纯属发表者个人意见,与本论坛立场无关
Copyright © 2003-2012 JBTALKS.CC All Rights Reserved

Dedicated Server powered by iCore Technology Sdn. Bhd.

合作联盟网站:
JBTALKS 马来西亚中文论坛 | JBTALKS我的空间 | ICORE TECHNOLOGY SDN. BHD.
回顶部