|
Personally whenever I find the need to do this I use Sourcer from "V Communications".
new window www.v-com.com
same window www.v-com.com
|
|
|
|
|
I wish I knew an equivalent of Anakrino that would decompile x86 code.
I've never heard of Anakrino, but the de-facto serious disassembler for x86 would be IDA - The Interactive DisAssembler sold by DataRescue.
|
|
|
|
|
Rama Krishna wrote:
1. Depends.exe Get the latest from http://www.dependencyviewer.com
Actually it is Dependency Walker
Best regards,
Alexandru Savescu
|
|
|
|
|
Why is it that if I do a atoi on a string it trims off everything after the "."?
CString strDollar = "6.24";
int nDollar = atoi(strDollar);
nDollar then equals 6
is there another way i can do this and keep the .24?
Thanks
|
|
|
|
|
|
tnx
|
|
|
|
|
nDollar should be a float or a double. Any decimal places in an int will get chopped off.
|
|
|
|
|
MS doc says to change Network Neighborhood Icon
Modify key HKEY_CLASSES_ROOT\CLSID\{208D2C60-3AEA-1069-A2D7-08002B30309D}\
DefaultIcon = shell32.dll,17
When I change default "shell32.dll,17" to "shell32.dll,7", it does not change icon on Win XP and Win2K.
Any thoughts?
|
|
|
|
|
My guess is that it's cached in ShellIconCache. Maybe UpdateWindow(0); can help.
If all else fails you could try using Spy++ on the desktop SysListView32 and see what happens when you manually change the icon.
|
|
|
|
|
ok... my problem accures in this line of code:
strcpy(M_ID, STID);
error C2664: 'strcpy' : cannot convert parameter 1 from 'char' to 'char *'
M_ID is a member of my class ID, and
STID is a char created within the function that this code lies.
i dont understand why it says char to * char because, non of them are pointers.
thanks for your help!
~SilverShalkin
|
|
|
|
|
strcpy requires char* as arguements to the function.
So if STID is a plain char, the compiler will attempt to convert the char to a char* to fit into the arguement in strcpy. Since there is no conversion for the compiler to do this, it reports and error.
You will need to use a char*.
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!
|
|
|
|
|
ok... so i would have to have a pointer on the second one like:
strcpy(M_ID, *PID);
*PID points to SID which is the intake of info for the function.
or would i do...
strcpy(M_ID, PID); //without derefrencing it?
Thanks!
~SilverShalkin
|
|
|
|
|
You do not want to dereference it. But once again, PID must be a char*.
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!
|
|
|
|
|
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.
|
|
|
|