|
|
Thank you very much, ı think I solved it without DirectX,using winmm.lib was easier for me, tx again..
|
|
|
|
|
Hi,
I am working on a GUI appliction on .Net using C++. In this application we create some files like wordpad. Now I want to right click on file and then open with my application. Can you tell me which trigger or event to identify this. As I am able to open the file but thats a default file not the one I am willing to open. So I need to Identify the event or message.
Thanks in Advance
|
|
|
|
|
|
Hi All
I have a problem to get rows and column in excel.i use code this for get rows and column.
long row,col;
Excel::Ranger pRange = sheet1->UsedRange;
COleSafeArray sare(pRange->GetValue());
sare.GetUBound(1,&row);
sare.GetUBound(2,&col);
it's working fine for me.But when excel sheet content start from row 2 and column 23(row 2 and column 23 taken as a example),then row and col show "1".But actual range is row=2 and col=23.How can i get the row and col actual range.Plz help me
|
|
|
|
|
Hi, is it possible to embed manifest file for windows xp visual styles
in my application using visual c++ 6? The only way I know of is to give the
manifest file the same as the executable and copy it into the directory where the executable is. But I want a way the manifest file will be embedded in the application using visual c++ 6.
Visual C++ 2005 embeds the manifest in the application. But I don't know what and how I should do it int visual c++ 6 so that the manifest will be embedded in the application. Please Help.
|
|
|
|
|
|
Alternatively check this - Enabling Visual Styles[^]
-Sarath.
Rate the answers and close your posts if it's answered
|
|
|
|
|
Hi to All,
I like to learn things.I have learn VC++. Was working in console based application. little bit of MFC too.
Now I would like to learn COM with VC++. that's what I got a suggestion from my friend.
I search the net, but didn't get any idea of it. So please help me with the following
What do we mean by COM programming. An example would be great.
Any docs or links to learn that...in VC++
thanks a lot
-----------------------------
I am a beginner
|
|
|
|
|
You can read about COM at wikipedia for a brief orientation here[^].
As for how to do COM, I suggest you have a look at some articles below the COM section here at CodeProject: http://www.codeproject.com/KB/COM/
Michael Dunn has written a nice introduction to COM that can be found http://www.codeproject.com/KB/COM/comintro.aspx
|
|
|
|
|
thanks for yout reply...I will go through it...
One doubt, please clear me.
As a basics, i have read about COM as ...."sharing binary code across different applications and languages"
Then what is the difference between COM, a dll file and ATL?
thanks in advance
-----------------------------
I am a beginner
|
|
|
|
|
hrishiS wrote: Then what is the difference between COM, a dll file and ATL?
COM (Component Object Model) is a specification for building (and consuming) reusable binary objects (components).
DLL (Dynamic Linking Library) is a collection of functions, in binary form, linked at run-time with your executable.
ATL (Active Template Library) is a library of C++ templates (i.e. source code) used as a tool (or framework) for COM development.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Could not have said it better myself Carlo.
I could possibly have added that ATL may be used for developing more than just COM components as it contains templates for e.g. windows.
But ATL is my preferred way of developing COM components.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Thank you.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
|
You may start reading this article [^].
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Everything is in MSDN about COM
Avoid everything else (not professional...)
|
|
|
|
|
Hello all,
While trying to abort user logoff and shutdown programatically for windows 2008 , windows 7 and then running a process after it results in a screen with a message that following processes are still running and process abc.exe is preventing system to logoff. How can I disable this screen so that I can handle the process of Logoff and thus execute my processes accordingly.
Regards
Kushagra
modified on Wednesday, October 7, 2009 8:02 AM
|
|
|
|
|
In my knowledge it's not possible to disable this service. It's actually an information window provided by OS to make the user aware of which applications are blocking shutdown.
Application Shutdown behavior is Changed since Windows Vista. In Windows XP, applications are allowed to veto WM_QUERYENDSESSION without displaying any UI indicating why they need to cancel shutdown. These “silent shutdown failures” are highly frustrating to users, who often take a minute or two to realize that shutdown has failed because no UI was displayed. This is no longer permitted.
Applications that must block shutdown should use the new shutdown reason API. Also applications should no longer rely on always being able to block shutdown. Windows Vista/7 will also not allow console applications or applications that have no visible top-level windows to block shutdown
The details are given in The documentation is available in MSDN website.[^]
Also check this article - Describing Windows XP and Vista Shutdown in Application context[^]
-Sarath.
Rate the answers and close your posts if it's answered
|
|
|
|
|
Thanks Sarath , You really are a life savior
Cheers,
Kushagra
|
|
|
|
|
Hi all
As you know, we can export a dll's functions using "dumpbin.exe" tool.
Now, I want to know if Is there any posssibility to see the function definitions of dll file?
That is, a complete definition of the functions with their input and output arguments in the dll?
THX.
|
|
|
|
|
look in the header file (of the dll-code)
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
bahareh655 wrote: Now, I want to know if Is there any posssibility to see the function definitions of dll file?
That is, a complete definition of the functions with their input and output arguments in the dll?
I do not think this is possible unless the dll contains debug information with these details. Function definitions are placed in (source) header files for use by the compiler, but are not retained in the object modules.
|
|
|
|
|
bahareh655 wrote: That is, a complete definition of the functions with their input and output arguments in the dll?
See here for possibilities.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Simply disassemble and see the call stack
|
|
|
|