473,395 Members | 1,670 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

about dll problem,thank:)


about dll problem,thank:)
i have two file
a static dll file ,another static Exe file
i think Exe call List Class in dll,but..........
************************static dll******************************
<<<<<List.h>>>>>>>>
#pragma once
class AFX_EXT_CLASS List:public CListCtrl
{
public:
__declspec(dllexport) List();
__declspec(dllexport) ~List();
__declspec(dllexport) void CMCreate(CWnd *pWnd);
DECLARE_MESSAGE_MAP();
public:
__declspec(dllexport) afx_msg void OnNMClick(NMHDR *pNMHDR, LRESULT
*pResult);
};

<<<<<<List.Cpp>>>>>>>>>
#include "Stdafx.h"
#include "List.h"
List::List()
{}

List::~List()
{}

BEGIN_MESSAGE_MAP(List,CListCtrl)
ON_NOTIFY_REFLECT(NM_CLICK, &List::OnNMClick)
END_MESSAGE_MAP()
void List::OnNMClick(NMHDR *pNMHDR, LRESULT *pResult)
{
AfxMessageBox(_T("OK"));
*pResult = 0;
}

void List::CMCreate(CWnd *pWnd)
{
this->Create(WS_VISIBLE | WS_BORDER|SS_NOTIFY | WS_TABSTOP |
WS_CHILD | LVS_ALIGNTOP | LVS_REPORT | LVS_SINGLESEL |
LVS_SHOWSELALWAYS | LVS_OWNERDRAWFIXED, CRect(20, 20, 800, 200), pWnd,
123);
}

*************************Exe********************** **
List *m_pList;
m_pList=new List();
m_pList->CMCreate(this);
why ,i Click m_pList not show "ok"???
my english is not good,sorry :(
thank you:)

--
rxgmoral
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Oct 31 '06 #1
0 689

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jürgen Heyn | last post by:
Good afternoon, I am handing a string as a parameter pImage = "Images/Available.jpg" If this image is NOT available I would like to load Images/NoImage.jpg. Unfortunately the following code...
2
by: Hardy | last post by:
HP UX 11i, db2 v8.2 kernel parameters of HPUX such as shmmax had been changed to MEM*0.9, about 3.6g. when I create a partitioned db(4 partitions)on the server, warning raised saying that not...
2
by: CDWaddell | last post by:
I have the following cod private void btnUpdate_Click(object sender, System.EventArgs e TextBox tbMembers = new TextBox() tbMembers = (TextBox) dlClubs.FindControl("tbMembers") string...
0
by: Miguel Dias Moura | last post by:
Hello, i am just finishing a web site in ASP.net / VB using Dreamweaver MX 2004 and in all the pages i use the date/time format as follows: Date: DD-MM-YYYY Time: HH-MM (24 hours) Anyway,...
7
by: Shapper | last post by:
Hello, I have an ASP:ImageButton where I want to call a function and pass a string: OnClick="Change_Photo("John")" I am having problems with "". I tried
3
by: blogger | last post by:
i try use this script but keep getting Char: 6 Error: Expected ';' What can i do? <SCRIPT type="text/javascript"> /*Script distributed by Hypergurl.com Visit ...
1
by: shapper | last post by:
Hello, I have redefined the anchor styles in my page as follows: a, a:link {color: #B33100; text-decoration: underline} a:visited {color: #D53A00} a:hover, a:active {background-color:...
6
by: SuperDuper | last post by:
Just a few quick questions. 1) How would I count the length of words in 5 certain strings. SomeString.s1, SomeString.s2, etc.. 2) How to compute the average word length? 3) How to compute...
2
by: shapper | last post by:
Hello, On a custom Web.Config section I keep having the same error. This is driving me crazy!!! I keep having the following error: Unrecognized attribute 'Type'. Note that attribute names are...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.