惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
罗磊的独立博客
B
Blog RSS Feed
C
Check Point Blog
Project Zero
Project Zero
D
Docker
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
P
Palo Alto Networks Blog
L
LINUX DO - 热门话题
Scott Helme
Scott Helme
NISL@THU
NISL@THU
L
LangChain Blog
C
Cisco Blogs
Engineering at Meta
Engineering at Meta
Know Your Adversary
Know Your Adversary
雷峰网
雷峰网
S
Schneier on Security
MyScale Blog
MyScale Blog
博客园_首页
博客园 - 三生石上(FineUI控件)
C
CERT Recently Published Vulnerability Notes
美团技术团队
V
Visual Studio Blog
T
The Exploit Database - CXSecurity.com
Recent Announcements
Recent Announcements
G
GRAHAM CLULEY
T
Tor Project blog
V
Vulnerabilities – Threatpost
U
Unit 42
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Stack Overflow Blog
Stack Overflow Blog
P
Privacy International News Feed
Security Latest
Security Latest
W
WeLiveSecurity
aimingoo的专栏
aimingoo的专栏
Hugging Face - Blog
Hugging Face - Blog
Google Online Security Blog
Google Online Security Blog
V2EX - 技术
V2EX - 技术
The Last Watchdog
The Last Watchdog
博客园 - Franky
T
Tenable Blog
云风的 BLOG
云风的 BLOG
D
DataBreaches.Net
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Latest news
Latest news
N
News and Events Feed by Topic
Cloudbric
Cloudbric
Schneier on Security
Schneier on Security
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Blog — PlanetScale
Blog — PlanetScale

博客园 - abraham

I want learn the programming web by C#.Who can give a simple step by step tutorial,please? Today begin new life of blog. I want learn the programming web by C#.Who can give a simple step by step tutorial,please? Today begin new life of blog. create dll formt lib with cpp funcs or c just funcs by hand. pub class into dll in dos by hand step by step. How To Read a Big Txt File into CEdit and write it as save!. Create a Dlg's Thread and use it,this can use dlg handle. Create a Thread and Use it. Here is a reason why can not log a SQL CString How to Kill Blanks in a CString,but how to kill Chinese Blanks i can not solve. How to get a Chinese character's PinYin automaticly? PE format is very important,so learn it. create a dll by hand. static/register/atuo/extern/volatile/const STL is very important,so we learn. print a bmp 2 Create COM step by step 2. Create com step by step.1
put class into dll by using vc6.0
abraham · 2005-07-05 · via 博客园 - abraham

put class into dll is one of the questions that make me trouble utill one day
when I see <com inside>'s first chapter, I get the result.
and tried in dos cmd  and also VC6.
A:VC6
1:add a class like
student.h
class _declspec(dllimport) Student 
{
public:
 void setName(char* nameC);
 char name[10];
 char * getName();
 Student();
 virtual ~Student();

};

//
#include "Student.h"

Student::Student()
{

}

Student::~Student()
{

}

char* Student::getName()
{
 return name;

}

void Student::setName(char* nameC)
{
    strcpy(name,nameC);
}
2:oh,this is in a app of dll,not exe app project
and then just rebuild can create a dll,its contains
this class definition.(can read in *.lib by text).
3:use it.
write another head file:

class _declspec(dllexport) Student 
{
public:
 void setName(char* name);
 char name[10];
 char * getName();
 Student();
 virtual ~Student();

};
4:include this header in app use it and
set Project->Setup->Link ->L as firstDll.lib firstDllLib.lib
5:run and link ok can when in onDraw()
       Student s;
 s.setName("o00o");
 char* p;
 p=s.getName();
 CString temp;
 temp.Format("%s",p);
 pDC->TextOut(23,23,temp);
//----------------------------end of vc6.0---------------//