|
I think he has a handle and is going to find out which key, the handle, refers to, i.e. He wants to find the key that he opened already and has a handle to it.
//This is not a signature
while (I'm_alive) {
cout<<"I Love Programming";
}
|
|
|
|
|
|
bahaa123654 wrote: How can I retrieve a registry key path from HKEY (Key Handle) ?
CRegKey!
|
|
|
|
|
Hai,
This is a program for serial data reception. Can anybody tell me how this code is working. It is programmed to receive 18 bytes (a configured data packet of 18 bytes) of data.......
Code is:
CTimerDlg::OnOnComm()
{
if(m_comm.GetCommevent() == 2) // m_comm is serial member variable
{
UCHAR *parray; // local array
COleVariant var;
var = m_comm.GetInput();
long comL;
HRESULT hr = SafeAraayGetUBound(var.parray , 1 , &comL);
if(hr == S_OK)
{
hr = SafeArrayAccessData(var.parray , (void**)&parray);
if(hr == S_OK)
{
Rxdata[RxBuffcount++]=parray[0]; //local array
}
SafeArrayUnaccessData(var.parray);
if(RxBuffcount == 18) // if 18 bytes received proceed
{
Processdata(); // data processing
RxBuffcount = 0;
}
}
}
}
My questions are:
1. How is this code working.
2. Is this code receiving data bytewise or not .
3. If so how and where to check for the first (header) byte (say 0xaa).
Plz help me.
Regards,
Guddappa T H
|
|
|
|
|
where is Rxdata declared?
Press: 1500 to 2,200 messages in just 6 days? How's that possible sir?
Dr.Brad :Well,I just replied to everything Graus did and then argued with Negus for a bit.
|
|
|
|
|
Guddappa T H wrote: 3. If so how and where to check for the first (header) byte (say 0xaa).
it is necessary to use this class or code
|
|
|
|
|
i need some advice on creating an application that looks'n feel like windows
explorer:
-one CTreeCtrl
-Below the CTreeCtrl an info region
-Below the info region, a status bar.
-Data displayed in CTreeCtrl are files and directories
pls help me i need it now
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
|
i have to use tree controls. pls explain me how to use this
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
|
thats ok i have to create wundows style explorer mfc application using tree list control. i need some idea for this. pls help me with a sample code
-- modified at 0:45 Monday 2nd April, 2007
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
By default you can create one sample application by clicking few clicks. I think it is easy and you already know about this. why you are still searching againg again? what exactly you need.
To develop explorer style app just do these steps.
-------------------------------------------------
Open Visual Studio . VC++ environment(It can be 6.0/7.x, I am telling steps in 7.x)
1) create new project.
2) Select project type is MFC application
3) Select over view -> nothing to select.
Application type -> Single Document.
Project Style -> Windows Explorer.
4) Click Finish button.
Here you will get One Tree View control. and One list view control in your project.
You can get what exactly you need. It is easy to use for you. Check MSDN for that. MSDN can be used by any one in online. ;P enjoy.
Nice talking to you. If you judge people, you have no time to love them. -- Mother Teresa
|
|
|
|
|
hmm but i am using dilaogs not document. if i clicked a button it will show the tree control dialog. is there any way to do this in document
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
Which part is giving you trouble? Creating windows? Sending messages to a control to get it to
do what you want?
Mark
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
see i am using a tree control with three items
browse
card
password.
if we select the child browse the folders and files in usb drive should be displayed similar to the one in windows explorer. my trouble is i cant display the files. how to do this
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
The FindFirstFile, FindNextFile. FindClose APIs can help you get the file names (if you don't
have them already).
Then you need to create a node/item for each file in the tree control (or listview control like
the right-hand window in Windows Explorer.
Mark
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
Give code snippet for dynamic tab control?
|
|
|
|
|
Give me some money before...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
|
For free? Maybe for a tab control, but a DYNAMIC tab control...that will cost you.
Umm, what's a dynamic tab control?
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
that means,tab and dialog or propertysheet will increase at run time based on input.
|
|
|
|
|
prathuraj wrote: tab and dialog or propertysheet will increase
will increase or created at runtime!
|
|
|
|
|
prathuraj wrote: tab and dialog or propertysheet will increase
if you want to increase then you have to look at api like SetWindowPos and MoveWindow and if you want to create same at runtime look at CTabCtrl::Create!
|
|
|
|
|
Tab Control Reference[^]
What are you having problems with?
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
prathuraj wrote:
i want free service
have a look at
CTabCtrl::Create
|
|
|
|