Solved

WinG and Borland C++

Posted on 1997-05-02
7
415 Views
Last Modified: 2013-12-04
I've just recompiled my 16-bit WinG app with Borland C++. There's a
documented bug with WinG which insists that it is loaded before
Toolhelp.dll. I have successfully done this with Visual C++ 1.52, does
anyone know how to do it with Borland C++ 4.5?

I am building using a .ide file, I linked to wing.dll by adding wing.lib to the project manually using add node, toolhelp.dll appears to be linked automatically as part of the standard libraries.

Thanks
Nathaniel

0
Comment
Question by:than050297
  • 5
  • 2
7 Comments
 
LVL 15

Expert Comment

by:NickRepin
ID: 1397075
Do you use .mak (make) or .ide (project expert) files?Do you link toolhelp.lib & wing.lib at compile-time or load toolhelp.dll and wing.dll at run-time?
0
 

Author Comment

by:than050297
ID: 1397076
Edited text of question
0
 
LVL 15

Accepted Solution

by:
NickRepin earned 200 total points
ID: 1397077
There is no toolhelp.lib in Borland's standard libraries. So compiler cannot (and does not) link automatically toolhelp.dll to your application.If you do not call toolhelp.dll in your program then there is no problem at all (according MS, problem exists if you use toolhelp.dll).You can check if compiler links toolhelp.lib by clicking 'Project->Generate makefile' and then searching for 'toolhelp.lib' in this file.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 15

Expert Comment

by:NickRepin
ID: 1397078
If you find 'toolhelp.lib' in .mak file, please post this file as comments.
0
 

Author Comment

by:than050297
ID: 1397079
You're right - it does not link to toolhelp.lib. However, my program calls various toolhelp.dll functions including timeSetEvent, the Borland standard libraries must import toolhelp.dll so there is no need for toolhelp.lib. So the problem is reduced to one of linking to wing.lib before the standard libraries. Presumably the only way to do this is to edit the makefile manually?
0
 
LVL 15

Expert Comment

by:NickRepin
ID: 1397080
timeSetEvent is exported by winmm.dll, not by toolhelp.dll.

It seems that you should not care about toolhelp.dll.

Here is a list of exported functions for  toolhelp.dll:

      CLASSFIRST                      
      CLASSNEXT                      
      GLOBALENTRYHANDLE              
      GLOBALENTRYMODULE              
      GLOBALFIRST                    
      GLOBALHANDLETOSEL              
      GLOBALINFO                      
      GLOBALNEXT                      
      INTERRUPTREGISTER              
      INTERRUPTUNREGISTER            
      LOCALFIRST                      
      LOCALINFO                      
      LOCALNEXT                      
      MEMMANINFO                      
      MEMORYREAD                      
      MEMORYWRITE                    
      MODULEFINDHANDLE                
      MODULEFINDNAME                  
      MODULEFIRST                    
      MODULENEXT                      
      NOTIFYREGISTER                  
      NOTIFYUNREGISTER                
      STACKTRACECSIPFIRST            
      STACKTRACEFIRST                
      STACKTRACENEXT                  
      SYSTEMHEAPINFO                  
      TASKFINDHANDLE                  
      TASKFIRST                      
      TASKGETCSIP                    
      TASKNEXT                        
      TASKSETCSIP                    
      TASKSWITCH                      
      TERMINATEAPP                    
      TIMERCOUNT                      
      WEP                            

0
 
LVL 15

Expert Comment

by:NickRepin
ID: 1397081
You can check this list by right-clicking on toolhelp.dll in explorer and then selecting 'Quick view' (for Win95/NT 4.0).

Toolhelp.dll is not documented by MS and Borland C does not link it.

Of course, you can manually change order of linking by editing makefile and then use make.exe instead of project manager to make project. But in my opinion there in no need to do so.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now