|
Hello,
Can anybody tell me how can I get a list of the exported functions from a .lib file. The library is just a statically linked win32, compiled from Fortran I think.
I've been looking at the Lib utility, using args such as /list, but I can so far only get the list of modules within the library , not the actual function prototypes.
Thanks,
John
|
|
|
|
|
|
dumpbin /exports.
I find it very useful for Pocket PC development.
Edit: forgot that CP adds my sig by default...
--
Mike Dimmick
|
|
|
|
|
|
How to find default browser in the system (exe file)??
|
|
|
|
|
I happen to have written this a few days ago:
#include <iostream>
#include <string>
#include <windows.h>
#include <fcntl.h>
#include <io.h>
#include <sys/stat.h>
static bool encuentra_programa_asociado(
std::string& programa_asociado,const char* extension)
{
char temp_path[MAX_PATH];
if(::GetTempPath(sizeof(temp_path),temp_path)==0)return false;
std::string str=temp_path;
str+="xxx.";
str+=extension;
int file=-1;
if(::_access(str.c_str(),0)!=0){
file=::_open(str.c_str(),_O_CREAT|_O_RDWR|_O_TEMPORARY,_S_IREAD|_S_IWRITE);
if(file==-1)return false;
}
char buffer[MAX_PATH];
if((DWORD)(::FindExecutable(str.c_str(),"",buffer))<=32){
if(file!=-1)::_close(file);
return false;
}
programa_asociado=buffer;
if(file!=-1)::_close(file);
return true;
}
static bool encuentra_browser_defecto(std::string& browser_defecto)
{
return encuentra_programa_asociado(browser_defecto,"htm");
}
int main()
{
std::cout<<"browser por defecto: ";
std::string str;
encuentra_browser_defecto(str);
std::cout<<str<<std::endl;
WinExec(str.c_str(),SW_SHOW);
return 0;
} It's in Spanish, but I guess you'll be able to figure it out anyway.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Does anyone know, if it's safe to append to a String in the String Table, that is used for a menu command e.g. File -> Save another string that can be used for HtmlHelp for example.
I did the following
IDS_FILE_SAVE: Save the active document.\nSave\nSave - Command\n\nSave the Document.
Then I passed it to an HH_POPUP and the Help showed up properly.
Can I continue with this, or is the space after the tooltip for the toolbar button reserved for something else?
Thanks
|
|
|
|
|
hello!
please tell me how can I see if a process(obtained with Process32First/Next) is a system process or an user process... and how can I get a full path of the exe hwo created the process...
I want to do this in Windows 95/98/Me...
thank you...
best regards,
radu.
|
|
|
|
|
I have a problem managing an ADO recorset.
I open a table and I can browse recordset data
but I'm not able to add a new record and to delete
one.
The main problem is when I open the table,
I add a new record and I try to delete this one
(without close and re-open the table) in this case
I have an exception.
In which order shall I use Open, AddNew, Update e Delete
methods in order to add and remove table records ???
Thanks a lot !!!
|
|
|
|
|
well,
if ADO uses the usaual database mechanism then open the recordset first.
Have a look if you may add and/or update records. Snapshots for instnace are not updateable.
After doing the modifications you must do an update. Maybe in the case you are doing a transaction you also have to do a commit. I don't know how ADO works, but with my database (DAO) addnew or edit just lock the record or create a new one, while update writes the record to the database. It is only after writing a record that you may delete it.
Hope this helps.
G. Steudtel
|
|
|
|
|
When you have completed the addition of a new record to your
table which is added to the end of the table and your cursor in the table is now at the end i.e EOF where there is no record that's why you find an Exception. To delete currently added record you should move the cursor one record back so that it starts point to the currently added record.
rs.MovePrev();<br />
rs.Delete();
I hope, It ll work.
Regards...
Nasir Maan
|
|
|
|
|
I am getting many errors in the following code:
#ifdef _UNICODE
typedef std::wcout _tcout;
#else
typedef std::cout _tcout;
#endif
But i am not getting any error in this code:
#ifdef _UNICODE
typedef std::wstring _tstring;
#else
typedef std::string _tstring;
#endif
Can anyone tell me what is the problem in the first case, because i am getting 8 errors. I am copying first error below:
c:\documents and settings\tstring.h(22) : error C2146: syntax error : missing ';' before identifier '_tcout'
Yes, Yes i am including all header files like iostream e.t.c
|
|
|
|
|
didn't you forget an #include <iostream> somewhere ?
~RaGE();
|
|
|
|
|
Rage wrote:
didn't you forget an #include <iostream> somewhere ?
Yes, i am including it, and still getting errors.
|
|
|
|
|
std::cout is not a type, but an object, so you cannot use it in a typedef declaration. It is as if you write:
int a;
typedef a b;
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
In window sockets, how do I set the baud rate of the remote computer??
Thanks,
grahamo.
|
|
|
|
|
What do you mean baud rate? Windows Sockets uses the socket to it's full capacity. If you want to limit the bandwidth that the socket uses that you have to create timers and limit the bandwith yourself
|
|
|
|
|
I've been asked to add a watermark to a CScrollView derived view, which should not move when the user scrolls - so the watermark should always be in the center of what the user sees. How can I get the center point of what the users sees? I've tried using
CRect rect;
GetClientRect(&rect); then using rect.Width() / 2 & rect.Height() / 2 , which works well, until you use the scroll bars then that point moves.
Any ideas?
Dylan
|
|
|
|
|
GetScrollPosition
You know how it is, you've been looking at the same bit of code for 3 hours and you have a lack of caffine in your system... anything could go wrong
Dylan
|
|
|
|
|
Hi,
Any idea how I can draw a transparent circle? i.e a circle in which the interior part of the circle is transparent.
If I use the CDC::Ellipse() function it fills the inside of the circle with the default brush selected into the DC.
Right now, to get over the problem I'm drawing 2 arcs, but I was wondering if there was any direct method.
Thanks.
|
|
|
|
|
HOLLOW_BRUSH ?
|
|
|
|
|
Cool. Works great.
Thanks Buddy.
|
|
|
|
|
Hi,
I have created a dynamic menu, but now im not sure how to get the menu item to respond when they are clicked on. The items are created by the user at run time. Is there a simple solution to this?
Cheers
Dor
|
|
|
|
|
If you have a menu, if its a popup menu, you can get t ereturn value at the time of the call like this:
int ret = TrackPopupMenuEx(pSub->m_hMenu, TPM_LEFTALIGN | TPM_LEFTBUTTON | TPM_NONOTIFY | TPM_RETURNCMD, x, y, this->m_hWnd, NULL);
switch (ret)
{
case IDC_COMMAND1:
case IDC_ANOTHER_COMMAND:
}
The function returns 0 if the menu was cancelled. If its a top level menu, then I would recommend using a set range of menu iDs e.g. 10000 - 11000. You could them map the command using the ON_COMMAND_RANGE() macro for the message map.
Roger Allen
Sonork 100.10016
Were you different as a kid? Did you ever say "Ooohhh, shiny red" even once? - Paul Watson 11-February-2003
|
|
|
|
|
hello
is there any windows based GUI for the intel C++ compiler 7.0? well, i use the Microsoft Visual C++ 6.0 but the standard edition (jeje, about 9 years i use only standard editions...) i think it is enough perfectly .
ok, intel write that the compiler would not be run under the VC standard. . now i will run the ICC as a standalone compiler but with a graphical user interface does anyone know a tool?
hope you can help me and understand my bad english
|
|
|
|