|
Build a DROPFILES struct and store it in the clipboard as the CF_HDROP format. (An HDROP is just a DROPFILES*)
--Mike--
My really out-of-date homepage
He who laughs last, didn't get the punchline and is just laughing so he won't look silly.
Sonork - 100.10414 AcidHelm
Big fan of Alyson Hannigan.
|
|
|
|
|
I have an application. When the user clicks save, then
I put all the information into five (5) separate txt files.
It's easy to do.
However, how can I save the file as one file with a specific
type? I can append all the information from each file onto
the new file (and separate it with some blank spaces and other
notes), but let's say I save it as a info.dyl (I just made that
up). Windows explorer doesn't recognize the dyl file type.
How can I make it this new file type be recognizable and have
it's own icon? Can I create any new file type?
Please, any response any one can give me will be greatly
appreciated.
Sincerely,
Danielle (an overworked graduate student)
|
|
|
|
|
Hi Danielle ,
You could save your file in xml format, a lot of companies are currently doing this ...
Or you could go to Explorer shift-right click, choose "open with ..." then
choose your executable , this association will be saved in the registry,
and in your application catch the command line parameter's , in case of MFC CComandLine , or you could program a shell extension (Michael Dunn excellent articles ).
Hope this helps,
Cheers,
Joao Vaz
|
|
|
|
|
You can store your data however you like, but it sounds like OLE structured storage would be good for you, since you could then keep all 5 sets of data separate, yet all in the same disk file.
As for making an association with .dyl files, you just have to create the right reg keys under HKEY_CLASSES_ROOT. Look at HKCR\.txt and HKCR\txtfile to see how it's done for .txt files.
--Mike--
My really out-of-date homepage
He who laughs last, didn't get the punchline and is just laughing so he won't look silly.
Sonork - 100.10414 AcidHelm
Big fan of Alyson Hannigan.
|
|
|
|
|
HKEY_CLASS_ROOT\.dyl
As default value save "dylfile"
HKEY_CLASS_ROOT\dylfile\Shell\open\command
As default value save Your application Path. For Example "C:\MyApps\dlyApp.exe %1"
Regards....
Is Friday!!! and Party!!!
My big question is: Where is Buffy????
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
Hi Guys,
I've been wondering this for a while. What is the difference between retail symbols and checked symbols for Windows XP? Which one would be most useful for debugging? And, is there any performance difference when installing either of them?
http://www.microsoft.com/ddk/debugging/symbols.asp
Frank
|
|
|
|
|
Don't get the checked symbols unless you are running a checked build of the OS.
--Mike--
My really out-of-date homepage
He who laughs last, didn't get the punchline and is just laughing so he won't look silly.
Sonork - 100.10414 AcidHelm
Big fan of Alyson Hannigan.
|
|
|
|
|
How can i code a dialog to run and call OnInitDialog() and immediately close it again (possibly invisible) from another parent dialog?
Kuniva
--------------------------------------------
God gave man a penis and a brain but not enough blood to make both of 'em work at the same time.
|
|
|
|
|
I think you want to create a modeless dialog
call CDialog::Create() instead of CDialog::Modal()
remove visible flag in the dialog editor.
- God bless the World
|
|
|
|
|
You can cause the dialog to kill itself at the end of InitDialog.
Here's a snip from MSDN
#include "MyDialog.h"
void CMyWnd::ShowDialog()
{
CMyDialog myDlg;
int nRet = myDlg.DoModal();
if ( nRet == IDOK || nRet == 5 )
AfxMessageBox("Dialog closed successfully");
}
void CMyDialog::OnSomeAction()
{
int nRet = 5;
EndDialog(nRet);
return;
}
Hope this helps,
Bill
|
|
|
|
|
Hi Kuniva,
Why do you want to do that ?
Joao Vaz
|
|
|
|
|
hi, just to let you all know i've already come up with another solution but thanks for your help.
As for Joao's question:
I had made an application with one central dialog and alot of modal child dialogs. In the OK handlers and OnInitDialog handlers i had written alot of functions that called all sorts of functions from controls on those modal dialogs and all that. But i had forgotten i needed some of the data from those dialogs in my main dialog on startup(so i'd have to call the dialogs first to load the data, this was my mistake)
+
I was just interested, you can never know too much.
Greets
Kuniva
--------------------------------------------
God gave man a penis and a brain but not enough blood to make both of 'em work at the same time.
|
|
|
|
|
Really like your quote, so true;P
"An expert is someone who has made all the mistakes in thier field" - Niels Bohr
|
|
|
|
|
Hi,
I would like to explore the Windows CE thing ( or if there is one newer standard for that things from microsoft...).
I have several questions... first of all... which thing should I use to develop softare for windows CE, it seems that VC++ 6.0 is not the tool, maybe a VC++ for Windows CE ?
What about ATL and MFC support in Windows CE, how it is ?
It´s possible to develop and test windows CE stuff, with the normal Pc or an emulator ?
Any books tutorials or...
Thanks in advance, Bye !
Braulio
|
|
|
|
|
I have several questions... first of all... which thing should I use to develop softare for windows CE, it seems that VC++ 6.0 is not the tool, maybe a VC++ for Windows CE ?
Right, there's a special edition of Visual Studio for CE whose look&feel is almost identical to your good old IDE.
What about ATL and MFC support in Windows CE, how it is ?
There's an ATL version for Windows CE, tough I haven't used it myself. As for MFC, it's available and greatly resembles the MSVC++ version of the library, tough every now and then you are (unpleasantly) surprised by some lacking feature. My personal feeling about MFC for CE is that you feel comfortable with it immediately and porting some stuff for MSVC++ is not that hard (the main issue is probably that Windows CE is Unicode, so you have to use TCHAR s and _T("...") everywhere).
It´s possible to develop and test windows CE stuff, with the normal Pc or an emulator ?
There's an emulator that works pretty well, so you don't need any real gadget to try your apps. Not sure, but I think an NT/2000/XP system is required to run the emulator.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Hola de nuevo !
Right, there's a special edition of Visual Studio for CE whose look&feel is almost identical to your good old IDE.
Which is the name of that version ?, It´s coming with the MSDN subscription ? I´m tried to find out something like that but I didnt´found anything, only a Service Pack 5 for VStudio and the .net Beta of the new version of VStudio.
Thanks, Bye !
Braulio
|
|
|
|
|
It's called MS Embedded Visual Tools 3.0 for WindowsCE v3.0. It contains eMbedded Visual Basic and eMbedded Visual c++. You can download it from here:
http://www.microsoft.com/mobile/developer/downloads/emvt30/
This allows you to target PocketPC 2000 devices or the emulator. By the way, the emulator only works with Win NT/2000/XP. This is the current release version for general programming.
To target PocketPC 2002 devices or emulator (Win NT/2000/XP-only) you need the PocketPC 2002 Beta SDK. This must be installed on top of EVT 3.0. You can download it from here:
http://www.microsoft.com/mobile/developer/downloads/ppcsdk2002.asp
There is a WindowsCE 4.0 beta version of eVc++ that is available, but it only produces emulator code. You can download it from here:
http://mssjus.www.conxion.com/download/wince/install/ee/nt5xp/en-us/winceemul.exe
Good Luck.
|
|
|
|
|
Thanks !!!
Thanks for the URL´s, hey the mini-MFC, is pretty good !
One question more, where can I find some good tutorials about CE programming, or good books ( I mean to learn how to synchronize the Pc with the palm and...).
Thanks, Bye !
Braulio
|
|
|
|
|
Whenever a dialog box template is open in the resource editor, the Dialog toolbar and Controls toolbar are supposed to come up automatically. In my case, thats not happening. How do I bring them up?
|
|
|
|
|
Right click on the toolbar area, and select Controls.
Michael
|
|
|
|
|
Hi All,
I want to create programablly extended dialog-box. It is like to provide a button "More >>" and on clicking on this button I get more option in dynamically expanded space.
Thanks for replies.
--Sumit
|
|
|
|
|
I think the easiest way is to create a dialog in resource editor with full width/height (meaning the "more" button would be about in the middle of the dialog)
In OnInitDialog just use SetWindowPos to adjust the width/height, this way you can hide the lower part of your dialog.
When you klick on the "more" button just use SetWindowPos again, this time with a bigger width/height.
It's that easy!
But I think some gurus here will find some better possibilities
regards
Gregor
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Never forget to disable the controls that are not visible.
- God bless the World
|
|
|
|
|
http://www.codeproject.com/useritems/dlgboxtricks.asp
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
My application currently uses a couple of different sounds that are fired when certain events happen. I allow the user to customize these sounds and I store the results in the registry. However, I would like to move the management of these sounds from my program and into the OS. Does anybody have any details on how to add an "event" and associated "sound" into the general "AppEvents" area of the registry so that the events and sounds appear in the OS dialogs - i.e. Start>Settings>Control Panel>Sounds and Multimedia?
|
|
|
|