Subj : Re[2]: Borland CPP 4.53 vs 5.02 To : borland.public.cpp.borlandcpp From : Ron Croonenberg Date : Wed Mar 31 2004 09:53 am Hello, I found out that an environment variable DOS that was needed in 4.53 is not needed anymore, but now I run into a few problems.. here's one : error msg is : "Cannot convert 'waveformat_ta *' to 'const tWAVEFORMATTEX *' void TVoiceMessage::SetupWindow() { TDialog::SetupWindow(); play_butt->EnableWindow(FALSE); stop_butt->EnableWindow(FALSE); // open stereo 22.05 khz 8 bit wave input // allocate memory for ten seconds of sound hGmem1 = GlobalAlloc (GMEM_SHARE | GMEM_MOVEABLE, sizeof (WAVEHDR)) ; hGmem2 = GlobalAlloc (GMEM_SHARE | GMEM_MOVEABLE, (DWORD) 10L * 11025L) ; if (hGmem1 == NULL || hGmem2 == NULL) { BWCCMessageBox (NULL, "Could not allocate enough memory.", "Error", MB_ICONHAND | MB_OK) ; return; } // leave blocks locked for both input and output lpWaveHdr = (LPWAVEHDR) GlobalLock (hGmem1) ; lpData = (LPSTR) GlobalLock (hGmem2) ; // Looks like shit, but else it won't start lpWaveHdr->dwBytesRecorded = dwBytesRecorded ; lpWaveHdr->dwBufferLength = dwBytesRecorded ; lpWaveHdr->dwFlags = 0L ; lpWaveHdr->dwLoops = 0L ; waveOutOpen (&hWaveOut, 0, (LPWAVEFORMAT) &pcmWaveFormat, (WORD) HWindow, NULL, CALLBACK_WINDOW); } Ron Croonenberg wrote: > That's actually what I am confused about, I don't have any "modules.h" > file mentioned in the source. > I have th eimpression that it gets loaded somewhere in another header file. > > It is a win16 app. the only thing I can imagine is that I have some > setting wrong somewhere inthe ide file or something. > > I'll find a code excerpt and post it here. > > thanks, > > Ron > > > > Ed Mulroy [TeamB] wrote: > >> I do not have a machine with BC++ 4.5* loaded. But I looked at one >> where TC++ for Windows 4.5 is loaded and the set of include files for >> it should be the same as for BC++. I also looked at one where BC++ >> 5.02 was loaded. Neither of them had a compiler-supplied file named >> modules.h. >> >> In all of TC++ for Windows 4.5, BC++ 5.02, C++ Builder versions 4 & 6, >> C++ BuilderX 1, Turbo C 2.01 and Turbo C++ 1.01 the only 'modules.h' >> that I could find was a source file used to build Boost's jam program. >> Where did the modules.h that you are using come from? >> >> Please show the source file lines listing the includes down through >> the one including modules.h Also show the section of modules.h about >> which it is complaining. >> >> . Ed >> >> >>> Ron Croonenberg wrote in message >>> news:4068346f$1@newsgroups.borland.com... >>> >>> I have an old application that was build under borland 4.53. I >>> moved on to another place and want to recompile it again, but >>> we only have a license for 5.02 >>> >>> For some reason "it" doesn't just want to compile. Are there >>> any settings that I am overlooking ? (When compiling "it" is >>> complaining about headerfiles : "modules.h : Enum syntax >>> error" >>> >>> >>> isd there a setting (or something) that can be changed ? can >>> "something" be automatically converted ? >>> >>> any info would be greatly appreciated. >> >> >> >> > .