473,729 Members | 2,083 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Linking problem when porting C++ to .Net

I am currently trying to port a small open source scientfic library written
in C++ to .Net. The code (including the VS solution) could be found at
http://www.vermorel.com/opensource/selfscaling.zip

My problem is that when I try to compile the library I got a list of linking
error messages. I am not a specialist of porting C++ code to .Net. Does
anyone has an idea on how to make this code compile in .Net ?

Thanks,
Joannes Vermorel

==== Build Output Error Message ====

Compiling...
Stdafx.cpp
Compiling...
selfscaling.cpp
ModalHistogramI terator.cpp
ModalHistogram. cpp
ListHistogramIt erator.cpp
histogram-utils.cpp
histogram-utils.cpp(111) : warning C4018: '>' : signed/unsigned mismatch
histogram-utils.cpp(112) : warning C4018: '<' : signed/unsigned mismatch
histogram-utils.cpp(188) : warning C4018: '<' : signed/unsigned mismatch
histogram-utils.cpp(191) : warning C4018: '<' : signed/unsigned mismatch
histogram-user.cpp
EquiProbableHis togramIterator. cpp
EquiProbableHis togram.cpp
EquiErrorHistog ramIterator.cpp
EquiErrorHistog ram.cpp
AssemblyInfo.cp p
ArrayHistogramI terator.cpp
Generating Code...
Linking...
ModalHistogram. obj : error LNK2001: unresolved external symbol "void __cdecl
operator delete(void *)" (??3@$$FYAXPAX@ Z)
ModalHistogramI terator.obj : error LNK2019: unresolved external symbol "void
__cdecl operator delete(void *)" (??3@$$FYAXPAX@ Z) referenced in function
"class HistogramIterat or * __cdecl newModeIterator (double *,struct
histogramMode_ *,double,double ,int)"
(?newModeIterat or@@YAPAVHistog ramIterator@@PA NPAUhistogramMo de_@@NNH@Z)
EquiProbableHis togramIterator. obj : error LNK2001: unresolved external
symbol "void __cdecl operator delete(void *)" (??3@$$FYAXPAX@ Z)
histogram-user.obj : error LNK2001: unresolved external symbol "void __cdecl
operator delete(void *)" (??3@$$FYAXPAX@ Z)
histogram-utils.obj : error LNK2019: unresolved external symbol "void
__cdecl operator delete(void *)" (??3@$$FYAXPAX@ Z) referenced in function
"double __cdecl rfloor(double)" (?rfloor@@YANN@ Z)
ListHistogramIt erator.obj : error LNK2001: unresolved external symbol "void
__cdecl operator delete(void *)" (??3@$$FYAXPAX@ Z)
ArrayHistogramI terator.obj : error LNK2001: unresolved external symbol "void
__cdecl operator delete(void *)" (??3@$$FYAXPAX@ Z)
EquiErrorHistog ram.obj : error LNK2019: unresolved external symbol "void
__cdecl operator delete(void *)" (??3@$$FYAXPAX@ Z) referenced in function
"public: __thiscall EquiErrorHistog ram::EquiErrorH istogram(int)"
(??0EquiErrorHi stogram@@$$FQAE @H@Z)
EquiErrorHistog ramIterator.obj : error LNK2019: unresolved external symbol
"void __cdecl operator delete(void *)" (??3@$$FYAXPAX@ Z) referenced in
function "public: __thiscall
EquiErrorHistog ramIterator::Eq uiErrorHistogra mIterator(int,i nt,int,int
*,double *,int *)" (??0EquiErrorHi stogramIterator @@QAE@HHHPAHPAN 0@Z)
EquiProbableHis togram.obj : error LNK2001: unresolved external symbol "void
__cdecl operator delete(void *)" (??3@$$FYAXPAX@ Z)
EquiProbableHis togramIterator. obj : error LNK2001: unresolved external
symbol "void __stdcall `eh vector destructor iterator'(void *,unsigned
int,int,void (__thiscall*)(v oid *))" (??_M@$$FYGXPAX IHP6EX0@Z@Z)
ListHistogramIt erator.obj : error LNK2001: unresolved external symbol "void
__stdcall `eh vector destructor iterator'(void *,unsigned int,int,void
(__thiscall*)(v oid *))" (??_M@$$FYGXPAX IHP6EX0@Z@Z)
ModalHistogram. obj : error LNK2001: unresolved external symbol "void
__stdcall `eh vector destructor iterator'(void *,unsigned int,int,void
(__thiscall*)(v oid *))" (??_M@$$FYGXPAX IHP6EX0@Z@Z)
ModalHistogramI terator.obj : error LNK2001: unresolved external symbol "void
__stdcall `eh vector destructor iterator'(void *,unsigned int,int,void
(__thiscall*)(v oid *))" (??_M@$$FYGXPAX IHP6EX0@Z@Z)
ArrayHistogramI terator.obj : error LNK2001: unresolved external symbol "void
__stdcall `eh vector destructor iterator'(void *,unsigned int,int,void
(__thiscall*)(v oid *))" (??_M@$$FYGXPAX IHP6EX0@Z@Z)
EquiErrorHistog ram.obj : error LNK2001: unresolved external symbol "void
__stdcall `eh vector destructor iterator'(void *,unsigned int,int,void
(__thiscall*)(v oid *))" (??_M@$$FYGXPAX IHP6EX0@Z@Z)
EquiErrorHistog ramIterator.obj : error LNK2001: unresolved external symbol
"void __stdcall `eh vector destructor iterator'(void *,unsigned int,int,void
(__thiscall*)(v oid *))" (??_M@$$FYGXPAX IHP6EX0@Z@Z)
EquiProbableHis togram.obj : error LNK2001: unresolved external symbol "void
__stdcall `eh vector destructor iterator'(void *,unsigned int,int,void
(__thiscall*)(v oid *))" (??_M@$$FYGXPAX IHP6EX0@Z@Z)
ModalHistogram. obj : error LNK2019: unresolved external symbol __purecall
referenced in function "public: __thiscall
ModalHistogram: :ModalHistogram (int)" (??0ModalHistog ram@@QAE@H@Z)
ModalHistogramI terator.obj : error LNK2001: unresolved external symbol
__purecall
ArrayHistogramI terator.obj : error LNK2001: unresolved external symbol
__purecall
EquiProbableHis togram.obj : error LNK2001: unresolved external symbol
__purecall
EquiProbableHis togramIterator. obj : error LNK2001: unresolved external
symbol __purecall
ListHistogramIt erator.obj : error LNK2019: unresolved external symbol
__purecall referenced in function "public: virtual void * __thiscall
ListHistogramIt erator::`vector deleting destructor'(uns igned int)"
(??_EListHistog ramIterator@@UA EPAXI@Z)
ModalHistogram. obj : error LNK2001: unresolved external symbol "void *
__cdecl operator new(unsigned int)" (??2@$$FYAPAXI@ Z)
ModalHistogramI terator.obj : error LNK2001: unresolved external symbol "void
* __cdecl operator new(unsigned int)" (??2@$$FYAPAXI@ Z)
EquiErrorHistog ram.obj : error LNK2001: unresolved external symbol "void *
__cdecl operator new(unsigned int)" (??2@$$FYAPAXI@ Z)
EquiProbableHis togram.obj : error LNK2001: unresolved external symbol "void
* __cdecl operator new(unsigned int)" (??2@$$FYAPAXI@ Z)
histogram-utils.obj : error LNK2001: unresolved external symbol "void *
__cdecl operator new(unsigned int)" (??2@$$FYAPAXI@ Z)
ListHistogramIt erator.obj : error LNK2001: unresolved external symbol "void
* __cdecl operator new(unsigned int)" (??2@$$FYAPAXI@ Z)
EquiErrorHistog ram.obj : error LNK2001: unresolved external symbol "void
__cdecl __CxxCallUnwind Dtor(void (__thiscall*)(v oid *),void *)"
(?__CxxCallUnwi ndDtor@@$$J0YAX P6EXPAX@Z0@Z)
EquiErrorHistog ramIterator.obj : error LNK2001: unresolved external symbol
"void __cdecl __CxxCallUnwind Dtor(void (__thiscall*)(v oid *),void *)"
(?__CxxCallUnwi ndDtor@@$$J0YAX P6EXPAX@Z0@Z)
EquiErrorHistog ram.obj : error LNK2001: unresolved external symbol "double
__cdecl fabs(double)" (?fabs@@$$J0YAN N@Z)
EquiProbableHis togram.obj : error LNK2001: unresolved external symbol
"double __cdecl fabs(double)" (?fabs@@$$J0YAN N@Z)
histogram-utils.obj : error LNK2001: unresolved external symbol "double
__cdecl fabs(double)" (?fabs@@$$J0YAN N@Z)
ModalHistogram. obj : error LNK2001: unresolved external symbol "double
__cdecl fabs(double)" (?fabs@@$$J0YAN N@Z)
EquiProbableHis togram.obj : error LNK2001: unresolved external symbol "int *
__cdecl _errno(void)" (?_errno@@$$J0Y APAHXZ)
histogram-user.obj : error LNK2001: unresolved external symbol "int __cdecl
fputc(int,struc t _iobuf *)" (?fputc@@$$J0YA HHPAU_iobuf@@@Z )
histogram-utils.obj : error LNK2001: unresolved external symbol "double
__cdecl floor(double)" (?floor@@$$J0YA NN@Z)
ModalHistogram. obj : error LNK2019: unresolved external symbol "double
__cdecl floor(double)" (?floor@@$$J0YA NN@Z) referenced in function "void
__cdecl initModeDescrip tor(struct histogramMode_ *)"
(?initModeDescr iptor@@YAXPAUhi stogramMode_@@@ Z)
histogram-utils.obj : error LNK2001: unresolved external symbol "double
__cdecl fmod(double,dou ble)" (?fmod@@$$J0YAN NN@Z)
ModalHistogram. obj : error LNK2019: unresolved external symbol "double
__cdecl fmod(double,dou ble)" (?fmod@@$$J0YAN NN@Z) referenced in function
"public: __thiscall ModalHistogram: :ModalHistogram (int)"
(??0ModalHistog ram@@$$FQAE@H@Z )
histogram-utils.obj : error LNK2001: unresolved external symbol "double
__cdecl ceil(double)" (?ceil@@$$J0YAN N@Z)
histogram-utils.obj : error LNK2001: unresolved external symbol "double
__cdecl sqrt(double)" (?sqrt@@$$J0YAN N@Z)
ModalHistogram. obj : error LNK2019: unresolved external symbol "double
__cdecl sqrt(double)" (?sqrt@@$$J0YAN N@Z) referenced in function "public:
virtual void __thiscall ModalHistogram: :newDataPoint(d ouble)"
(?newDataPoint@ ModalHistogram@ @$$FUAEXN@Z)
histogram-utils.obj : error LNK2001: unresolved external symbol "int __cdecl
printf(char const *,...)" (?printf@@$$J0Y AHPBDZZ)
fatal error LNK1120: 13 unresolved externals
Nov 17 '05 #1
1 8119
I finally solved the problem by myself. The dependency "msvcrt.lib " was
missing from the project settings.

Joannes

"Joannes Vermorel" <fi*******@last name.com> wrote in message
news:uL******** *****@TK2MSFTNG P10.phx.gbl...
I am currently trying to port a small open source scientfic library written in C++ to .Net. The code (including the VS solution) could be found at
http://www.vermorel.com/opensource/selfscaling.zip

My problem is that when I try to compile the library I got a list of linking error messages. I am not a specialist of porting C++ code to .Net. Does
anyone has an idea on how to make this code compile in .Net ?

Thanks,
Joannes Vermorel

==== Build Output Error Message ====

Compiling...
Stdafx.cpp
Compiling...
selfscaling.cpp
ModalHistogramI terator.cpp
ModalHistogram. cpp
ListHistogramIt erator.cpp
histogram-utils.cpp
histogram-utils.cpp(111) : warning C4018: '>' : signed/unsigned mismatch
histogram-utils.cpp(112) : warning C4018: '<' : signed/unsigned mismatch
histogram-utils.cpp(188) : warning C4018: '<' : signed/unsigned mismatch
histogram-utils.cpp(191) : warning C4018: '<' : signed/unsigned mismatch
histogram-user.cpp
EquiProbableHis togramIterator. cpp
EquiProbableHis togram.cpp
EquiErrorHistog ramIterator.cpp
EquiErrorHistog ram.cpp
AssemblyInfo.cp p
ArrayHistogramI terator.cpp
Generating Code...
Linking...
ModalHistogram. obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@$$FYAXPAX@ Z)
ModalHistogramI terator.obj : error LNK2019: unresolved external symbol "void __cdecl operator delete(void *)" (??3@$$FYAXPAX@ Z) referenced in function
"class HistogramIterat or * __cdecl newModeIterator (double *,struct
histogramMode_ *,double,double ,int)"
(?newModeIterat or@@YAPAVHistog ramIterator@@PA NPAUhistogramMo de_@@NNH@Z)
EquiProbableHis togramIterator. obj : error LNK2001: unresolved external
symbol "void __cdecl operator delete(void *)" (??3@$$FYAXPAX@ Z)
histogram-user.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@$$FYAXPAX@ Z)
histogram-utils.obj : error LNK2019: unresolved external symbol "void
__cdecl operator delete(void *)" (??3@$$FYAXPAX@ Z) referenced in function
"double __cdecl rfloor(double)" (?rfloor@@YANN@ Z)
ListHistogramIt erator.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@$$FYAXPAX@ Z)
ArrayHistogramI terator.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@$$FYAXPAX@ Z)
EquiErrorHistog ram.obj : error LNK2019: unresolved external symbol "void
__cdecl operator delete(void *)" (??3@$$FYAXPAX@ Z) referenced in function
"public: __thiscall EquiErrorHistog ram::EquiErrorH istogram(int)"
(??0EquiErrorHi stogram@@$$FQAE @H@Z)
EquiErrorHistog ramIterator.obj : error LNK2019: unresolved external symbol
"void __cdecl operator delete(void *)" (??3@$$FYAXPAX@ Z) referenced in
function "public: __thiscall
EquiErrorHistog ramIterator::Eq uiErrorHistogra mIterator(int,i nt,int,int
*,double *,int *)" (??0EquiErrorHi stogramIterator @@QAE@HHHPAHPAN 0@Z)
EquiProbableHis togram.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@$$FYAXPAX@ Z)
EquiProbableHis togramIterator. obj : error LNK2001: unresolved external
symbol "void __stdcall `eh vector destructor iterator'(void *,unsigned
int,int,void (__thiscall*)(v oid *))" (??_M@$$FYGXPAX IHP6EX0@Z@Z)
ListHistogramIt erator.obj : error LNK2001: unresolved external symbol "void __stdcall `eh vector destructor iterator'(void *,unsigned int,int,void
(__thiscall*)(v oid *))" (??_M@$$FYGXPAX IHP6EX0@Z@Z)
ModalHistogram. obj : error LNK2001: unresolved external symbol "void
__stdcall `eh vector destructor iterator'(void *,unsigned int,int,void
(__thiscall*)(v oid *))" (??_M@$$FYGXPAX IHP6EX0@Z@Z)
ModalHistogramI terator.obj : error LNK2001: unresolved external symbol "void __stdcall `eh vector destructor iterator'(void *,unsigned int,int,void
(__thiscall*)(v oid *))" (??_M@$$FYGXPAX IHP6EX0@Z@Z)
ArrayHistogramI terator.obj : error LNK2001: unresolved external symbol "void __stdcall `eh vector destructor iterator'(void *,unsigned int,int,void
(__thiscall*)(v oid *))" (??_M@$$FYGXPAX IHP6EX0@Z@Z)
EquiErrorHistog ram.obj : error LNK2001: unresolved external symbol "void
__stdcall `eh vector destructor iterator'(void *,unsigned int,int,void
(__thiscall*)(v oid *))" (??_M@$$FYGXPAX IHP6EX0@Z@Z)
EquiErrorHistog ramIterator.obj : error LNK2001: unresolved external symbol
"void __stdcall `eh vector destructor iterator'(void *,unsigned int,int,void (__thiscall*)(v oid *))" (??_M@$$FYGXPAX IHP6EX0@Z@Z)
EquiProbableHis togram.obj : error LNK2001: unresolved external symbol "void __stdcall `eh vector destructor iterator'(void *,unsigned int,int,void
(__thiscall*)(v oid *))" (??_M@$$FYGXPAX IHP6EX0@Z@Z)
ModalHistogram. obj : error LNK2019: unresolved external symbol __purecall
referenced in function "public: __thiscall
ModalHistogram: :ModalHistogram (int)" (??0ModalHistog ram@@QAE@H@Z)
ModalHistogramI terator.obj : error LNK2001: unresolved external symbol
__purecall
ArrayHistogramI terator.obj : error LNK2001: unresolved external symbol
__purecall
EquiProbableHis togram.obj : error LNK2001: unresolved external symbol
__purecall
EquiProbableHis togramIterator. obj : error LNK2001: unresolved external
symbol __purecall
ListHistogramIt erator.obj : error LNK2019: unresolved external symbol
__purecall referenced in function "public: virtual void * __thiscall
ListHistogramIt erator::`vector deleting destructor'(uns igned int)"
(??_EListHistog ramIterator@@UA EPAXI@Z)
ModalHistogram. obj : error LNK2001: unresolved external symbol "void *
__cdecl operator new(unsigned int)" (??2@$$FYAPAXI@ Z)
ModalHistogramI terator.obj : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int)" (??2@$$FYAPAXI@ Z)
EquiErrorHistog ram.obj : error LNK2001: unresolved external symbol "void *
__cdecl operator new(unsigned int)" (??2@$$FYAPAXI@ Z)
EquiProbableHis togram.obj : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int)" (??2@$$FYAPAXI@ Z)
histogram-utils.obj : error LNK2001: unresolved external symbol "void *
__cdecl operator new(unsigned int)" (??2@$$FYAPAXI@ Z)
ListHistogramIt erator.obj : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int)" (??2@$$FYAPAXI@ Z)
EquiErrorHistog ram.obj : error LNK2001: unresolved external symbol "void
__cdecl __CxxCallUnwind Dtor(void (__thiscall*)(v oid *),void *)"
(?__CxxCallUnwi ndDtor@@$$J0YAX P6EXPAX@Z0@Z)
EquiErrorHistog ramIterator.obj : error LNK2001: unresolved external symbol
"void __cdecl __CxxCallUnwind Dtor(void (__thiscall*)(v oid *),void *)"
(?__CxxCallUnwi ndDtor@@$$J0YAX P6EXPAX@Z0@Z)
EquiErrorHistog ram.obj : error LNK2001: unresolved external symbol "double
__cdecl fabs(double)" (?fabs@@$$J0YAN N@Z)
EquiProbableHis togram.obj : error LNK2001: unresolved external symbol
"double __cdecl fabs(double)" (?fabs@@$$J0YAN N@Z)
histogram-utils.obj : error LNK2001: unresolved external symbol "double
__cdecl fabs(double)" (?fabs@@$$J0YAN N@Z)
ModalHistogram. obj : error LNK2001: unresolved external symbol "double
__cdecl fabs(double)" (?fabs@@$$J0YAN N@Z)
EquiProbableHis togram.obj : error LNK2001: unresolved external symbol "int * __cdecl _errno(void)" (?_errno@@$$J0Y APAHXZ)
histogram-user.obj : error LNK2001: unresolved external symbol "int __cdecl fputc(int,struc t _iobuf *)" (?fputc@@$$J0YA HHPAU_iobuf@@@Z )
histogram-utils.obj : error LNK2001: unresolved external symbol "double
__cdecl floor(double)" (?floor@@$$J0YA NN@Z)
ModalHistogram. obj : error LNK2019: unresolved external symbol "double
__cdecl floor(double)" (?floor@@$$J0YA NN@Z) referenced in function "void
__cdecl initModeDescrip tor(struct histogramMode_ *)"
(?initModeDescr iptor@@YAXPAUhi stogramMode_@@@ Z)
histogram-utils.obj : error LNK2001: unresolved external symbol "double
__cdecl fmod(double,dou ble)" (?fmod@@$$J0YAN NN@Z)
ModalHistogram. obj : error LNK2019: unresolved external symbol "double
__cdecl fmod(double,dou ble)" (?fmod@@$$J0YAN NN@Z) referenced in function
"public: __thiscall ModalHistogram: :ModalHistogram (int)"
(??0ModalHistog ram@@$$FQAE@H@Z )
histogram-utils.obj : error LNK2001: unresolved external symbol "double
__cdecl ceil(double)" (?ceil@@$$J0YAN N@Z)
histogram-utils.obj : error LNK2001: unresolved external symbol "double
__cdecl sqrt(double)" (?sqrt@@$$J0YAN N@Z)
ModalHistogram. obj : error LNK2019: unresolved external symbol "double
__cdecl sqrt(double)" (?sqrt@@$$J0YAN N@Z) referenced in function "public:
virtual void __thiscall ModalHistogram: :newDataPoint(d ouble)"
(?newDataPoint@ ModalHistogram@ @$$FUAEXN@Z)
histogram-utils.obj : error LNK2001: unresolved external symbol "int __cdecl printf(char const *,...)" (?printf@@$$J0Y AHPBDZZ)
fatal error LNK1120: 13 unresolved externals

Nov 17 '05 #2

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

Similar topics

2
13121
by: RU | last post by:
Hi, I am working on a porting project to port C/C++ application from unixware C++, AT&T Standard components to g++ with STL on Linux. This application has been working properly on Unixware/C++/AT&T componets environment. I have been able to compile all modules after making necessary changes in LINUX/gcc/STL environment. We have two templates defined XList and XMap.
13
3363
by: david | last post by:
Hi, I have some problems to link a simple hello world program using g++ (version 3.2.3 or 3.3) and dinkumware 402. //hallo world... #include <iostream> main () { std::cout << "bla" << std::endl; }
7
5117
by: Steven T. Hatton | last post by:
Is there anything that gives a good description of how source code is converted into a translation unit, then object code, and then linked. I'm particularly interested in understanding why putting normal functions in header files results in multiple definition errors even when include guards are used. -- STH Hatton's Law: "There is only One inviolable Law" KDevelop: http://www.kdevelop.org SuSE: http://www.suse.com Mozilla:...
3
14542
by: Saurabh Aggrawal | last post by:
Hi, I am porting an application for 64-bit AMD processor and while linking the application i am getting the following errors: Processing directory uidll... Linking DLL G:\NewUIPackers1\drivers\Unser\bin\WIN32\DEBUG\PPKAW1UI.dll .... LINK : warning LNK4224: /PDBTYPE is no longer supported; ignored UIDLL.def : error LNK2001: unresolved external symbol DllCanUnloadNow
20
3232
by: Steven T. Hatton | last post by:
I just read this in the description of how C++ is supposed to be implemented: "All external object and function references are resolved. Library components are linked to satisfy external references to functions and objects not defined in the current translation. All such translator output is collected into a program image which contains information needed for execution in its execution environment." What I'm wondering is what exactly...
6
6558
by: Rudy Ray Moore | last post by:
I work with a multi-project workspace. One project (the "startup" project) has a "Configuration Type" of "Application (.exe)". The other 40 projects have a "Configuration Type" of "Static Library (.lib)". My question: Should the linker incrementally link when I make a change to one of the ..cpps in one of my .lib projects? For VC6 the answer is yes.
3
3686
by: Martin Evans | last post by:
I've just been tasked with porting our desktop embedded Python support onto our existing CE offering. I've managed to compile the Python sources and have produced an armdbg420\python23.lib file. When I come to link to the Python library though from our one of our DLLs, I am getting the following unresolved externals: ------------------- embedded.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl...
0
1460
by: JohnIdol | last post by:
VC++6 to VC++2003 - linking troubles -------------------------------------------------------------------------------- Hi All, I successfully ported an application from VC++6 to VS2003. Solved compiling issues but now I am sticking with serious Linking troubles. I got a bunch of:
4
1271
by: =?Utf-8?B?UmljaGFyZCBNU0w=?= | last post by:
I have a legacy project with hundreds of unmanaged C programs, that I am porting to .NET. There are a lot of globally scoped variables in the C programs, which I have had to convert to thread local, so that multiple threads of the same program do not interfere with each other. The syntax is like this: system.h contains: #define Thread __declspec(thread) prog1.c contains:
0
8764
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9428
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9289
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6722
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6026
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4534
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4798
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2694
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2166
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.