|
did you try dumpbin.exe ?
VuNic
|
|
|
|
|
Hi Zia
The very basic way to find a signature is to get the corresponding *.h file
As far as i know, you can just see the exported/imported fn's but not the signature. But there are some traces left out on that.
1) If fn's are in simple 'C' dll
Then no way to find a way on that. But of course if you are very good at assembly language, you may dissamble & you can trace upto certain extent using stack memory transactions which are basically highly associated with the size of the input arguments but not the TYPE.
In short you can know the size of the input arguments in bytes (that too not always) but you can NOT know the type.
2) If it a C++ dll. then the linker will decorate the exported functions with springs like MyFuncion@ZA@12J@owe.
even though it has some kind of interpretions its difficult to rely solely on that
3) If it's a COM dll.. lol always 4 COM functions will be there whose signature is public. other than that if anything else is exported the same rulez as above applies
In short.. I am sorry.. its really very difficult to find it out (i think so). And you cant use dumpbin (coz its just a complicated version of depenwalker)
Thanks
_______________________________________
Achievement is not a destiny but a endless journey
|
|
|
|
|
Hi,
I am trying to keep my PPP connection alive on an Windows machine. To do that, I want to send an "LCP echo-request" packet over the established PPP link.
Do you know how to enable the generation of an "LCP echo-request" packet over an PPP connection, using the RASAPI on Windows?
Regards,
Hideraldo
|
|
|
|
|
Hi, I have a small MFC app, i have two buttons, i have a dummy function too.
I have a small dll, the issue is when i press the button 2 I have memory leak (i have tried with CMemoryState and does not detect any memory leak, but i can see it in the Process Explorer).
In my simple dll code i have in the "stdafx.h" file the following line
#include <afxwin.h>,
but if i comment this line, the memory leak is gone.
I tried to comment all my dll code (except that include) and the problem still persists.
Any clues of this behavior?
(I tried in a Win32 application instead of MFC and i have the same problem)
void CPruebaThreadDlg::OnBnClickedButton1()
{
LPVOID lpParam = NULL;
AfxBeginThread(dummy, lpParam, THREAD_PRIORITY_NORMAL, 0, 0, NULL);
}
void CPruebaThreadDlg::OnBnClickedButton2()
{
int i;
HMODULE hmod = LoadLibrary("SimpleDll.dll");
while(true)
{
for(i = 0; i <= 150; i++)
OnBnClickedButton1();
Sleep(700);
}
}
UINT dummy(LPVOID)
{
return 0;
}
|
|
|
|
|
Hi,
I want to copy the complete data from an excel sheet to another excel sheet.And also serach for the specific data from the specific column and copy down the data to the excel sheet. Is there any possible way to do so?
Thanks a lot in advance.
Chetan.
Helping others satisfies you...
|
|
|
|
|
Hi,
You can convert that xls to csv and parse it to read the specified coloumn ,this would be the fast mechanism if the data to be read is huge,
or else you can use automation .
Regards,
FarPointer
|
|
|
|
|
hi,
Thanks for reply.
There is a .xls file. i tried to open it using fopen but i realized that excel file is a binary format file and could not be opened using fopen.
I have to use .xls file. i cannot use .csv file.
I have no idea about automation. could you please refer some links, which helps me.
Again thanks a lot
Chetan.
Helping others satisfies you...
|
|
|
|
|
|
Thanks, i will go through the link.
Helping others satisfies you...
|
|
|
|
|
Hello friends
I have written a code in c++ for parallel port reading .
Programm is running successfully.
A analog to digital converter is attached to parallel printer port using 25 pin.
one side this ADC is attached to a device which gives analog voltages.
Following programm read the voltages pulses and print their values.
But I am not able to run this programm in VC++
I using conio.h and _outp _inp.
I have to run this programm using MDI application only,not dialog based.
plz suggest me where should I write the code ,what modification should I made in the following programm.
How is parallel port programming work in VC++(MDI app only)
void CStartport2View::OnDraw(CDC* pDC)
{
CStartport2Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
CString ms,ms1;
unsigned char a; int j,i,c; float voltage;
while(1)
{
c=0;
_outp(0x378,2);
_outp(0x378,0);
_outp(0x378,2);
for(j=0;j<5000;j++);
for(j=0;j<16;j++);
{
_outp(0x378,3);
for(i=0;i<5000;i++);
_outp(0x378,2);
for(i=0;i<5000;i++);a = _inp(0x379);
a=a&0x8; a=a>>3;
a=a&0x1; c= c*2; c=c|a;
}
ms.Format("%d",c);
pDC->TextOut(50,50,ms);
getch();
voltage = (5000.*c)/4096;
ms1.Format("%f",voltage);
ms1 = ms1.Mid(0,ms1.Find('.')+3);
pDC->TextOut(50,100,ms1);
}
Any help would be appreciated
rohini sharma
|
|
|
|
|
|
Thanku Khaan .I try and then i will inform u.
rohini sharma
|
|
|
|
|
well actually this program will work only in windows 9x series!.....i had this prob !.....didnt work in the winxp,2000.....
itz like after the win 9x os series all the ports,global mem share can go only via win api related calls.....
|
|
|
|
|
I am wusing win 98.
Should I use App class for global mem variables.
Sprry but i could not understand ur solution.
bye
rohini sharma
|
|
|
|
|
Hi
I had a problem with an XP program (VC 6.0) which wouldnt let me 'talk' to the parallel port. I found that using inpout32.lib and calling Inp32() or Out32() solved the problem - I dont know if this would help you.
You need to include
short _stdcall Inp32(short portaddr);
void _stdcall Out32(short portaddr, short datum);
after the header files as well.
Mike
|
|
|
|
|
Just wondering how winamp sets focus on the current instance's main window when the exe is launched and winamp is already running (ofcourse you have to uncheck "allow multiple instances" check box in preferences)
I thought it was cool!! Any idea how to implement that?
I did find a very useful article on limiting instances (right here on CP!!) though
Clickety[^]
----------------------------------------------
If you need a hammer get C and shut up. If you need a nail gun get C++ and shut up. If you don't need *those* things (and good design should tell you) then by all means get a factory, factory, factory.
--code-frog@codeproject
|
|
|
|
|
Using FindWindow to obtain HWND of the main window and ShowWindow, SetFocus...
|
|
|
|
|
|
Tanx for the replies guys!! I kinda figured that one out on my own... :->
----------------------------------------------
If you need a hammer get C and shut up. If you need a nail gun get C++ and shut up. If you don't need *those* things (and good design should tell you) then by all means get a factory, factory, factory.
--code-frog@codeproject
|
|
|
|
|
i want to check machine offline or online(having internet) through programming if anybody have idea please share with me.
Bankey Khandelwal
Software Engineer
|
|
|
|
|
|
hi,
i have problem with SMTP server.
I wrote simple client but first reading from Socket is very slow.
I do function call like this:
socket() //ok
connect() //ok
select() //with 5 sec.
There is first problem, this function return after 5 sec. with result
OK (socket readable) but if I'll try 1 sec. instead it returns after 1
sec. with same result.
...next call works ok = if socket is readable it returns
immediately. (just first call after socket openning)
But another problem is
recv()
It takes about 40 sec. to get "220 something"
And again, another call of recv() works correctly (couple ms.)
Does anyone know what's wrong?
Thank you
viliam
|
|
|
|
|
hey people,
i developed a vc++ COM component and i want to invoke it in my web page. i registered the component successfully n tried following code in ASP:
<%<br />
dim obj,temp,try<br />
set try=CreateObject("NEW.CReply")<br />
obj=try.CReply<br />
temp=obj.Reply(login,reply)<br />
Response.Redirect("Login.asp?reply="&reply)<br />
%>
this gave me the error:
Microsoft VBScript runtime (0x800A01AD)
ActiveX component can't create object: 'NEW.CReply'
some suggested me to use ASP.NET - the .Net-COM interoperability feature. but i've no idea as to how to do it! i read some books and found out that i should use tlbimp utility.
but tlbimp says 'NEW.dll is not compatible type library'
one of my friend said i should check the binary compatibility of the dll.
can anyone please help me out?
|
|
|
|
|
How to display only buttons in XP Style not the toolbar and propertysheets
knarasimharao
|
|
|
|
|