|
Your dialog will get TTN_NEEDTEXT notification.
Tomasz Sowinski -- http://www.shooltz.com
** Putt knot yore thrust inn spel chequers. **
|
|
|
|
|
Can you tell me how can i handle this in a dialog based application?
|
|
|
|
|
Have a look at DLGCBR32 Visual C++ sample.
Tomasz Sowinski -- http://www.shooltz.com
** Putt knot yore thrust inn spel chequers. **
|
|
|
|
|
Hi
Does anyone know how can I install a printer driver from VC++ code ?
And how can I set the driver to print always to a file not to a real printer?
Please help if you can (also if you have the answer for only 1 question)
Thanks a lot
Jancsi
xxx
|
|
|
|
|
There's a system API called AddPrinterDriver , seems like a promising starting point.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
The RASENTRY struct is defined differently for XP than for 2K.
Now this is an issue for me.
The XP version has a member called dwfOptions2 which the 2K version does not!
Now if I define WINVER as 0x501 I get the XP struct, but now the program won't work on 2K. If I don't do this, it will work on 2K and XP. Except that on XP I require to set an option for dwfOptions2. Now I don't see a way out other than 2 separate exes
Any ideas anyone?
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
Have to .cpp s that handle the RasSetEntryProperties for 2k and XP respectively (providing functions say SetEntryProps2k and SetEntryPropsXP ), and set the WINVER macro appropriately in each file. At run-time you can select one or another version depending on the OS the program is running on.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
|
You'll make me blush
Happy rasdialing
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Another approach: copy the struct definition, split it into w2k and xp (kind of RASENTRY_XP) and just do a if(os == XP) whatever((RASENTRY*)&my_rasentry_xp); - spares you different executables.
int x=1, y=5;
x^=y^=x^=y;
<a href="http://www.codeproject.com/tips/StupidXORTrick.asp" target="_blank">ClickHereForHelp();</a>
|
|
|
|
|
|
Hello I want to save and print the window generated by my Dialog based application. If any body knows the solution please tell me.
Ravi
|
|
|
|
|
Alt+PrintScreen copies current window to clipboard.
Tomasz Sowinski -- http://www.shooltz.com
** Putt knot yore thrust inn spel chequers. **
|
|
|
|
|
RasSetEntryProperties returns ERROR_INVALID_SIZE on 2K but works fine on XP
Code follows :-
RASENTRY re={0};<br />
re.dwSize = sizeof(RASENTRY);<br />
re.dwfOptions = RASEO_ModemLights|RASEO_ShowDialingProgress|RASEO_PreviewUserPw;<br />
re.dwfNetProtocols = RASNP_Ip;<br />
strcpy(re.szLocalPhoneNumber,"0,35");<br />
strcpy(re.szDeviceName,s);<br />
strcpy(re.szDeviceType,"modem");<br />
re.dwFramingProtocol = RASFP_Ppp;<br />
DWORD err = RasSetEntryProperties(NULL,"HelloWorld",&re,sizeof re,NULL,0);
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
|
|
I'm about to release a new version of one of my products and find that the time has come to migrate from my existing installer (EDI Install Wizard, an ancient relic from the past) to something more modern (and free). After narrowing my choices to NullSoft[^] and Inno Setup[^], I've decided to try the latter.
I'd appreciate any good/bad feedback regarding Inno Setup, particularly comments about the accomapanying script generator helper programs such as IS Tool[^] and ScriptMaker[^].
Many thanks!
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
i use InnoSetup for everything i put out. it handles everything i've thrown at it nicely. for my needs, and for the price, it's nearly perfect. i do all my scripts by hand (my largest script is only like 30 lines, so it's a trivial task).
i've only found one or two oddball things that it doesn't do that i wish it did: like, i haven't found a way to make it install to a specific folder based on the contents of a registry key, for plug-ins (read the key to find the location of the host app, then install to that folder). but that's not really a big deal.
-c
For men use, if they have an evil turn, to write it in marble:
and whoso doth us a good turn we write it in dust.
-- Sir Thomas More
|
|
|
|
|
Thanks, Chris! I'm going to give it a shot.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
I use InnoSetup all the time.
Never had a single problem, for the price you can't beat it.
Asim Hussain
e: asim@jawache.net
w: www.jawache.net
|
|
|
|
|
Thanks, Asim! I'm going to give it a shot.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
I use the installed that comes with VS.NET. It integrates very nicely with my source code.
With just one step, I could rebuild all my projects and have them packaged in an MSI file (wizards and all).
Quite a time saver.
Jeremy.
Jeremy Pullicino
Professional C++ Developer
Done any hacking lately?
|
|
|
|
|
Thanks for your reply, Jeremy! I think I'm going to try InnoSetup for now because I don't want to have the user download MSI. (Many of my users run Win9x/ME).
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Probably a simple question. i'm trying to call ScrollWindowEx as a method of the object CListBox yet the list box is not scrolling to the position I would expect it to go.
So far i have this,
ScrollWindowEx(0, rt.bottom, &rt, &rt, NULL, &rt, SW_ERASE | SW_INVALIDATE);
Perhaps I'm misinterpreting the parameters.
Anyone have some familiarity with this method?
Thanks!
"Why are we hiding from the police, Daddy?"
"We use VI, son. They use Emacs."
|
|
|
|
|
Use CListBox::SetTopIndex.
Tomasz Sowinski -- http://www.shooltz.com
** Putt knot yore thrust inn spel chequers. **
|
|
|
|