|
I can't use double and float variables correctly.
When I appoint a float or double values to float or double variables, The variables have 0.0 or 1.0 values. they don't have another values.(for example 0.152 or 0.53 ...)
I don't solve this.
or is there another usage float and double variables? I haven't known
deniz
|
|
|
|
|
deniz79s wrote:
or is there another usage float and double variables? I haven't known
No!
double d = 0.0;
double d = 1.0;
double d = 0.152;
double d = 123.456;
float f = 0.0;
float f = 1.0;
float f = 0.152;
float f = 123.456;
should all produce the correct results. Now if you wher trying to do something like "if( d == 1.0 )" you may be having a problem (don't do that!).
INTP
|
|
|
|
|
Hello,
it is the first time I have to distribute self-written applications
in Visual C++.
Now I am facing the following problem: My application needs some DLLs
that are not present on a standard Windows XP installation. I know that
because I can run it on my PC where I have installed Visual Studio also. When I run it on a XP-only (without VS) system, it crashes with error code xxx135 which means missing DLL.
Now what I did was using depends 2.1 to see all the DLLs that I need.
However now I do not know which ones of them I have to include with my
application installation routine. All of them would sure be overkill, since there are some standard dlls that are present on all Windows platforms I believe.
But how do I know which DLLs are definitely present and which ones I have to add to my installation package?
Thank you very much for your help.
Tony
|
|
|
|
|
There may not be a definite way to predict which DLL's are already on your customer's system and which are not but basically, if the customer is using Windows2000 or higher versions OS, you may just assume this:
If you did not specifically include any ".lib" files into your project, then you do not need to worry about DLL's, if you did, however, you will need to distribute the corresponding DLL's as well.
One more thing, if you used VC.net to develop your application, then "MFC70.DLL" must be distributed because most OS's(including Win XP) do not have that file by default.
|
|
|
|
|
Abin,
thank you very much for that information, that helps a lot.
I was really having a hard time because I used a code example
from codeguru.com on how to get the MAC Address of the PC.
http://www.codeguru.com/Cpp/I-N/network/networkinformation/article.php/c5451
I used Method 3 (GetMACAdapters) and this includes
iphlpapi.lib. Now DependencyWalker showed it relied
on EFSADU.DLL which was not present on XP Home. So I
was very confused. I now learned that although DepWalker
lists EFSADU.DLL (which is called by IPHLAPI.DLL), this
does not mean that it is explicitly linked.
I must say that I have not really understood the concept between
explicitly and implicitly linking, so I will try to learn about
it.
Thank you again,
Tony
|
|
|
|
|
Hi All,
I have written a server application, which accepts info from other client machine (this for the present is being simulated wthrough HyperTerminal).
After I reviece a packet from the Hyper terminal (comprising of a UserID and Passwd), I check against a DB (I am Using ADO DB Calls). I am trying to open the DB connection and the Recordeset inside the Server thread. Here it fails, (Open returns a FALSE). The DB Calls works well outside the thread.
Can the DB Calls be never made from within a thread..
Please advise. Any Help is appreciated
|
|
|
|
|
hi
Make sure u have called ::CoInitialize() in the thread.
rgds...mil10
|
|
|
|
|
Hello,
I am working on Win32 API platform. I have tried the message "WM_NCMOUSELEAVE" in Win 2000 OS. In 2000 OS the message will not get. but it is working in XP OS Fine. Can u please help me for this problem. I need to get the message (WM_NCMOUSELEAVE) in 2000 OS also.
Thanks in Advance
Baskar
Baskar
|
|
|
|
|
You should use Spy++ to confirm you are correct. My guess is this is not your problem.
Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com
|
|
|
|
|
|
here i am developing an application in which i need to add a button in IE regarding my applicaitons options. How shall i do that.
One more thing is that is it posiible to add buttons or toolbars to .exe files
if possible how shall i do that.
Basheer
|
|
|
|
|
You can search for toolbar here in CP , there are few articles on that
|
|
|
|
|
Use the interface of IE explorer. It is well documented in MSDN.
|
|
|
|
|
Hi,
I have a string like this stored in Oracle "áạà". In degugger, "á" shows 0x00E1 and "à" shows 0x00E0, but "ạ" (0x1EA1) shows 0x00BF. It's changed to "¿" (0x00BF).
Does any one know how to read it?
Thanks.
|
|
|
|
|
Hi,
I am having one application (developed by someone else). This application involves so many exes. How can I know the order in which these exe's are called by the application when it runs?? Do I need to build the debug version of the application as well as the exe to debug this application and place them respective folder??
I have to fix a bug in the application. How to do that in this scenario??
Regards,
Satya
|
|
|
|
|
well simplly you can move all the supporting exes to another folder, and then run the main application, Then it will start complaining about the exes missing and you then come to know the order of the supporting exes called.
|
|
|
|
|
Hi,
I don't know what are the exes called by the application. That's the problem.
|
|
|
|
|
U mean to say that U don't have the code of the application. Then U are trying to do reverse Engineering. If yes? you are going to loose Ur hairs soon.
|
|
|
|
|
But breakpoints from the debugger. For more sophisticated debuggin use softice.
Long live Matt Patrick
|
|
|
|
|
hi
simply open the main exe in any text editor , better 2 use a hex editor and search for 'exe'. just a thought, that much only. try it out.
rgds...mil10
|
|
|
|
|
Hi All..
I would like to find out the type of internet connection at the Client System such as ISDN or Direct Connection or Modem 56.6Kbps etc.
How can i do it...
|
|
|
|
|
This is an uninstall program.
after delete all other files, the uninstall app needs to delete itself.
but i failed to do that.
which function is available for deleting a program itself?
thx
includeh10
|
|
|
|
|
Most of us (now days) use some body elses program to create the install/uninstall and do not worry about the details. But basicaly a small program that is loaded in memory can delete its' own files and directories and when it exits it no longer exists.
DeleteFile() might do the job. I can not remmeber or find the standard C method.
INTP
|
|
|
|
|
The only way I know of is to use MoveFileEx(..., NULL, MOVEFILE_DELAY_UNTIL_REBOOT) .
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
thx, i will try soon
includeh10
|
|
|
|