Home
Top.Mail.Ru Yandeks.Metrika
Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Down

How to pass a function parameter in a DLL. Find similar branches


Chak   (2001-12-19 10:07) [0]

I transfer one value and another comes to function. I use type PChar. If anyone knows explain to me, thanks in advance!



Алексей Петров   (2001-12-19 10:19) [1]

Check Identity Calling Agreements



Chak   (2001-12-19 10:24) [2]

How can I check it, I'm new to Delphi, what exactly to check?



DieHard   (2001-12-19 10:28) [3]

Look in the help Calling conventions
Most often, when a function is declared in a DLL, a directive is used. stdcall



Chak   (2001-12-19 10:39) [4]

So I use it, in the opposite direction, the transfer of the parameter goes without problems, which I transmit and receive, but on the contrary, nothing!
If I pass 8 to the XNUMX structure as an Integer, then in the DLL I get a seven-digit number, if as PChar, then I end up with something like "$ us." From where - I can't understand!



Алексей Петров   (2001-12-19 10:44) [5]

Then it seems that in dll-ke do not use.
Look as described in the dll. if you can’t find the description - try stdcall to remove or replace with cdecl.



Chak   (2001-12-19 13:06) [6]

No DLL-ku himself wrote, there is for sure!



Алексей Петров   (2001-12-19 13:34) [7]

It is strange if the prototypes completely coincide ...
If only in the options of the project there is a problem - although the default calling convention for the delfi is not :(

Can you draw a prototype that will be clarified?



Chak   (2001-12-19 14:57) [8]

=> Alexey Petrov
Thanks you!!! I wanted to send a piece of code to show that everything is alright with me, but I copied and looked at no stdcall !!!
I finished and it worked! I don’t even know how it is, thanks vseravno, I suffered for two days :)))) Thank you!



Pages: 1 whole branch

Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Top









Memory: 0.83 MB
Time: 0.062 c
14-22366
Vlados
2001-11-05 10:41
2002.01.08
Plotting


3-21973
Zav
2001-12-06 10:55
2002.01.08
DBNavigator component


7-22453
Juri
2001-09-21 18:26
2002.01.08
RS485


1-22109
avr555
2001-12-19 17:17
2002.01.08
Combobox in Grid


1-22083
Dennis
2001-12-19 12:06
2002.01.08
Help me please!





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic indonesian Irish italian japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Español swahili Swedish thai turkish Ukrainian urdu vietnamese welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish