|
i changed it to what you said, and now i got this error pop up:
error C2664: 'strcpy' : cannot convert parameter 1 from 'char' to 'char *'
what does it mean by parameter 1?
thanks!
~SilverShalkin
|
|
|
|
|
well, i looked up some of my errors in msdn and it said that the main problem of the code is that the person is trying to set two seperate things equal to each other, like-a pointer and a non pointer, or a intiger and a character. one of the main problems as i was going through out figuering this out was... my header file held different info than my cpp, so it made a bunch on errors....
I think i got it, to the point that i wont come across the problem again, unless its a typo "which, as a experienced programmer know (theres always typos )"
Thanks for your help!
~SilverShalkin
|
|
|
|
|
I finished my program and I want to use an istall wizard for others to get it. I downloaded one but it wanted a EULA and many other things that I couldn't provide. Are there any that are a basic Install Wizard, where everything has a default?
-Raffi
|
|
|
|
|
Try Inno Setup. It's free, easy to use and it rocks!
http://www.jrsoftware.org/isinfo.php
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
I'm partial to NSIS; it's small, quite flexible, and not too difficult to use.
--------
A closed mouth gathers no foot. --Shog9 --
|
|
|
|
|
Thanks for the advice. I'll try those two.
-Raffi
|
|
|
|
|
use wise installer...
it's well too
|
|
|
|
|
I need some way of repeating a task for a certain time period, the psuedocode would look like this....
<br />
set_timer(30 seconds);<br />
while (timer_not_expired)<br />
{<br />
DoSomething();<br />
}<br />
ideas?
|
|
|
|
|
You can get the system's time. I think there's a CTime class from MFC.
|
|
|
|
|
You can use a boolean. Along with a timer.
Use SetTimer to set a time for 30 seconds.
while(bContinue)
{
do your stuff here
}
In the timer handler, set bContinue to false and also KillTimer the timer
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
You must also make sure you are not doing some busywaiting.
Best regards,
Alexandru Savescu
|
|
|
|
|
The purpose if this derived combo box is to allow each option to occupy more than one line.
I have implimented DrawItem, MeasureItem, and PreCreateWindow functions.
I use AddString to add string to the drop down list.
Edit: I did not overwrite AddString
In my DrawItem function, I use GetLBText( nIndex, rString ). (And then use DrawText after inserting line breaks.)
rString wouldn't return the string I inserted earlier.
In fact, the string is at most 4 characters long, and characters aren't the ones that can be typed in from the keyboard. Most of time the characters are just bars similar to this "|".
I'm thinking that AddString and GetLBText are not good with user drawn control but I don't know exactly how.
Another relatively minor problem is that MeasureItem doesn't seem to be taking effect. It doesn't matter what height MeasureItem gives, I still get 1-line height.
All help is appreciated, thanks.
Edit:
Also, the reason I use AddString is because
1) I am expanding a program with this new class where CComboBox was previously used. If I write AddItem then I will have to go back and change every instance where AddString is used.
2) It's nice to have the same interface as CComboBox.
Another question, can I adjust the edit control part of the Combo Box on the fly? When I play around with it, I can get each option in the drop down list to occupy different height, but I haven't figure out how to adjust the size of the edit control.
Thanks.
|
|
|
|
|
Is the CBS_HASSTRINGS style set? (Has Strings in the resource editor)
--------
A closed mouth gathers no foot. --Shog9 --
|
|
|
|
|
No. I don't quite understand what CBS_HASSTRINGS do. I allocate the objects programmaticaclly, do I still need to worry about the resource editor?
I will try it tomorrow when I can. Thanks.
|
|
|
|
|
I am little new to GUI programming and especially CRichEditCtrl class.
How can i implement the below using CRichEditCtrlView:
For example in Wordpad if i open a new text document and uses some rich editing feautres then while saving the file it asks me "saving the file in text format looses formatting features."
How do i really detect whether user has used any rich editing feautres in a text document of CRichEditCtrlView
|
|
|
|
|
First of all I don't know those classes.
But I think you need to update a m_bRichEditFeatureUsed flag.
Set it to 1 when such feature is used; Set it to 0 after you save.
|
|
|
|
|
Use the m_bRTF boolean of the CRichEditDoc class. You can set it to TRUE or FALSE depending whether you want to save as RTF or plain text respectively.
Best regards,
Alexandru Savescu
|
|
|
|
|
I think what he's asking about is weather the user has actually used any RTF in the document, not how to choose which format to save in.
Unfortunately I can't think of any simple ansawer to that question
|
|
|
|
|
When I selected the menu "build-start debug-attach", there is no processes shown in the "attach process" dialog box.
Whp know the reason?
Thanks
|
|
|
|
|
Are you running under an account that has debug privs?
|
|
|
|
|
anyone knows how do i find if some of the resources(ico,bmp,dlg) in my project are not in use without going check one by one ???
Casa.Sapo.pt
|
|
|
|
|
Could you just do a global search of your project source code for the resource ids to see if you call them anywhere?
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
yes
but the project is to big ,and go one by one to find those that are not in use is hell of a job
Casa.Sapo.pt
|
|
|
|
|
Choose Edit | Find in Files from the menu. THis will allow you to search a whole directory and it also allows you to specify the types of files to search.
I use the keyboard combination Alt + E, I. If the search is taking to long, then you can specify Alt + E, I again to stop it.
The results from the search will appear in your output window.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
yes, but try to imagine that you have a lot of resources created by outher programmers , and you whant to delete all of those that are not used, without do the search one by one
i think i have found one project do build on my free time
Casa.Sapo.pt
|
|
|
|