473,399 Members | 2,159 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,399 software developers and data experts.

Debug (DLL MFC) -> Debug (Static MFC)

hi,
i've done an application that it have to link dynamically some my dll
(plugin). In debug mode (Shared MFC DLL) i haven't any problem. If i
try to compile the project in debug mode and link static MFC i've some
problem when i try to call some plugin function. The plugin dll is
compiled and linked at same mode (debug and Static MFC) of the Main
Application. In the main application i load the plugin with this
method:

HINSTANCE _hDLL=LoadLibrary(PathNameDLL);
loader=(LoaderType)GetProcAddress(_hDLL,"LoadEffec t");
eff=loader(InterfacePlug,this,Parent->GetParent());
'eff' is a class and loader(...) create an instance of class. When i
try to call this funcion of class:
eff->SaveSetUp(tmp);

i've an error. the function SaveSetUp(...) write some info in file
tmp:

void __stdcall FileWrite::SaveSetUp(FILE *SetUp) // Salva il SetUp!
{
if (SetUp!=0)
{
int lenfile=strlen(FileName2Write);

fwrite(&lenfile,sizeof(int),1,SetUp); // The error fire here!!!!!
fwrite(FileName2Write,sizeof(char),1024,SetUp);

}
}
Any idea what is the problem?? In the debug mode (Shared MFC DLL) i
haven't any problem... To compile the main application in debug mode
(Static Link MFC DLL) to correct linking i use this microsoft
indication:

http://support.microsoft.com/default...;en-us;q148652

Thanks in advance.
PS: sorry for my bad english.
Jul 23 '05 #1
0 2827

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 =...
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...
22
by: Jim Hubbard | last post by:
I am reposting a portion of a thread that I am involved in under a new topic because it seems that there are still people that believe the whole "DLL Hell" myth. I hope I can shed some light on...
14
by: Neil Ginsberg | last post by:
I am using VBA/Access to send SMTP mail using CDO. I set a reference to "Microsoft CDO for Windows 2000 Library" (cdosys.dll). Everything works fine, both on my PC and on another PC. However, on...
0
by: Philip | last post by:
I have developed a MC++ business component (named PWSNetBridge.dll) which utilizes an exported class resident within a separate native DLL (named PWSWinBridge.dll). This exported class is made...
6
by: ian | last post by:
Hi All I have a DLL (nahd.dll) that has been supplied to me will a PBX phone system. According to the documentation it is to allow developers to write there own applications to monitor the...
5
by: Julie | last post by:
I'm currently working in a mixed mode project where the exe is C#, there is a managed C++ (DLL) assembly, that in part, includes some calls into a native (unmamanged) DLL. I can build/link/run...
17
by: Bill Grigg | last post by:
I have been successfully calling DLL's using VC++ 6.0 and also using VC++7.1 (.NET). I only mention this because I have never felt comfortable with the process, but nonetheless it did work....
4
by: jigi via DotNetMonster.com | last post by:
for those who followed my woes yesterday, http://www.dotnetmonster.com/Uwe/Forum.aspx/dotnet-vc/6571/why-do-i-have-msvcr71-dll-and-msvcr71d-dll-in-my-release-build Now i ran one of the...
0
by: UKPostie | last post by:
I am writing a solution using C# under ASP.NET that must make use of a 3rd party DLL (written in C I believe). This DLL handles messaging between my location and a third party location. I have...
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: 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
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.