473,394 Members | 1,766 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,394 software developers and data experts.

dll-interface problem

GT
Can anyone help me with this, or perhaps point me to a better newsgroup? I
have a DLL created in Visual C++ v5 and I am trying to use it in a new
Visual Studio .net 2002 application (C++) in the same way as I called it in
my Visual Studio V5 (C+) application. I get the following warnings hundreds
of times. Now, they are only warnings and can be ignored, but the app just
won't run past a DLL class or function call!.

d:\Tassc\Flamingo\Model\ScopeBuffer.h(111): warning C4251:
'ScopeBuffer::m_iAbstraction' : class 'CUIntArray' needs to have
dll-interface to be used by clients of class 'ScopeBuffer'

d:\Tassc\Flamingo\Model\TEDaoTableClass.h(85): warning C4251:
'TEDaoTableClass::m_recordset' : class 'CDaoRecordset' needs to have
dll-interface to be used by clients of class 'TEDaoTableClass'

I did get the same error regarding the CString class, but a web search told
me to add these 2 lines to my stdafx.h and it has fixed the problem. Is
there more lines I can add to my stdafx to fix the CUIntArray class problem
and the CDaoRecordSet problems.

template class __declspec(dllimport) CStringT<TCHAR, StrTraitMFC<TCHAR,
ChTraitsCRT<TCHAR >;

template class __declspec(dllimport) CSimpleStringT<TCHAR>;

Have the CUIntArray class and the CDaoDatabase classes gone the same way -
template classes? If so, what do I have to do?!?

Thanks in advance,
GT
Aug 25 '06 #1
1 2666
GT <Co***************@hotmail.comwrote:
Can anyone help me with this, or perhaps point me to a better newsgroup? I
have a DLL created in Visual C++ v5 and I am trying to use it in a new
Visual Studio .net 2002 application (C++) in the same way as I called it in
my Visual Studio V5 (C+) application.
The FAQ has a list of some newsgroups you could try:
http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

Try one of the comp.os.ms-windows.programmer.* newsgroups, or
microsoft.public.dotnet.languages.vc on msnews.microsoft.com.

--
Marcus Kwok
Replace 'invalid' with 'net' to reply
Aug 25 '06 #2

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

Similar topics

1
by: Stefan | last post by:
Hi, I just downloaded PHP-4.3.3 for win32 and got the extensions folder and dropped it intot he root of the PHP directory and set it's path in the PHP.ini: extension_dir =...
19
by: Nancy | last post by:
Hi, When I start my PC(winXP Pro), it always says: Unknown(): Unable toload dynamic library './php_msql.dll' - The specified module could not be found. Then my Apache servre starts, load php...
9
by: Woof-Woof | last post by:
Why doesn't my mouse wheel work in the code windows in VB5 under XP? I can scroll the properties and project windows using the wheel, but not the actual code windows (XP). Everything works fine...
4
by: jr | last post by:
I am working in VC++ so this may be microsoft specific though I don't think so. Excuse me if it is. Assuming it isn't, can someone generally explain the purpose of having both - is it purely a...
11
by: Vijay Chegu | last post by:
I have built a 64bit ATL COM dll. When i register the dll on IA64 windows Enterprise server 2003, i get following error. DllRegisterServer in mydll.dll failed. Return code was : 0x80020009 ...
0
by: Gary Hughes | last post by:
I have an installer project for a COM dll on my solution, when I build the installer I get a warning - see below. The properties are set so the the dll should be registered upon installation...
4
by: james margey | last post by:
Hi to all, I have spent 3 days at this error and i have two days to go for a deadline, and i am about to go off my nut, the reason being: Microsoft dont seem to be able to provide a solution, I...
22
by: Brett Romero | last post by:
If my UI app uses three DLLs and two of those DLLs reference something named utilities.dll, does the UI app load utilities.dll twice or does the compiler recognize what is going on and load...
0
by: Michael.Suarez | last post by:
So we develop and maintain several applications used by several people in the same company, on the same intranet. There are several applications written in VB6, but going forward all of the new...
13
by: Javad | last post by:
Hello I know that I should get the information of windows internet connections by using "rasapi32.dll" library, and I also have some sample codes, but I can't make them work. My exact need is to...
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: 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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.