Thread View: borland.public.cppbuilder.nativeapi
5 messages
5 total messages
Started by Asger Joergensen
Sun, 16 Mar 2008 14:14
netapi32.dll error on Win 98
Author: Asger Joergensen
Date: Sun, 16 Mar 2008 14:14
Date: Sun, 16 Mar 2008 14:14
10 lines
1056 bytes
1056 bytes
Hi there When I run one of my apps on win 98 I get an error about my exe being linked to netapi32.dll. regarding NetApiBufferFree and NetUserGetInfo Anybody know how to solve this ? Thanks in advance Asger
Re: netapi32.dll error on Win 98
Author: Boba
Date: Sun, 16 Mar 2008 19:18
Date: Sun, 16 Mar 2008 19:18
5 lines
1014 bytes
1014 bytes
"Asger Joergensen" <junk@Asger-P.dk> wrote in message news:MPG.224749bb6584672f989a94@newsgroups.borland.com... > ... these functions are not supported by Win9x.
Re: netapi32.dll error on Win 98
Author: Asger Joergensen
Date: Mon, 17 Mar 2008 15:09
Date: Mon, 17 Mar 2008 15:09
17 lines
1243 bytes
1243 bytes
Hi Boba Boba says: > "Asger Joergensen" <junk@Asger-P.dk> wrote in message > news:MPG.224749bb6584672f989a94@newsgroups.borland.com... > > ... > > these functions are not supported by Win9x. Thanks, I kind of guessed that.. But how can I solve the problem, without making two versions of my program. Thanks in advance Asger
Re: netapi32.dll error on Win 98
Author: Remy Lebeau (TeamB)
Date: Mon, 17 Mar 2008 16:51
Date: Mon, 17 Mar 2008 16:51
13 lines
1399 bytes
1399 bytes
"Asger Joergensen" <junk@Asger-P.dk> wrote in message news:MPG.2248a80278d938df989a96@newsgroups.borland.com... > But how can I solve the problem, without making > two versions of my program. You will have to use LoadLibrary() and GetProcAddress() to dynamically load the functions at run-time, instead of statically linking to them at compile-time. Gambit
Re: netapi32.dll error on Win 98
Author: Darko Miletic
Date: Mon, 17 Mar 2008 17:09
Date: Mon, 17 Mar 2008 17:09
18 lines
1669 bytes
1669 bytes
Asger Joergensen wrote: > Hi there > > When I run one of my apps on win 98 I get an error about my exe > being linked to netapi32.dll. regarding NetApiBufferFree and > NetUserGetInfo You got the right answer from Remy. I will just add that in Win 9x LAN manager API functions, of which NetUserGetInfo is part, is availiable only in a 16-bit dll called netapi.dll. To call this api on win9x you will have to use technique called flat thunking. You can find more info about that here: http://catch22.net/tuts/cardtut.asp also here: http://dosa.web.elte.hu/asm/TASM5/EXAMPLES/THUNK95/THUNK95.TXT
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads