|
well i ran 64 bit compiled code on a 32 bit machine and it ran without crashing but gave me different results from when it ran on the 64 bit machine where it was compiled.....
|
|
|
|
|
Are you certain you targeted 64 bits when building on your 64bits machine ?
Watched code never compiles.
|
|
|
|
|
gone to google 'targeted'
be back. thanks!
|
|
|
|
|
Please start providing some clear facts about your tools, their switch settings, your app, the kind of calculations you are doing, what parts run fine, what parts don't, how the results are different from what you want; show us a code sample (with variable declaration!) and some relevant results (twice: good and bad).
i.e. stop saying "it doesn't work"
|
|
|
|
|
This does not compute! Or does it??
I compiled the same code on a 32 bit machine and also on a 64 bit machine and when I run each one the numerical output is different. There are some overlapping results but there are others missing or extra in the others, or slightly different.
How can this be?
|
|
|
|
|
ns wrote: the numerical output is different.
Which output ? What are the differences ? What is your code doing ?
|
|
|
|
|
if real numbers are involved, any change in compiler or compiler setting can influence the outcome; the difference may range from a change in one of the least significant digits, all the way up to an iterative process not converging any longer (which probably would indicate poor code, an unreliable algorithm or an ill-defined mathematical system).
OTOH it could also be just a stupid bug, say a function parameter list getting misaligned because you didn't treat parameter types as they should (remember, pointers now become 8B, so they don't fit in an int anymore).
|
|
|
|
|
thank you all!
I narrowed it down to where if I disable a certain custom function and call an alternate function, the same results are produced by both builds (64 bit and 32 bit machines)
So I am going to inspect this function and see what gives.
Appreciate the help and I will attempt to be more descriptive in my next question.
|
|
|
|
|
ns wrote: I compiled the same code on a 32 bit machine and also on a 64 bit machine
Compiled as 32 and 64 bits or using the same 32 bits exe on both machines ?
are you doing low level operation on bits ? doing shift (for multiplcation/divisions) ? are you certain all the types you are using have the same size in 32 and 64 bits (loosing precision) ?
Watched code never compiles.
|
|
|
|
|
Check for overflow.
If doing a long string of computations, break them up; you may have precedence wrong.
|
|
|
|
|
I'm trying to monitor clicks in any web browser (might settle for one browser as a default to base my code).
Since it's my first attempt, I've been reading a bit but appreciate any suggestions on the topic.
Most hook examples are dll's that are hooked to a process.
I thought of using the services to load the dll and hook it to the process.
Since it would not bring down my main application.
|
|
|
|
|
|
Hi, dear all,
I have some trouble to debug c++ program in Visual Studio 2005, it used to work before, but since 2 weeks no more.
Now the time if i want to simply debug a c++ program like hello world as stated below
#include "stdafx.h"
#include <iostream>;
int _tmain(int argc, _TCHAR* argv[])
{
std::cout << "Hello World\n";
return 0;
}
I set the breakpoint in std::out line, then start the debug with F5 or click the green triangle symbole, I get the hint that the programm is running in the window title of visual studio, but the breakpoint will never be hit and it looks like the program is not running at all. Then I stop the debug but after the stop debugging i can still find my program is still running in Processe of Task Manager. There is no way i can kill it.
The program could be compiled and also be excuted like using Ctrl + F5 to start. I have tried another hello would program in c#, debug compile everything is fine! it seems, only c++ programm have trouble. Any idea to this?
thanks,
Jing
|
|
|
|
|
Sometimes Visual Studio gets confused, maybe because the files in your project aren't consistent. I suggest you perform a clean build, which probably includes: delteting the obj folder(s), possibly cleaning or deleting the bin folder(s), clikcing menu Build/CleanSolution, then Build/RebuildSolution. That often fixes it. If not, restart Visual.
|
|
|
|
|
I have tried to close vs, restart the compter, uninstall vs and reinstall it, and nothing changed! I can not debug c++ program!
|
|
|
|
|
Check your build configuration. If it's been set to any non debug mode. It happens sometime.
|
|
|
|
|
thanks, i have already checked every where, which should marked as debug and i also send my project to another friend, who has also vs 2005, and he can debug it in his computer, so I think, it's a weird problem, which is not so easy to resolve, maybe something in windows core is damaged, because even after I reinstall the visual studio, the problem is not solved!
|
|
|
|
|
hello guys...well I have a sample from some web site. Upon building this sample, I get this follwing error.
fatal error C1189: #error: _WIN32_WINNT settings conflicts with _WIN32_IE setting
The code looks like this
#if ((_WIN32_WINNT < _WIN32_WINNT_WIN2K) && (_WIN32_IE > _WIN32_IE_IE60SP1))
#error _WIN32_WINNT settings conflicts with _WIN32_IE setting
#endif
how to resolve this error...
thnx
modified on Thursday, September 30, 2010 10:16 AM
|
|
|
|
|
I feel your Windows version & Internet Explorer version are conflicting. May be your windows version is Windows 98 & IE version might be IE 7.
|
|
|
|
|
overloaded Name wrote: how to resolve this error...
Change the values of those preprocessor directives until either of the conditions evaluates to false.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Hello,
can i use a DoModal function without actually making the dialog in the resources.
Pritha
modified on Friday, October 1, 2010 12:47 PM
|
|
|
|
|
If you mean by creating your dialog template in memory, then you can do it after intialising with the CDialog::InitModalIndirect()[^] method.
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
Is the CDialog::InitModalIndirect different for different versions of Visual Studio
|
|
|
|
|
prithaa wrote: Is the CDialog::InitModalIndirect different for different versions of Visual Studio
Not that I am aware of; check the documentation page(s) that I posted in my previous answer.
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
hello,
thankyou for replying.
there seems no difference in calling the InitModalIndirect() but when I changed the version of my project I getting debug just before when the dialog opens and the same dialog was fine in the Visul studio 6.0.
Pritha
|
|
|
|