|
Hello,
Can I read function signature from a flat DLL without TLB or LIB extension? Actually, I can read function name but not its parameters from a DLL. What do you suggest about it? Thank you.
Regards,
Orkun GEDiK
SAP R/3 Software & System Support Specialist
ASTRON
|
|
|
|
|
Do u Able to see the Mangled name of Function .
if yes undname.exe to get actual parameter of function
-----------------------------
"I Think this Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
I'm sorry but I can't see any name-mangling at "dumpbin" output at below;
Section contains the following exports for BtCePhilipsCF.dll
00000000 characteristics
3F873F3A time date stamp Sat Oct 11 02:22:34 2003
0.00 version
1 ordinal base
10 number of functions
10 number of names
ordinal hint RVA name
1 0 00001800 BTF_Close
2 1 00001708 BTF_Deinit
3 2 00001920 BTF_IOControl
4 3 000015D0 BTF_Init
5 4 0000178C BTF_Open
6 5 00001A10 BTF_PowerDown
7 6 00001A0C BTF_PowerUp
8 7 00001854 BTF_Read
9 8 00001918 BTF_Seek
10 9 000018B4 BTF_Write
Regards,
Orkun GEDiK
SAP R/3 Software & System Support Specialist
ASTRON
|
|
|
|
|
Actually i am too facing his type of problem and can't found any solution till now,nly soltion i know is that if you in nay case find mangled name you can get real function parameter using UNDName.exe.
-----------------------------
"I Think this Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
I'm trying to capture the whole screen, paint it in my fullscreen window, then add effects to it (transitions and such).
I have a fealing I have to use CreateCompatibleDC but I can't figure out where.
Here is a simplified version of what my code looks like:
INT ScreenWidth = GetSystemMetrics(SM_CXSCREEN);
INT ScreenHeight = GetSystemMetrics(SM_CYSCREEN);
HDC DesktopDC = GetDC(0);//I do this before my window is displayed
HDC MyDC = GetDC(hWnd);//hWnd Is my window
BitBlt(MyDC,0,0,ScreenWidth,ScreenHeight,DesktopDC,0,0,SRCCOPY);//Trying to cover my window
Any one care to help? (WIN32 API only please)
Also could you show me how to double buffer for flicker free drawing?
P.S. GDI is tough
wWw.KruncherInc.cOm
|
|
|
|
|
|
Here is another example.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Anybody has some sample code regarding
MsiEnumProducts
and
MsiGetProductInfo
Yuvaraj N
|
|
|
|
|
Try here.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Hi all,
I have a combo box, which has certain fields being populated from an XML file.
when i click the drop down arrow of the combo box using mouse, it displays all the fields.
but I am unable to select any of them..I am able to select them using the keyboard by pressing up/down arrow,and also using the mouse wheel..
Is my mouse event not getting messaged, or any other problem..Pls give me some tips how do i solve this..
|
|
|
|
|
hi,
i have a critical application that i need to capture the event if it is being killed by user in taskmgr.exe or being killed by scheduler.
i just want to write the event to a log file.
how can i capture this event? any good way to do that?
thanks,
jim
|
|
|
|
|
hi Jim - my internet is really slow, I missed your posting, so I have just posted a similar question!
I am trying to log some information when my program exits, which works fine with a normal exit, but I can't get it to work when the user shuts down Windows. Even Notepad knows when Windows shuts down, and asks about saving unsaved work, so it must be possible!
I'll let you know if I solve the problem!
|
|
|
|
|
See these messages:
WM_QUERYENDSESSION
WM_POWERBROADCAST
WM_POWER
WM_ENDSESSION
Some others to consider regarding changes to system state:
For Terminal Services: WTSRegisterSessionNotification
If you have open files: WM_DEVICECHANGE
If program is dependent upon screen resolution: WM_DISPLAYCHANGE
System settings have been modiifed: WM_SETTINGCHANGE WM_WININICHANGE
|
|
|
|
|
Thanks - WM_ENDSESSION appears to be the important one for me, but I will look at using WM_POWERBROADCAST and WM_POWER as well.
|
|
|
|
|
>> i use microsoft common dialog control.
>> i open browser
>> and choice file(eg:C:/mydatabase/mydb.mdb)
>> save this file path "C:/mydatabase/mydb.mdb"
in my.dat(data file).
my problems
>> my.dat file is create C:/mydatabase/
>> i want to create this data file in my project folder.
(eg:C:/myvc++project/mytestvc++)
>> how to create my data file in my project folder
>> please explain me
>> my code is following
//mydlg.h
CCommonDialog1 m_com;
//mydlg.cpp
void CMYDLG::OnLoad()
{
CString file;
file.Empty();
m_com.ShowOpen();
file=m_com.GetFileName();
file.TrimRight();
if(file.Right(3)!="mdb")
{
AfxMessageBox("Please Select a .mdb file");
}
else
{
datafile.m_dataArray.Add(file);
datafile.Save_file_path();
//save database file path name eg:C:/mydatabase/mydb.mdb
}
}
|
|
|
|
|
#define DATA_FILE_MY _T("C:/myvc++project/mytestvc++/my.dat")
>>>>i change this way
>>>>now, okkk..
>>>>but, always this is not okkk.
>>>>i think
|
|
|
|
|
I can't really think of a better forum for this, so here we go...
Using VS NET IDE, Setup Project, does anyone know of a way to either modify the installation folder dialog or create a new one, so that the user can choose 2 install directories?
For example, 1 will be c:\program files\my company\my app
and 2 will be c:\program files\my company\common files
or something like that. Any ideas?
Rock!
Marcus Spitzmiller
"Why must life be so hard? Why must I fail at every attempt at masonry?" - Homer
|
|
|
|
|
Hello !
When i add Microsoft FlexGrid control, version 6.0 to my dialog, it open a message box with a error text line below :
The ActiveX control cannotbe instantiated.
And:
The ActiveX control "Microsoft FlexGrid control, version 6.0" could not be instantiated because i requires a design time lincese.
What can i do ?
Please help me.
Thank you.
|
|
|
|
|
http://support.microsoft.com/default.aspx?scid=kb;en-us;884878
MSND search is very helpfull thing.
|
|
|
|
|
I used Visual C++ 6.0
What is this problem ?
Thank you.
|
|
|
|
|
I am writing a function that print a bitmap to printer, but the image printed on paper was so tiny that I can hardly see it. I knew the reason (resolution problem).
How can I enlarge the bitmap object to match the printer resolution.
Thanks
|
|
|
|
|
I think StretchBlt api will help
-----------------------------
"I Think this Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
I have a simple MFC custom control which extends CWnd.
It has a CButton member
I want to create the Custom control at run time in my main dialog (i.e. Without using Resource editor)
Could somebody outline the steps to do this? Thx
|
|
|
|
|
One way is to place a text control (static) on your dialog. Give it a proper ID number,
and call
m_MyControl.SubclassWindow (this, IDC_XXXXX)<code>.<br />
<br />
Another possibility is...<br />
<br />
<pre>
class CMyDialog : public CDialog
{
....
CMyControl m_MyControl;
....
};
BOOL CMyDialog::OnInitDialog ()
{
....
CWnd *pReplace = GetDlgItem (IDC_XXXX);
CRect rcReplace;
pReplace->GetWindowRect (&rcReplace);
ScreenToClient (&rcReplace);
m_MyControl.Create ( this, &rcReplace, WS_VISIBLE | WS_ETC, IDC_XXXX);
m_MyControl.SetWindowPos (pReplace, 0,0,0,0, SWP_NOMOVE | SWP_NOSIZE);
pReplace->DestroyWindow ();
....
}
</pre><br />
<br />
You might want a bit of error checking in there too! (ie. what if you forgot to make a IDC_XXXX control),<br />
I normally use IDC_PLACEHOLDER, but the constant name is up to you.<br />
<br />
Good luck,<br />
<br />
Iain.
|
|
|
|
|
How to get the file system? I wanna know if the file specified is in a hard disk with NTFS format.
|
|
|
|