Mombu the Programming Forum

Mombu the Programming Forum > Programming > How to use Delphi and Visual C together?
REGISTER NOW! Search Today's Posts Mark Forums Read




Reply
 
Thread Tools Search this Thread Display Modes
1 5th May 14:59
brian cook
External User
 
Posts: 1
Default How to use Delphi and Visual C together?



Greetings.

You aren't wrong. Older versions of Visual C export functions with the
underscore and the "parameter bytes" decorator; the "@8" part. I
believe newer versions also include the decorator if you don't use a
"DEF" file. I may have that backwards.


It was original a standard published by Microsoft to help ensure the
correct number of bytes (parameters) are passed into a DLL. Why they
stopped doing it is a mystery to me. Probably something to do with the
transition to 64 bit operating systems. I've also wondered why they
adorned the name with the number of bytes rather than the number of
parameters.


That's odd. I've always had very good luck with Delphi 6 and working
with DLLs. What operating system are you using?


No need to apologize. Whoopi Goldberg quipped on her TV show that the
President of the United States is incapable of properly pronouncing the
word "nuclear". If our President has difficulties with English we
certainly can't fault you!


- Brian
  Reply With Quote
SPONSORED LINKS BY GOOGLE

 


2 16th May 15:58
rudolf heider
External User
 
Posts: 1
Default How to use Delphi and Visual C together?



Hellow!

Thank You for advice!

I use Windows XP with service pack and Delphi 6.
However, I use Visual C with Intel compiler, so MS linker replaced with
Intel ilink.exe.
Probably, this problem related to the Intel linker, I will check it.
More symptoms of the problem are:
- I can delete the dll after running or debugging the program when I use
Delphi only.
- When I made attempt to compile dll after running the program from Delphi,
the linker writes the message:
-----------------------
Linking...
xilink6: executing 'C:\PROGRA~1\MICROS~3\VC98\Bin\link.exe'
LINK : fatal error LNK1105: cannot close file "ft_core.dll"
Error executing xilink6.exe.

-----------------------
After this, I cannot delete the dll from the OS.


Thank You too.


WBR,
Rudolf Heider.
  Reply With Quote
3 16th May 15:58
rudolf heider
External User
 
Posts: 1
Default How to use Delphi and Visual C together?


Thank You again, with the DEF-file the name's decoration in the DLL became
absolutely correct!


WBR,
Rudolf Heider.
  Reply With Quote
4 16th May 15:58
brian cook
External User
 
Posts: 1
Default How to use Delphi and Visual C together?


Greetings.


My pleasure.

What about if you go through these steps...

1. Run your application under the Delphi debugger

2. Shutdown your application

3. Try do delete the DLL

Does that work? Do you get an "access denied" or "file locked" error?


- Brian
  Reply With Quote
5 19th August 22:47
victor usoltsev
External User
 
Posts: 1
Default How to use Delphi and Visual C together?


Try to delete the WINAPI directive in C-project and replace stdcall with
cdecl in Delphi project.
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes







Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
Also visit Ogoun the Usenet Archive
666