|
When you receive an event you can use the IHTMLEventObj family of interfaces to get all kinds of information on the event.
Steve
|
|
|
|
|
llp00na wrote: I need to detect the position where a user clicks (x and y coordinates).
How do i do that ?
By responding to the WM_LBUTTONDOWN and/or WM_MOUSEMOVE message(s).
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
can you please point out any articles ?
thanx
llp00na
|
|
|
|
|
See here.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
thanx,
sorry for my novice questions. How can i add the message WM_LBUTTONDOWN to my application so that every time the users clicks the left menu i retrieve the message ???
llp00na
|
|
|
|
|
llp00na wrote: How can i add the message WM_LBUTTONDOWN to my application...
ClassWizard (Ctrl+W).
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
Nothing happens when i press ctrl+w on the class view. I am using visual studio 2003.
llp00na
|
|
|
|
|
llp00na wrote: I am using visual studio 2003.
It helps to mention this sort of thing up front. See here.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
I am sorry david. it wont happen again.
I have done what you advised. I have got a new message event handler for the click down button. However it does seem to work at all. I have tried printing out some statements there but none is shown up !!!
llp00na
|
|
|
|
|
Hello,
I am writing Win32 DLL that exports functions to Excel. I use the Floating Point
Array Structure in C to pass Excel ranges :
typedef struct _FP
{
unsigned short int rows;
unsigned short int columns;
double array[1];
} FP;
I want to call the exported function from the dll directly in the Excel cells as an array formula via a declaration of the function in a VBA module as opposed to using an .XLL:
extern __declspec(dllexport) void __stdcall SimpleExample(FP *arr){
for(int j=1;j<=5;j++){
arr->array[j]=arr->array[j]*2;
}
}
(the range of cells is 5 long)
Public Declare Function DLLFunction Lib "Mydll.dll" Alias
"?SimpleExample@@YGXPAU_FP@@@Z"(ByRef outarr As double) As Double
However Excel needs to know that the argument passed in is to be "modified in
place" and returned to the calling cells using the Return Type, in this case "1K" - the first and only argument is a FP struct and is to be used as the return parameter.
If the function is registered in VBA -where does this return type code information code go? - in the ".def"
file?
Many thanks in advance for any assistance.
|
|
|
|
|
I think you really need to be using Automation data types to pass data in/out of Excel to VBA. You could pass in a SAFEARRAY* to contain the contents of your range. I would suggest reading up on auotmation data types.
I hope this helps.
Deus caritas est
|
|
|
|
|
Thanks,.. the SAFEARRAY can be used when passing variant arrays from VBA to C++. The Floating Point Array Struct is used when passing parameters that refer to Excel cell ranges directly from function calls in the cells, to and from the C/C++ dll.
A return type is needed to tell Excel of the parameter data types and return type though...
|
|
|
|
|
Hi all,
I want to enumerate all users in my active directory.
I found a class, but the file sddl.h is missing and there was no answer to questions regarding this file. I search the internet and all I found was, that I should use the Microsoft platform SDK. Well, I don't have it.
So, how can I get all the usernames in my active directory?
Juergen
|
|
|
|
|
See here.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
Thanks for the hint.
That was a question, I had then. The suggested solution did work as long, as my program was run on a domain controller. Now, I need a program, that can run on any client with any userrights in my domain.
Juergen
|
|
|
|
|
Strange, as I use that function all the time on non-DC machines. What problem(s) are you seeing?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
Hi all,
I want to read the attributes of a file. Sounds easy, but there must be more attributes that just "Hidden and "System" and so on.
If you open the properties of a file, then there is a property-page, where you can store the author of this document, a short description, keywords and so on. I want to read and write these informations. Can anyone tell me, how it is done?
Juergen
|
|
|
|
|
See here.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
Hi
When we focused on the Network tray icon, we will get Lan Speed...How
should I get the Lan Speed in vc++...Is there any api call..
I'm eagerly waiting for ur response.....
Best regards,
nag.
|
|
|
|
|
See here.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
hi
Thanq very much for ur prompt response and i'm thankful very much for ur kind suggestion...David what u suggest is helpful, but the following APIs r useful if the person don't want to use WMI...
we can use API for getting info of the specified interface...
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iphlp/iphlp/getiftable.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iphlp/iphlp/getifentry.asp
once again thanq very much for ur kind suggestion..
|
|
|
|
|
Hello every one,
Please I need to know how is it possible to convert a decimal number to its binary, octal, and hex equivalents using C++ but without using predefined functions
marmosha
|
|
|
|
|
The classical question ... A number is neither binary, nor octal, nor hex, nor... It is just a number. What is binary or octal is its representation (so how you gonna print the value, to be 'readable' for a human).
A little example: if you have 31 apples on the table, you can say 'I have 31 apples' or 'I have 0x1F apples', you will still have the same number of apples.
So, you want to convert a number into a string ?
|
|
|
|
|
i do know that i should use a stirng to represent the decimal number in another format but the point is that i need to know how to get this format that is in the string
|
|
|
|
|
marmosha wrote: i need to know how to get this format that is in the string
Which string ?
Could you be more explicit and explain what you are trying to do exactly ?
|
|
|
|