TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: All
from: Michael Douglass
date: 1994-06-17 23:52:00
subject: MMPM OS2 programmming

Ok, I'm STUMPED

  I decided, since I now have the DEVCON CD that I would try my hand at
writing an MMPM2 application.  The application is planned to be perhaps
the best featured CD-Audio player.  I installed the MMOS2 Toolkit off
the CD and onto the hard drive.  The only problem I now have is I get
the following error when I try to compile (Note:  I'm using Borland C++
v1.0 for OS/2, compiling as a DLL)


#include 
#define INCL_MCIOS2
#include 
#include 
#include 

#define STRING_LEN 128

#define OPEN_STRING "open %s alias cd wait"
char _export APIENTRY CD_Open(char *deviceName)
{
  char *string=new char[STRING_LEN];
  char rValue=0;

  memset(string,0,STRING_LEN);
  sprintf(string,OPEN_STRING,deviceName);

  rValue=(mciSendString(string,0,0,0,0)==MCIERR_SUCCESS);

  delete[] string;
  return(rValue);
}

I place the MMPM2.LIB in the project file with the .CPP file.  Then, I
press the build button.  The compile works fine, but then this error
message appears when it links:

Unresolved external 'mciSendString(unsigned char near*, unsigned char
near*, unsigned short, unsigned long, unsigned short)' referenced from
module _CDAUDIO.CPP in module D:\BCOS2\LIB\OS2.LIB

?Que pasa?

Michael Douglass
___
 .Mike's Mail Internet:   MICHAEL.DOUGLASS{at}LCHANCE.SAT.TX.US

--- Maximus/2 2.01wb

* Origin: The Rock BBS--410Meg, i486/33, ZyXEL v32bis. (1:387/31)
SEEN-BY: 54/54 620/243 632/348 640/820 690/660 711/409 413 430 807 808 809
SEEN-BY: 711/934 712/353 623 713/888 800/1 2442/0
@PATH: 387/31 1102 3615/50 229/2 2442/0 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™.