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.57 MB
Time: 0.041 c
14-22393
Felix
2001-11-08 21:54
2002.01.08
What to do?


14-22324
Yuraz
2001-11-04 11:37
2002.01.08
Geography by IP


1-22259
Rats
2001-12-12 17:55
2002.01.08
Curve finish (2 double)


1-22186
ShnurO.K.
2001-12-15 23:05
2002.01.08
How to hide your program when you press Alt + Ctrl + Del?


6-22291
Leviathan
2001-10-09 22:02
2002.01.08
Question on the NMFTP component





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