|
Did you fail to notice the big Visual C++ 2005 mentioned several times in that article?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
No Idin't . I found the problem, it was the runetime versions packages that dint matched. Now its fine.
But thanks for your Help
|
|
|
|
|
In addition to David's reply, you can also link statically to the C-runtime liraries and MFC libraries. You won't need to install the redistribution package on the target machine. Of course, the size of your exe will be much larger.
|
|
|
|
|
Hello evrybody,
I have big project with lots of source files. The project compiles well, until I don't know how it started to recompile each time I incure the mere code change.
I noticed the incremental compilation option, as well the minimal rebuild option in the linked tab of the project options propertysheet.
I set them to what they should be, and I deactivated all sorts of optimizations, wether at compile time or link time.
No use :
It's like the IDE has no history of what has been compiled or built : always it recompiles evrything, and I have to wait the unbearable 3 or 4 minutes to see the concret effect of the source change or to finally realize that there is a stupid error for which I have to wait another 4 minutes.
Please help.
Our Philosophy, Mohammed Baqir Al Sadr
modified on Monday, October 6, 2008 10:23 AM
|
|
|
|
|
Is the computer's date/time set correctly?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
No David, no. And there is no way I can set the clock correctly.
Our Philosophy, Mohammed Baqir Al Sadr
|
|
|
|
|
hINTModuleState wrote: And there is no way I can set the clock correctly.
You can't set the clock on your local PC? Without that, you'll have to deal with a rebuild each time because VS thinks that all files have been modified.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
And since when does he think that the file have been modified ? Since the future : between the files creation date
and their "anterior" modification date which actually the case for certain files ???
I have lacnhed the IDE lmultiple times
and opened each file of the project many times, and built the project many time without
changing the clock after I acrtually changed it 3 weeks ago? Is that not sufficient for it to look at the time difference between the .obj
files creation dates and the last modification dates for the corresponding source files to
see that nothing has happened at the source code since the last compilation ??
I can't change the clock to the actual date, without setting the clock back to July evrything will stop.
Our Philosophy, Mohammed Baqir Al Sadr
|
|
|
|
|
hINTModuleState wrote: I can't change the clock to the actual date, without setting the clock back to July evrything will stop.
What are you talking about?
If you can't change your clock, then change all the date/times on
the files. Look up the "touch" utility, or write your own. Of course
when you write your own it's going to rebuild every time
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thank you very much indeed, especuially for the touch utility : if the only solution is to synchronize my source file with the machine date/time, then it already came to my mind to mix ::FindNextFile API and the WIN32_FIND_DATA structure in a source code that would do the thing programmatically. But to my luck, and your help This touch utility is a tool ready for the job.
Mark Salsbery wrote: What are you talking about?
Of course I am talking about the ttremendous trial software that I use, and which unless I play with the clock and other things I can never use.
I still wonder what the "creation date" attribute of the source file has to do with this recompilation behaviour.
Our Philosophy, Mohammed Baqir Al Sadr
|
|
|
|
|
hINTModuleState wrote: I still wonder what the "creation date" attribute of the source file has to do with this recompilation behaviour.
The compiler should be using the last modified date/time, not the creation date/time.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Should be.
Anyway I'm going to tests touch utility when I comeback home today, and see if time has anything to do with the recompilation behaviour.
Our Philosophy, Mohammed Baqir Al Sadr
|
|
|
|
|
So thank you again. At least there is hope to solve this long annoying thing today.
Our Philosophy, Mohammed Baqir Al Sadr
|
|
|
|
|
Does anyone know how to segment a JPEG image, for further image processing?
|
|
|
|
|
what do you mean by "segment" ?
|
|
|
|
|
What you mean by further processing ?
further compression ?
Any way, I think if you would like to do the mere processing, then you'll have to decompress the data, and play in the spatial domain with per-pixel values..
Our Philosophy, Mohammed Baqir Al Sadr
|
|
|
|
|
Can you more explain,please but I guess you need to BitBlt ?
|
|
|
|
|
What I need exactly is to detect the location of a certain object in a jpeg image.
After some reserach I came to the conclusion that I have to segment the image based on colors using something called edge detection techniques. Yet, I have no idea how to do this using C++. Are there any libraries that could help me do this?
Note: I am really new in the field of image processing and my application should run on pocket pc (windows mobile 6)
Thanks,
Sherin
|
|
|
|
|
Hi everybody,
i made a simple wait-dialog. It has the capability to display a text.
Here a demonstration code:
WAITWINDOW ww("First Line");
Sleep(2000);
ww.print("Second Line");
Sleep(2000);
ww.print("Third Line");
Sleep(2000);
I never see the CStatic with the text "First Line" or "Second Line".
It's seriously an order problem, that some things are executed after others.
But is there a possibility to force the redraw into the ww.print Function?
That the text-control is changed before the Sleep freezes the entire GUI-Thread.
Big thanks for any help.
Greetings ![Smile | :)](https://www.codeproject.com/script/Forums/Images/smiley_smile.gif)
|
|
|
|
|
baerten wrote: But is there a possibility to force the redraw...
UpdateWindow() perhaps?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Hi, thanks for your answer, but this doesn't resolve the problem.
I tried also: RedrawWindow, BringWindowToTop, ShowWindow(SW_SHOW),Invalidate, ...
But no effect
|
|
|
|
|
Where did you interject those at?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
In "OnInitDialog" ... it's the "farest" code after a dialog is initialized or?
Big thanks for your help ![Smile | :)](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_smile.gif)
|
|
|
|
|
If you sleep inside your main thread, the GUI will be frozen because you don't process GUI messages anymore. That's also the reason why you don't see the two first texts. For this purpose, you should use a timer, this will be much better.
|
|
|
|
|
I meant in relation to the other code you showed.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|