|
Vikrams,
you've been asking here for long now.
when will you format your questions and make use of the <pre></pre> tags correctly ?
|
|
|
|
|
Thanks for the guideline.
|
|
|
|
|
dude, didn't I mention the <pre></pre> tags, and not the <code></code> one ?
BTW, thanks for the effort, but please edit once again...
thanks. it looks better now...
modified on Friday, August 8, 2008 5:54 AM
|
|
|
|
|
There are different machine code instructions for accessing memory
depending on what size the data pointed to is. DWORD means a double-word
(4 bytes), and a DWORD PTR indicates a pointer to a double word.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
DWOD defines the bit size of the memory being used, PTR is a modifier indicating that we are pointing to a memory location.
The following are defined in x86
BYTE - 8 bits
WORD - 16 bits
DWORD - 32 bits ( double word )
QWORD - 64 bits ( quadruple word )
DQWORD - 128 bits ( double quadruple word )
|
|
|
|
|
Thank a lot all, for your valuable postings.
|
|
|
|
|
//m_wb is WebBorswer AxtiveX
oldproc=(WNDPROC)GetWindowLong(m_wb.m_hWnd,GWL_WNDPROC);
SetWindowLong(m_wb.m_hWnd,GWL_WNDPROC,(LONG)MyProc);
m_wb.Navigate("http://bbs.carsc2c.com",NULL,NULL,NULL,NULL);
LRESULT CALLBACK MyProc(HWND hWnd,UINT uMsg,WPARAM wParam,LPARAM lParam)
{
if(uMsg==WM_RBUTTONDOWN)
return 0;
return CallWindowProc(oldproc,hWnd,uMsg,wParam,lParam);
}
I dont speak eng,Sorry,
No Write!
|
|
|
|
|
Well I can see a code of you but whats problem? can you more explain,please?
|
|
|
|
|
Hi
I have spend 2hr. for serach the USB information artical.But i got only one artical which is showing only USB Device name.Artical is [code]http://www.codeproject.com/KB/system/HwDetect.aspx[^][/code]
But i need more information about USB like how may file is there and it's name also.Can any help me..Becouse i havn't found any artical from net.Plz help me
|
|
|
|
|
If you already know the drive you can just access it as normal drive and search files using
1. FindFirstFile/FindNextFile
2. CFileFind
Can you explain more??
Regards,
Sandip.
|
|
|
|
|
Thx's
may i know which type of explain you want to know from me..
|
|
|
|
|
Davitor wrote: may i know which type of explain you want to know from me..
But i need more information about USB like how may file is there and it's name also.
Quote Selected Text
You want to find how many files and names of those files rite and what all information have to gathered so far??
Regards,
Sandip.
|
|
|
|
|
ok i want find all file which is present in USB and file type may be any type of extension.Right now i haven't got any more information just i read some artical.If you have some good artical then plz help me.
|
|
|
|
|
Davitor wrote: ok i want find all file which is present in USB and file type may be any type of extension.
I assume you have read the article for which you have provided the link. Once you get the Drive for that USB it can be accessed as any other normal drive / folder.
To Get the file information read replies to following post.
Loop through directory[^]
|
|
|
|
|
yes you are right but i am stuck on geting drive name of USB.Plz plz help me to geting drive name of usb..
|
|
|
|
|
I just quickly read article provided by you and i found following line
Well, this is not bad, since at least you will know when an extra "disk" is mounted/unmounted, and you can get the affected drive letter by using the DEV_BROADCAST_VOLUME.dbcv_unitmask.
Regards,
Sandip.
|
|
|
|
|
ok but i am not able to do that so if it is possible then plz help me through some example..
Plz help me
|
|
|
|
|
|
The device will need to be located using the SetupDiXXX() functions to enumerate all instances of the device's interface and get the device path to them. The path can then be passed to CreateFile() . With the handle that CreateFile() returns, ReadFile() can be used.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
ok can you give me some example
|
|
|
|
|
how can i use constent of pi instead of value 3.14
#include<math.h>
M_PI is generating error
M_PI is undefined
|
|
|
|
|
Review your post. What file are you including?
Steve
|
|
|
|
|
i am including
#include "math.h"
and want to use constent pi instead of value 3.14
i am using M_PI
it causes error undefined M_PI
|
|
|
|
|
You could try something like this:
#include <math.h>
const double g_PI = 4*atan(1);
Steve
|
|
|
|
|
So the PI is hidden somewhere else?
system
|
|
|
|