|
WinEXec is deprecated - it may be removed from Windows at some point in the future. It's only for backwards compatibility with 16-bit Windows.
You should consider using ShellExecute or CreateProcess instead. CreateProcess is normally preferred if you know that the file is an executable.
In either case, the executable found (and even if it's found) depends on the executable search path. See CreateProcess in MSDN[^] for more details.
|
|
|
|
|
Got a weird problem here... I have some list controls that are drag sources. I use LVM_CREATEDRAGIMAGE to get the images, however this returns a solid black rectangle if the list has a background image (as set by LVM_SETBKIMAGE ). The drag image is perfect for lists that do not have a background image.
WTF? Any ideas?
--Mike--
Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber
CP SearchBar v2.0.2 released
|
|
|
|
|
I've never used those message so I may be out on a limb here
Aren';t the drag image fro the listview partially (or wholly) dependant on how you set up the image list that you associated with the listview? Maybe the image list doesn't have the right settings for tranparent images? Just guessing
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
SELECT * FROM User WHERE Clue > 0
0 rows returned
|
|
|
|
|
|
|
If anybody know link for design specification/architecture for creating Plug-in.
I am not using MFC. Only C++ Win32 SDK.
|
|
|
|
|
The Visual Component Framework[^] makes plug-ins really easy to write.
The whole framework comes in 3 libs and for your purposes you'd probably only want the FoundationKit. It allows you to define RTTI extensions to your classes, register them with a global ClassRegistry, and then be able to do all sort of dynamic queries of object instances. For plugins, you'll conceivably want to create stuff on the fly, and you can also do this, it has support for createing C++ clases from the class name or the unique ID you give the class. If your interested in this feel free to email me at ddiego@users.sourceforge.net. You can also reach me on irc at irc.freenode.net #vcf
Hope this helps
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
SELECT * FROM User WHERE Clue > 0
0 rows returned
|
|
|
|
|
To open a webpage from code i can to this
ShellExecute(NULL, _T("open"), _T("http://www.codeproject.com"), NULL, NULL, SW_SHOWNORMAL);
But if I already have some web pages open in IE, The page is opened in one of them.
And I want a new instance of IE ( or whatever browser the user have installed ) to be opened.
Is there any easy way of doing that?
/Mathias
|
|
|
|
|
I Found this article.
http://www.codeproject.com/internet/urlnewwindow.asp
problem fixed.
Should have searched the site better from the start.
/Mathias
|
|
|
|
|
How can I use such large numbers in C or C++?
Rickard Andersson
Here is my card, contact me later!
UIN: 50302279
Sonork: 37318
Interests: C++, ADO, SQL, Winsock, 0s and 1s
|
|
|
|
|
The only thing that pops into mind is to use BCD arithmetic, though I haven't used it in almost two decades and then it was purely for academic reasons.
(I looked at your birthday. I haven't used BCD arithmetic since before you were born )
Joe Woodbury
When all else fails, there's always delusion.
- Conan O'Brien
|
|
|
|
|
BCD arithmetic, okay, I'll Google for it!
Tackar!
Danke!
Thanks!
Rickard Andersson
Here is my card, contact me later!
UIN: 50302279
Sonork: 37318
Interests: C++, ADO, SQL, Winsock, 0s and 1s
|
|
|
|
|
One solution is to check out freeware math libraries. Check out CodeProject code section and CodeGuru.
Kuphryn
|
|
|
|
|
I am trying to write a program that generates track lists for music cd's. If the cd that the user has in the drive has been written with the track names etc on the disk, I want to be able to read this information from the cd.
I have no idea how to go about this . can someone help??!!
|
|
|
|
|
i think u want to be looking at the extended orange book format
"there is no spoon" biz stuff about me
|
|
|
|
|
use CDDB!
Don't try it, just do it!
|
|
|
|
|
Hello,
I want to do something whenever on of the header columns in my CListView changes in size.
For that I catch the HDN_ITEMCHANGED message. But that one is not fired in the CListView.
What I have is a message entry:
ON_NOTIFY_REFLECT(HDN_ITEMCHANGED, OnItemchanged)
I've read the article by Matt Damon 'Using the CHeaderCtrl', and he mentions something about that, but the article is based on the CListCtrl, not the CListView, so the workaroud doesn't seem applicable for me.
Anyone knows how this message is fired in the CListView?
Thanks
Wim
|
|
|
|
|
WM_NOTIFY messages are sent by a control to its parent. So HDN_* messages are sent from the header to the list. Therefore, ON_NOTIFY_REFLECT is the wrong macro to use since the message isn't sent by the list. (That would be right if you were trying to handle, say LVN_ITEMCHANGED )
Use regular ON_NOTIFY .
--Mike--
Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber
CP SearchBar v2.0.2 released
|
|
|
|
|
Thanks Michael,
That worked like a charm
Regards
Wim
|
|
|
|
|
Hi all,
I am currently designing a plug-in architecture and I am looking for advice on how to go about sending messages to a given plug-in or all plug-ins. I would be sending messages for keypresses, mouse clicks, etc.
Thanks,
Steve
|
|
|
|
|
If your working on an MFC program, I have a library that allows plug-ins here http://www.codeproject.com/library/piarchitecture.asp[^]
That handles all the kind of stuff your talking about.
Roger Allen
Sonork 100.10016
Were you different as a kid? Did you ever say "Ooohhh, shiny red" even once? - Paul Watson 11-February-2003
|
|
|
|
|
Roger,
Thanks, I did't think to look in the library section... but thanks I will have a look
Steve
|
|
|
|
|
Roger,
This is overwhelming. Do you have an example project using a dialog application. I don't need hardly any of what your library is doing. I am only using a dialog base application and all the plug-ins will be dialog based as well.
Thanks,
Steve
|
|
|
|
|
i wrote:
m_DLG.m_rate = recordset.GetFieldValue("rate").dblVal;
even though my m_rate is a float type, when i compile i get the error warning C4244: '=' : conversion from 'double' to 'float', possible loss of data.
i tried to use fltVal and other database conventions but the values will appear distorted. although i get this warning, the data value appear correctly when just wanna knoe if can resolve this.
|
|
|
|
|