| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Dosqueryprocaddr |
21.Sep 1994, Billy O'connor wrote in a message to All:
BO> Hello, all.
BO> I am trying to use the IBM Cset library function, _loadmod,
BO> and am having some difficulty. The code below is the
BO> smallest reproduction of the problem that I could create.
BO> The problem I'm having is that I cannot use
BO> DosQueryProcAddr with the function name. I can only load
BO> the function with the ordinal number. Cset documentation
BO> seemsto read that the code below will work.
BO> DosQueryProcAddr works fine with the ordinal number of the
BO> function, but when called with the function name it returns
BO> 127, which is not even in the list of possible return codes
BO> for DosQueryProcAddr!?
[sample code deleted]
rc=DosQueryProcAddr(dllHandle,0,"printme",&faddr);
Change your call to uppercase
{rc=DosQueryProcAddr(dllHandle,0,"PRINTME",&faddr);}
and all will work ok. Even if the DLL and LIB state lowercase,
DosQueryProcAddr() insists in upper :-(.
BO> Scratching my head,
Stop doing this, not long ago I had the same problems.
Tschuesz,
Vitus
--- timEd/2 1.00
* Origin: Seems to be a Point of BetaBox Walheim (2:2474/100.20)SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413 SEEN-BY: 711/430 807 808 809 934 942 712/353 623 713/888 800/1 @PATH: 2474/100 0 2476/2 2480/76 24/24 396/1 3615/50 229/2 @PATH: 12/2442 711/409 54/54 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.