|
This source is a process such as IE ,MSN Explorer and web brows.
|
|
|
|
|
Check MSDN for COM interfaces to IE.
Kuphryn
|
|
|
|
|
I have an application which represents the filesystem of a device connected via a serial link. I do navigate the device's filesystem and copy files to/from using drag/drop or clipboard. Here comes the problem. I implemented Drag/Drop and Clipboard using CF_FILEDESCRIPTOR and CF_FILECONTENTS with IStream. But i donno how to copy the nested folders from the application to the Windows Explorer. Should i enumerate the contents of folder and all itz subfolders? It can be timeconsuming over the serial link.
Somewhere i read that 'IStorage' can be used for the purpose. But how ? No information or examples regarding "how to implement IStorage" is available. Can anybody help me to solve out this, pleeeeeeeease?
regards
Nathan. R
|
|
|
|
|
Hi everyone,
I have a C++ question.
I have the following data format:
----------------------------
byte 3 unsigned 8 bits
----------------------------
Byte 2 unsigned 8 bits
----------------------------
Byte 1 unsigned 8 bits
----------------------------
Byte 0 unsigned 8 bits
----------------------------
Now, I have a pointer to byte 0. I have an unsigned short encoded in Byte 2 and byte 1.
So, what should I do...
assume baseData = pointer to byte 0
unsigned short myVal = *(baseData + 1)
or
unsigned short myVal = *(baseData + 2)
My initial feeling was that the latter is correct. But I am usually wrong in things like this
Thanks
Without struggle, there is no progress
|
|
|
|
|
pankajdaga wrote:
My initial feeling was that the latter is correct.
They're both syntactically correct. You did not mention what it is you are trying to do.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
Hi,
I am trying to get an unsigned short that is stored between byte 2 and byte 1...i.e. 2 bytes...16 bits altogether.
I know that they are syntactically correct... I am wondering which one gives the right value fr my problem.
Thanks,
Pankaj
Without struggle, there is no progress
|
|
|
|
|
pankajdaga wrote:
I am wondering which one gives the right value fr my problem.
The former.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
Hi,
You are right.
unsigned short myVal = *(baseData + 1) gives the correct result. However, I do not understand why that is. (baseData + 1) doesn't it point to the lower 8 bits of the short value that I am interested in. I do not understand how exactly the conversion takes place. If you could shed some light onto it, I would really appreciate it.
Thanks again,
Pankaj
Without struggle, there is no progress
|
|
|
|
|
IMHO it depends on what basedata is: If it is a BYTE* , basedata+1 is the BYTE after basedata.
If basedata is of type unsigned short* , basedata+1 is the unsigned short after basedata , and that would be the BYTE basedata+2/+3 .
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
unsign char baseData[4] = {1, 2, 3, 4};<br />
<br />
unsigned short myVal1 = *(unsigned short *)(baseData + 1);<br />
unsigned short myVal2 = *(unsigned short *)(baseData + 2);
for little endian system:
myVal1 = baseData[1] + baseData[2] * 256,
myVal2 = baseData[2] + baseData[3] * 256
for big endian system:
myVal1 = baseData[1] * 256 + baseData[2],
myVal2 = baseData[2] * 256 + baseData[3]
For some systems, such accesses would cause problems: data alignment violation or resulting unpredictable values
elkarian@hanmail.net
|
|
|
|
|
Hi,
i need highly optimized image(bitmap) processing classes. There are lots of scaling, shadowing, blurring, warping and pixel-manipulating operations for my OwnerDrawn Inerfaces. I can use GDI / GDI+ (when XOR mode is possible again) / DirectDraw,Direct3D or the Intel IPP Package(comparatively cheap). Which is the best one? I use only INTEL processors, so the CPU dependence (IPP) does not matter.
Thanxs !
Marco
|
|
|
|
|
Hello !!!
How to get system date and time in C?
How to save this date and time in MYSQL database?
Samhita
|
|
|
|
|
|
Hi,
I'm trying to deploy my application that uses the Soap Dll's ( VC++ 6.0 application that calls a web service in a server), ... the problem that I have on clients with 98:
- If I install IE 6.0 and the Soap Tool it all works fine ( altough... the user becomes a bunch of programming tools .. tracers and... ).
- If I try to install IE 6.0 and then soap_core.msm, it doens't work at all , in theory soap_core.msm should be what I need to deploy my application but... what I'm missing here ?
Greetings
Braulio
PS.: Is not very professional to install on the clients machine a Trace Utility, WDSL Generator, and documentation XDDD...
|
|
|
|
|
I need to program UART in Visual C++ to acquire serial data from a hardware
device can some one please help me in this context...
Ever Welcome...
|
|
|
|
|
|
Hi all,
I have a dialog with the followings:
1) it is a modal dialog
2) it is always on top
3) it has no frame (style = popup, border = none)
my question is this, when the dialog has focus (which means i am clicking over it or moving my mouse over is) i want to do one thing, but when the focus leaves the dialog (click somewhere else, or move mouse somewhere else) i want to do something else.....
i tried to catch these messages and it didn't work properly:
1) WM_SETFOCUS/ WM_KILLFOCUS
2) WM_ACTIVATE / WM_ACTIVATE_APP
can any1 help me here?
thanks in advanced
Yaron
|
|
|
|
|
Try SetCapture to get mouse input even if it's outside of your dialog.
To act only once when mouse cursor leaves dialog area try to catch WM_MOUSELEAVE, WM_NCMOUSELEAVE.
Hope that's what you need.
Mickey
|
|
|
|
|
hi,
thanks for reply.
I don't know how to catch these messages, can you show me?
thanks
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
In your derived class MESSAGE_MAP section
BEGIN_MESSAGE_MAP(CMyDialog, CDialog)
ON_MESSAGE(WM_MOUSELEAVE,OnMouseLeave)
END_MESSAGE_MAP()
Mickey
|
|
|
|
|
thanks
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
I want to do some test about keyboard loging without using hook api. in the following codz, i hope when i press Esc key, the prog will com to an end. but it seems PeekMessage() will never work, always failed. How could it be? Thanks a lot.
#include "windows.h"
#include "stdio.h"
void main()
{
MSG msg;
char buffer[10];
int i, ch;
while(true)
{
if( PeekMessage( &msg,
NULL,
0,
0,
PM_REMOVE))
{
if( msg.message == WM_KEYDOWN && msg.wParam == VK_ESCAPE) break; //Esc pressed, then quit
printf( "Enter a line: " );
/* Read in single line from "stdin": */
for( i = 0; i < 9; i++ )
{
ch = getchar();
if(ch != '\n') buffer[i] = (char)ch;
}
/* Terminate string with null character: */
buffer[9] = '\0';
printf( "%s\n", buffer);
*buffer=NULL;
}
else
printf("peekmessage failed...\n");
Sleep(3000); //ensure there is enough time for keyboard operations
}
}
|
|
|
|
|
Console Applications don't recieve windows messages.
|
|
|
|
|
thank you so much. but can i use a keyboard or mouse hook api in console applications?
|
|
|
|
|
No.You can't do that either.
|
|
|
|