Force Visual Studio to customize the function name

Thank you for your time.

The company I work for has a program originally written in 1998 that is working on a custom system. We have written in-house DLLs that provide an API that the program uses to interact with the system. Windows UI was released to another company back in 1998. It was originally written for Windows 98, but we are still using it successfully on our Win7 64-bit systems (in compatibility mode).

Then it becomes necessary to make some changes to the DLL files. Great, no problem. We have a code. But we have no code for the user interface program. So to keep using the same UI program, I need my export to EXACTLY match the names that were exported to the old DLLs.

But the old DLLs were written in 1998 with the Borland compiler. And I am using Visual Studio.

I need to be able to SHAPE the linker to use a specific name verbatim.

For example, the SysReg :: TandemUnlock (DWORD) function was originally exported, decorated as @SysReg @TandemUnlock $ quil.

I need to be able to match this. I could do it with a DEF file.

I tried DEF file with

Export

@SysReg @TandemUnlock $ Quil

does not work.

I also tried the linker / EXPORT option: @SysReg @TandemUnlock $ quil = SysReg :: TandemUnlock

also didn't work

Any ideas how to get this to work?
I have no choice but to create the DLL first and then edit the PE?

Thanks Josh

+3
function visual-studio


source to share


No one has answered this question yet

Check out similar questions:

1419
Using Git with Visual Studio
1104
.gitignore for Visual Studio projects and solutions
989
Can you get Visual Studio to run as administrator on Windows 8?
815
Difference between Build Solution, Rebuild Solution and Pure Solution in Visual Studio?
801
Should I add the Visual Studio .suo and .user files to the original control?
789
Is there a better way to make optional function parameters in JavaScript?
785
JavaScript plus sign before function name
758
What are the different Create Action settings in Visual Studio project properties and what do they do?
741
How do you format your code in Visual Studio?
726
How can I add an existing directory tree to a project in Visual Studio?



All Articles
Loading...
X
Show
Funny
Dev
Pics