Gaming Zone > [MiA] Servers

Are you a C/C++ pro, with experience of VS upgrades, willing to help me out?

(1/2) > >>

Piglet:
Hi lovely people.

If there's anyone here who is a C/C++ programmer and willing to help me, please can you let me know.

It'll need to be someone with experience of large projects and particularly upgrades from VS2003/VS2005 to later versions.


I've hit a range of problems in doing an upgrade, and I don't have the experience to work out how to resolve them.

As an example of the sort of thing I'm battling with, somewhere in the code or a library the code is using there's a reference to functions that used to exist in the VS2005 versions of specific libraries that the linker cannot find when compiling with VS2022. I don't know how to find out why that function is needed and where it's been referenced.

The_Cowboy:
Could you share the information about what be those libraries.

Stealer:
I used to be, haven't coded for over a decade though. At present I'm still trying to get my head around my current job, although I've found a niche and clientele that I can use to further my own IT bizz when I restart it... Not quite sure how cool they will be, with me offering my services whilst working for them, but at present the isp's that I work for don't offer an IT consultant :) Sadly I'm very restricted on time at the mo, only get Sundays off and 1 random day in the week.
I'll try and have a look sometime if you need help, although I can't guarantee when, sorry.

Piglet:

--- Quote from: The_Cowboy on March 02, 2022, 18:35 ---Could you share the information about what be those libraries.

--- End quote ---

The example issue I have is one where it's trying to pull in atls.lib. I think that library has changed and no longer contains this function in the latest VS. I'm wanting to understand what it is that makes it need this function, and what the modern equivalent is.


--- Code: ---atls.lib(atlbase.obj) : error LNK2019: unresolved external symbol "int __cdecl ATL::_AtlInitializeCriticalSectionEx(struct _RTL_CRITICAL_SECTION *,unsigned long,unsigned long)" (?_AtlInitializeCriticalSectionEx@ATL@@YAHPAU_RTL_CRITICAL_SECTION@@KK@Z) referenced in function "public: long __thiscall ATL::CComCriticalSection::Init(void)" (?Init@CComCriticalSection@ATL@@QAEJXZ)

--- End code ---


I need some hand-holding and help to be able to understand how to work on these sorts of things sensibly

The_Cowboy:
Ok so here is the picture:
A function in the library ALT (that you mentioned) named

--- Code: ---CComCriticalSection::Init()

--- End code ---
(look at https://docs.microsoft.com/en-us/cpp/atl/reference/ccomcriticalsection-class?view=msvc-170#init)

is somehow calling a function (probably a C function linkage, that you identified)

--- Code: ---_AtlInitializeCriticalSectionEx(args...)

--- End code ---

Now this shouldn't normally happen (as name itself suggests). The function called (as written in the documentation) should be

--- Code: ---InitializeCriticalSection(args...)

--- End code ---

We need to find why alternate version of funciton is being called of which there seems be no trace. I suspect some macro setting but need to delve into that code snippet for now. Maybe some versioning riddikulus-ness (pardon my Harry Potter reference  8)).

Navigation

[0] Message Index

[#] Next page

Go to full version