|
Hello All,
I am working on a application with VS 2005, in which so many calculation is happaning and also graphics is drawing.
i am having some statement in which values are coming as follows
double aa1 = 69444400000.0;
double aa3 = 694.0;
double aa4 = aa1 + aa3;
if i performed these statement before graphics is drawing than they calculating correctlly
the values of aa4 is 69444400694.0
but after drawing the value is : 69444403200.0
while value shold be 69444400694.0
plese give some idea...
thanks
Banks
|
|
|
|
|
Could you make a clone of the variable for backup, and then add some breakpoints to trace the value of aa4 ?!
double dTemp = aa4;
Maxwell Chen
|
|
|
|
|
Try to post the relevant code.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
thanks for reply,
even i am using hardcoded vaues as i write in my previous post.
than also VS is not able to clculate or right value.
when i calculate by these variables in immediate window than it shows right value.
thanks
|
|
|
|
|
bankey1010 wrote: even i am using hardcoded vaues as i write in my previous post.
than also VS is not able to clculate or right value.
I know you hard-coded such values, but what about the graphics you're doing?
What kind of memory accesses are you doing?
How can we help if you don't post the code?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
Your drawing logic may be altering the value. Try declaring aa4 as a const double . But, some of us may be providing you an appropriate solution if you post some relevant code.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->ßRÅhmmÃ<-·´¯`·.
|
|
|
|
|
bankey1010 wrote: but after drawing the value is : 69444403200.0
How are you verifying this?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
error LNK2001: unresolved external symbol "class DIR_320 * dir_320" (?dir_320@@3PAVDIR_320@@A) D320_DIS.obj.
error LNK2001: unresolved external symbol "char * ASTERIX" (?ASTERIX@@3PADA) D320_DIS.obj
I am getting the above errors while building my application. Class DIR_320 is in dircomm.h and it is included in D320_DIS.cpp where it is referenced.
Can any one provide solutions on how to fix these?
|
|
|
|
|
I resolved it. I declared the variables as extern. After removing extern in the variable declaration it built successfully.
|
|
|
|
|
Great!
Maxwell Chen
|
|
|
|
|
You say the class DIR_320 is coded in D320_DIS.cpp, but where is dir_320 ?
Iain.
|
|
|
|
|
That'll teach me to look at the forum, go away and do some actual WORK for a while, then answer a message...
Iain.
|
|
|
|
|
dear all,
I want help from you . I want to copy my mails which are in mailbox to the text file by program is anyone help me how can i do .
warm regards,
vaibhav
|
|
|
|
|
My app CreateRemoteThread in other apps.
In the remote thread proc, call to GetWindowText fails,
but SetWindowText works.
What's the problem?
Thanxxxxxxxxxx
modified on Friday, January 04, 2008 4:19:12 AM
|
|
|
|
|
According to MSDN, GetWindowText is not able to get window text of other process.
Maxwell Chen
|
|
|
|
|
I call it in the thread, and the thread is created in that process using CreateRemoteThread
|
|
|
|
|
In MSDN description:
CreateRemoteThread creates a thread runs in the virtual address space of another process.
Maxwell Chen
|
|
|
|
|
Yes, so GetWindowText runs in another process (A) too, What I do is to get the text of window in A. But it still fails.
|
|
|
|
|
I suggest you to implement a user message handler in process A. And B sends the user message to A. Let A's message handler to do the job to get window text.
Maxwell Chen
modified on Friday, January 04, 2008 6:57:37 AM
|
|
|
|
|
Have you tried sending a WM_GETTEXT message instead?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
What was return value of GetWindowText?
|
|
|
|
|
Hi All,
I've the following requirement.
I've an SDI application and an ActiveX component.I need to load the activeX component in the view of the SDI application. That is, host the ocx in a view. The ocx component GUI looks like a dialog having certain controls.When I open a view in the SDI application, I should be seeing the dialog which is nothing but the ocx.
How do i develop the ocx component. Should this be a dialog? how do I host the ocx in the view.?
Please help me.
Thanks in advance,
Yeskay
|
|
|
|
|
Why do you need to create and host an ActiveX resembling a Dialog when you can simply use directly a Dialog to the purpose?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
The ocx is common component which will have many functionalities. this can be used by many applications. so, creating the dialog and handling it in all the applications is not acceptable.
|
|
|
|
|
If you haven't yet developed you ActiveX (taht was my impression when I read your OP) then you have the chance to separate off the "many functionalities" from the UI and go on with a simpler design. On the other hand, if you've already developed it then use MFC support for ActiveX controls.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|