|
Have you tried BeginWaitCursor and EndWaitCursor .
Nibu thomas
Software Developer
Faqs by Michael dunn
|
|
|
|
|
Yup, I have tried BeginWaitCursor(), EndWaitCursor(), I put in a message handler for WM_SETCURSOR, but again, the wait cursor shows up when I call my function from one class, but not when I call it from another, and they are both going to the same place. And yes if I put a breakpoint before my lengthy operation and then it shows up.
Thanks
|
|
|
|
|
Hi All,
I have wireless application which has socket connection for the data transfer. In windows XP SP2, i add the application into firewall exception list. But in windows 2000 i have problem to add it into that list. Please help me ....
Thanks and regards
Mahesh Patil
|
|
|
|
|
Dear all,
I have implemented an IE in an mfc application (using the microsoft webBrowser).
I need to detect the position where a user clicks (x and y coordinates).
How do i do that ?
thanx
llp00na
|
|
|
|
|
You need to use the COM interface to the Document Object Model and susbscribe to events. The event notification data will contain the x,y coordinates
Start Here[^]
"What classes are you using ? You shouldn't call stuff if you have no idea what it does" Christian Graus in the C# forum
led mike
|
|
|
|
|
thanx for your reply,
I have been looking at that article before. But i thought that this way will only allow me to identify which html element the user clicked, it does not specify the exact (x,y) of user clicks.
m I wrong ???
llp00na
|
|
|
|
|
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.
|
|
|
|