Click here to Skip to main content
16,005,149 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: string arrays in c++ Pin
BlackDice24-Mar-04 11:21
BlackDice24-Mar-04 11:21 
GeneralRe: string arrays in c++ Pin
mrspam24-Mar-04 12:13
mrspam24-Mar-04 12:13 
GeneralRe: string arrays in c++ Pin
Curi0us_George24-Mar-04 19:03
Curi0us_George24-Mar-04 19:03 
GeneralRe: string arrays in c++ Pin
Paul Ranson25-Mar-04 1:53
Paul Ranson25-Mar-04 1:53 
GeneralCalling DLL from Delphi Pin
BlackDice24-Mar-04 10:51
BlackDice24-Mar-04 10:51 
GeneralRe: Calling DLL from Delphi Pin
Snyp24-Mar-04 14:11
Snyp24-Mar-04 14:11 
GeneralRe: Calling DLL from Delphi Pin
Prakash Nadar24-Mar-04 15:16
Prakash Nadar24-Mar-04 15:16 
Generalerror LNK2001 with static and global data in a Win32 C++ Dll Pin
Hashim Saleem24-Mar-04 10:49
Hashim Saleem24-Mar-04 10:49 
I am facing a head scratching problem in building a Win32 Dll. I have some C++ classes in the Dll and I want to access these classes in a C++ client. These classes contain some static data and also Dll has some global data. I have successfully build the DLL, but when I use this DLL in client, I get Linker error "LNK2001: unresolved external symbol" for static as well as global data.

I viewed the exports of dll with dumpbin utility and dumpbin shows this data exported but linker is not finding it in the dll. I read somewhere that there is a SECTION statement in .DEF file which deals with the defualt scope of global and static data in a DLL. Can this be used to rectify this problem and if yes then how? As a note, I am not using .DEF file to build the dll, I am using __declspec(dllexport) keyword to export classes and global data from dll.

Please help me, I am scratching my head at the moment.
GeneralRe: error LNK2001 with static and global data in a Win32 C++ Dll Pin
BlackDice24-Mar-04 10:55
BlackDice24-Mar-04 10:55 
GeneralRe: error LNK2001 with static and global data in a Win32 C++ Dll Pin
Hashim Saleem24-Mar-04 11:02
Hashim Saleem24-Mar-04 11:02 
GeneralRe: error LNK2001 with static and global data in a Win32 C++ Dll Pin
BlackDice24-Mar-04 11:18
BlackDice24-Mar-04 11:18 
GeneralInvoking Outlook Exp. from VC++ Application. Pin
Pankaj Bhalla24-Mar-04 10:46
Pankaj Bhalla24-Mar-04 10:46 
Generallarge font vs. small font woes ... Pin
Maximilien24-Mar-04 10:15
Maximilien24-Mar-04 10:15 
GeneralRe: large font vs. small font woes ... Pin
Todd Smith25-Mar-04 13:28
Todd Smith25-Mar-04 13:28 
Questiondoc/view app with treeview on the left, how? Pin
lordgreg24-Mar-04 9:57
lordgreg24-Mar-04 9:57 
AnswerRe: doc/view app with treeview on the left, how? Pin
Prakash Nadar24-Mar-04 15:13
Prakash Nadar24-Mar-04 15:13 
GeneralRe: doc/view app with treeview on the left, how? Pin
axid3j1al24-Mar-04 19:24
axid3j1al24-Mar-04 19:24 
GeneralRe: doc/view app with treeview on the left, how? Pin
Prakash Nadar24-Mar-04 19:50
Prakash Nadar24-Mar-04 19:50 
GeneralRe: doc/view app with treeview on the left, how? Pin
axid3j1al24-Mar-04 20:11
axid3j1al24-Mar-04 20:11 
GeneralRe: doc/view app with treeview on the left, how? Pin
Prakash Nadar24-Mar-04 21:44
Prakash Nadar24-Mar-04 21:44 
AnswerRe: doc/view app with treeview on the left, how? Pin
axid3j1al25-Mar-04 10:59
axid3j1al25-Mar-04 10:59 
GeneralEMF editor / EMF SDK Pin
al_in_the_city24-Mar-04 9:09
al_in_the_city24-Mar-04 9:09 
GeneralRe: EMF editor / EMF SDK Pin
0v3rloader24-Mar-04 9:16
0v3rloader24-Mar-04 9:16 
GeneralRe: EMF editor / EMF SDK Pin
al_in_the_city24-Mar-04 9:29
al_in_the_city24-Mar-04 9:29 
GeneralRe: EMF editor / EMF SDK Pin
0v3rloader24-Mar-04 9:40
0v3rloader24-Mar-04 9:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.