|
TooShy2Talk wrote: How about int, double or float to String?
Do you mean int , double or float to "CString".
If not so, pls try CString.
There are functions like itoa(), atoi() etc to convert from int to string, and vice versa. Doing google search with "int to CString" will display many solutions.
I am sorry, I saw your post now only.
If you still need help, please post a new message, so that all people can see your question.
Best Regards,
Suman
-- modified at 11:57 Tuesday 11th September, 2007
|
|
|
|
|
It's jusk OK.
Thank you again.
|
|
|
|
|
I always use it like that and it works
CString str = "";
double d = XXXX; //Any value
str.Format (_T("%lf"), d);
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
|
|
|
|
|
Hi everybody,
I've written a mfc application which uses dundas gauge controls (together with windows forms). Everything works fine in debug or release mode but when I try to install the software on a different machine (windows XP, freshly installed) the application don't even start. Actually the installation works fine but the software don't run. I've checked all dependencies with dependency walker and also included "DundasWinGauge.dll" in the setup project (VS2005 setup wizard). DotNet is installed on the target machine. If I exclude the dundas gauge control then the application also runs on the target machine.
Does anybody have an idea?
Best regards,
Frank.
|
|
|
|
|
By chance, do you need vcredist_x86.exe on the target machine?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I don't know. What is vcredist_x86.exe? It's my first mixed-mode setup project. Actually it's my first setup project at all.
|
|
|
|
|
Franken wrote: What is vcredist_x86.exe?
See here.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
hm, this unfortunatly doesn't solve the problem I've installed vcredist_x86.exe on the target machine but the error still occurs.
|
|
|
|
|
Ok, could it be a (ActiveX) control that needs to be registered?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I use TeeChart as ActiveX Control but this doesn't seem to make problems. It is the only ActiveX control which I use. When I build the setup project with the ActiveX control and without the gauge control (dll) everything works fine. The gauge control don't have any ActiveX component.
|
|
|
|
|
|
I don't know wether the problem is due to the manifest file. I have know experience with mixed-mode setup projects. I just added the exe file to the setup wizard and when I compile the setup project it recognizes the dependency to the dundaswingauge.dll which is then added to the setup project. When I exclude the dundas gauge control from the project. The application runs fine also on the target machine. The dundaswingauge.dll doesn't show up in the manifest file. Might this be the problem?
Best regards,
Frank.
|
|
|
|
|
I'm using the Win32 API on WindowsXP with Visual Studio 2005 to create an application with toolbars. I am using imagelists assigned to these toolbars to manage their state. Previously, I was just using normal image list (TB_SETIMAGELIST) and a hot image list (TB_SETHOTIMAGELIST). In that code, I could press a button, and disable it. It would show as grayed out and pressed.
Now, I have added using disabled image lists (TB_SETDISABLEDIMAGELIST) which look much better. I can disable a button and it shows it as grayed out using my disabled image. I can press a button and it looks fine with my normal image. But if I press the button, followed by disabling the button, instead of getting a pressed button with my gray image, I get a somewhat pressed button (there is a different background color but its not "sunken" in), and my normal image is showing in color.
Is it possible when using disabled image lists to have them pressed too?
Thanks,
|
|
|
|
|
|
You are using Bloodshed C++ in the version given?
Then you should be able to add libws2_32.a to the list of libraries to link.
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
|
Then you should either add the lib to the makefile or enter it into the link-lib-dialog of whatever IDE you are using.
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
That is exactly the part I'm confused about.
How would I go about linking the file using the command line g++?
|
|
|
|
|
You really call your g++ by command line?
Normally, you use a makefile for anything more complex than "Hello world".
The g++-command line switch for "linklib" is "-l ", i think. but better look it up in the help/man-file, by calling "g++ -? ".
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
It is "-l".
Now tell me if I'm doing it right:
g++ test.cpp -l libws2_32.a -o test
The above line causes the folowing error:
"Cannot find -llibws2_32"
The libws2_32.a file is in the same directory as the test.cpp
|
|
|
|
|
You really should read a decent tutorial about using a makefile!
E.g. http://www.cs.umd.edu/class/spring2002/cmsc214/Tutorial/makefile.html[^]
But running
g++ -c test.cpp<br />
g++ test.o -l libws2_32.a -o test.exe
should work.
Maybe -L adds a directory to seach for libraries? ..;. would be ok to add here.
Sorry, I can't help you more than google can. I am not a g++-specialist and have no g++ here.
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
Ok, thanks for your help m8.
Though it still says "cannnot find -llibws2_32.a".
Anyone else? This really stumped me.
|
|
|
|
|
Hi All,
My goal is to remove all references to product A from product B executable. When searching for A product name in B product executable I've found the following constructs
ЂР[ .?AV?$Composite@I@@
or in hex
80 D0 5B 00 00 00 00 00 2E 3F 41 56 3F 24 43 6F
6D 70 6F 73 69 74 65 40 49 40 40
in PE executable's .data section. Looks like all the class names from source code are mentioned there. I'm reusing source code from product A so its name heavily mentioned in these "symbols". Note, that I'm looking at release build, with no debug info.
Could someone please suggest what those constructs are and how to avoid them?
WBR O.Z.
|
|
|
|
|
why ?
Are you afraid someone might look at your product B and find that you did nothing but use product A ?
If you bought library A and use in your product B and try to hide that, people who worked on A might be a little pissed off. no ?
|
|
|
|
|
Don't worry both A and B belong to us and no pissed off people around, for now at least . This is just a matter of business decisions. Of course I can use executable compression for obfuscation purposes but I would like to find out what the problem actually is anyway.
|
|
|
|