|
Hello!
Which tool can I use under win32 to see which symbols are linked in the to the libray someLib.lib. I can use "nm" utility under Linux (example: someLib.a). Is there some simmilar tool for MSVC constructed libraries? I use MSVC++ .NET 2003.
Regards,
Rostfrei
|
|
|
|
|
Try using depends.exe, not sure if will look at a .lib file though, I know it works for .dlls
|
|
|
|
|
Thank you for response waldermort and benjymous. I tried both tools and it looks like it's the same tool. One comes with .NET installation and another can be downloaded from net. Both were unsuccessful in my case. They work when I open some DLL but when I open LIB file, I get "Error: At least one file was not a 32-bit or 64-bit Windows module." Is there some other tool I can use?
Regards,
Rostfrei
|
|
|
|
|
Depends.exe and other dependency walking tools will only show the imports and exports in a DLL or EXE; I don't believe this is what you're after. I think the tool you need is Dumpbin[^] which comes with Visual Studio. Using this you can examine the symbols and contents of LIB and OBJ files.
Steve
|
|
|
|
|
That is exactly what I needed.
For anybody else: for Dumpbin to work you need to put "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin" to the PATH and also "C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE" because Dumpbin needs mspdb71.dll to work.
Thank you Stephen!
Regards,
Marko Kukovec
|
|
|
|
|
hi i am working on serial port communication,i have opened the port using CreateFile function ,wrote the data using WriteFile function,and Read data using ReadFile Function.Every thing is fine until here,Say for Example..the instrument is switched off..but connected to the port..how do detect whether the instrument is switched ON or OFF...?
thanks in before
James
|
|
|
|
|
You should check the documentation of your instrument. Maybe when switched ON, there is one line that is set to high (I think it is the DTR - Data Terminal Ready). If this is the case, just check for the status of this line. Otherwise you can always send something to which the instrument is supposed to respond. If you don't get an answer, then the device is either not connected, either switched OFF. I don't think it is possible to make a difference between disconnected and switched off.
|
|
|
|
|
how to check DTR..is there any API fucntion for it..?
|
|
|
|
|
I think you can use GetCommModemStatus[^]. I think I was wrong, you have to check for the DSR (Data Set Ready) line, not the DSR (I always mix them).
|
|
|
|
|
Is there any other alternative..?..i have tried used GetCommModemStatus function..its returning false..even if..the instrument is switched on..
|
|
|
|
|
Did you pass the correct handle ? After the port has been opened ?
RockyJames wrote: Is there any other alternative..?..
Yes, as I said previously: send something to which your device is supposed to answer. If you don't receive an answer, then the device is not connected or switched off.
|
|
|
|
|
yeah i have sent..correct handle..i have opened port it in OVERLAPPED MODE..i am using WaitForSingleObject function..when i write data ..its able to write..when i start reading the data..it is getting stucked..at WaitForSingleObject function..
|
|
|
|
|
thank`s for u r support..issuse is closed..i have done..with the commtimeout....
|
|
|
|
|
As Cedric Moonen already said, you can check the DSR signal.
In addition you should raise the RTS (Request To Send) signal and check for the reply from the device, CTS (Clear To Send). If you get a transition from Off to On in the CTS line, you can be pretty sure the device is powered on.
For the serial communication, i suggest you use a serial commuinications library, the are some good ones here at CP.
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
hi friend ,can u be more clear.. before ReadFile..i want to know whether system is ON or OFF..can u pls suggest..me the function names to use..
thanks in before
James
|
|
|
|
|
Hello.
The problem with detecting serial devices is that the serial port very often can have a random status when the serial port is unconnected.
I.e. the DSR signal can be in it's "On"-position even when the serial port isn't even connected! (It depends on the hardware).
The only reliable way of detecting if:
1.
There *is* a device conncted.
2.
The device is powered on.
is to catch a transition on one (or more) status lines. An easy way is to ask the device if the PC (Data Terminal) may send data to the DS (Data Set).
If the DS raises it's Clear To Send signal, then the PC(DT) may send data to it.
Check out MSDN for the documentation, http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/dcb_str.asp[^]
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
thank`s for u r support..issuse is closed..i have done..with the commtimeout....
|
|
|
|
|
How to set a font to application menu; say I've a CFont object & a CMenu ptr..?
Thanks in advance
--
======
Arman
|
|
|
|
|
if you have a derived CMenu class you can change your font on WM_DRAWITEM
|
|
|
|
|
free library (or code) in C++.
|
|
|
|
|
By 'free' do you mean "other peoples hard work so I can be lazy"? or free as in "I don't want to pay even the the author would like a small donation"?
|
|
|
|
|
Just tell me where, pay or free library. I'll consider that I should pay or not later.
|
|
|
|
|
what is source code for email system in Java script
|
|
|
|
|
please don't feed the troll.
Charlie Gilley
Will program for food...
Whoever said children were cheaper by the dozen... lied.
My son's PDA is an M249 SAW.
My other son commutes in an M1A2 Abrams
|
|
|
|
|
Why don't you ask someone who knows? This is the Visual C++ / MFC discussion board, in case you haven't noticed.
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|