|
Yes, true. Its just a demontration from MSDN , need to consider threading issue while actual coding.
|
|
|
|
|
|
Programm3r wrote: and the code snippet
Mention not. Its from MSDN . I find it while looking for these functions.
|
|
|
|
|
hi
I have pencile cursor in my application.
I want to bottom-left corner of cursor to point current point in my window.
how can i do this?
Thanks,
Rushiraj
|
|
|
|
|
rushiraj.jhala wrote: I want to bottom-left corner of cursor to point current point in my window.
Can u be more clear please?
If you want to change the mouse cursor, then handle WM_SETCURSOR message
Do your Duty and Don't expect the Result
|
|
|
|
|
Hi,
I have change my cursor with SETCURSOR but In normal case where top left corner of cursor
gives you the position of cursor in your application window (where your cursor points e.g.(100,100)).
In This case i have pencil cursor so i want it to give me point where niddle of my pencil tool points not the top-left corner of my pencile tool.
You can see in any drawing application suppose in mspaint when you have rectange tool selected it starts deawing form top left corner of cursor but when you have pencile tool it will not set pixel at top left corner but the point wher niddle of pencil tool points.
Thanks,
Rushiraj
|
|
|
|
|
Probably you need to change the hot spot in your cursor to whatever point that you want. You can do this using the resource editor.
I hope this helps
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
hi,
ya thats what i want.
Thanks a lot.
Rushiraj.
|
|
|
|
|
Did u find out solution?..
I didn't know where to set the hot spot in resource editor...
If anybody knows, pls reply...
Do your Duty and Don't expect the Result
|
|
|
|
|
You can go to the resource view and then open the cursor file. Check for the hot spot option in the toolbar and select it and point to some location in the cursor design file. The next time you run the application the hot spot would be the point that you set. For example in windows the hot spot is the top point of the arrow cursor
Rate this message if it helps...
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
yeah its really helped me...
I didn't know abt this tool..
Do your Duty and Don't expect the Result
|
|
|
|
|
hi,
Yes, In VS2003.net when u open cursor from resources you can see one toolbutton on toolbar set enable like magicwnad tool button in photoshop
Thanks,
Rushiraj
|
|
|
|
|
I've found some problems with the Release version of a simple
VS2005 MFC application.
If I compile that version with "Use MFC in a Shared DLL" option,
the application cannot run on a PC where there is no VS2005
(when I try to launch the executable, the OS shows an error message).
The problem doesn't exist if I compile the appication with the
"Use MFC in a Static Library".
Why the version compiled with "Use MFC in a Shared DLL" option
doesn't work correctly ?
Thanks
|
|
|
|
|
|
As I've recently learned, the remedy suggested below does apparently not apply when distributing applications built with VS2005. The article linked to in the post sent by Cédric in this thread should be read instead.
You have to distribute the necessary DLLs with the application.
Use Dependancy Walker to find out what DLLs the application is using.
It's a good idea to read this[^] article on how to avoid problems when distributing the release version of your application.
-- modified at 5:48 Wednesday 14th March, 2007
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Roger Stoltz wrote: You have to distribute the necessary DLLs with the application.
Use Dependancy Walker to find out what DLLs the application is using
With Visual Studio 2005, it isn't that easy unfortunately Microsoft introduced the concept of manifest files to avoid dll versions problems. You cannot deploy your application as easily as with VC6 (just copy the exe and the dll's).
|
|
|
|
|
Oops, I didn't know that, I'm still using VC6. :->
Thanks for advising me Cedric.
I've voted your other post to mark it as the better solution to the OP's problem.
I suggest you vote my post down for the same reason.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Roger Stoltz wrote: Oops, I didn't know that, I'm still using VC6.
The good old time
Roger Stoltz wrote: I suggest you vote my post down for the same reason.
I don't think a lot of people look at the votes for that (specially when there are 1 votes: you need several of them before your post turns gray).
|
|
|
|
|
Cedric Moonen wrote: Roger Stoltz wrote:
Oops, I didn't know that, I'm still using VC6.
The good old time
Yup, for good and bad.
Usually my customers provide the development environment and most of the time they don't see any benefit to upgrade. For the time being I'm actually using Eclipse...
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Roger Stoltz wrote: For the time being I'm actually using Eclipse...
I use it for developping in Java (a little bit) and I find it extremely powerfull. I never used for C++ code.
|
|
|
|
|
|
There's also lots of deployment info here[^]
"Great job, team. Head back to base for debriefing and cocktails."
(Spottswoode "Team America")
|
|
|
|
|
I am a Beginner in this.. Sorry if the question has already been posted.. But I want to read a .PST without any dependancy on outlook/exchange..I am Sure its Possible with MAPI.. Any sample code would help.. Thanks..
|
|
|
|
|
K.P wrote: I am a Beginner in this.. Sorry if the question has already been posted.. But I want to read a .PST without any dependancy on outlook/exchange..I am Sure its Possible with MAPI.. Any sample code would help.. Thanks..
try googling!
|
|
|
|
|