|
SHBrowseForFolder
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
I want to parse the HTML page using MSHTML. before I can parse, so I use IPersistMoniker to load URL.
Then the problem arises, if the URL is not existed. IPersistMoniker still load it, and said it had completed. how can tell the loaded pages is for non-existed URL from correct URL ?
|
|
|
|
|
Have you looked at IsValidURL ?
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!
|
|
|
|
|
Hi there:
I have a compiled DLL created with C++. Is there a way to look inside to see what it's made off?
Thanks
A reasonable man adapts himself to the world. An unreasonable one persists, trying to adapt the world to himself. That is why all the progress in the world depends on the unreasonable men.
|
|
|
|
|
You can partly do it: Start VC++ and choose open file. In the dialog, choose All Files, and in the Open As combo, choose Resource. I leave the rest as an exercise...
Michel
It is a lovely language, but it takes a very long time to say anything in it, because we do not say anything in it, unless it is worth taking a very long time to say, and to listen to.
- TreeBeard
|
|
|
|
|
Following tools are useful
1. Depends.exe Get the latest from http://www.dependencyviewer.com
2. Dumpbin.exe for disassembling
I wish I knew an equivalent of Anakrino that would decompile x86 code.
|
|
|
|
|
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
|
|
|
|