|
BobInNJ wrote: I believe it will work on XP and Vista also
Thats my understanding. I believe I tested it once on my home laptop (Vista) with a multi-core cpu. I walked away from that test satisfied that the function detected multiple CPU's. However, I've not done an exhaustive test with non-intel chips and such.
|
|
|
|
|
Hi!
my file looks like:
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdexcept>
#include <iostream>
#include <eo>
#include <ga.h>
using namespace std;
and then remains of FirstBitGA.cpp file of tutorial-lesson1 of EO project (http://eodev.sourceforge.net/,I don't know whether it matters).
I run it in Visual C++ Express Edition (MS Visual Studio 2005, Version 8.0.50727.762 (SP.050727-7600),Microsoft .NET Framework Version 2.0.50727 SP1)
During linking it throws errors:
FirstBitGA.obj : error LNK2019: unresolved external symbol "class std::basic_ostream<char,struct> > & __cdecl operator<<(class std::basic_ostream<char,struct> > &,class eoPrintable const &)" (??6@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV01@ABVeoPrintable@@@Z) referenced in function "void __cdecl main_function(int,char * *)" (?main_function@@YAXHPAPAD@Z)
FirstBitGA.obj : error LNK2001: unresolved external symbol "class eoRng eo::rng" (?rng@eo@@3VeoRng@@A)
FirstBitGA.obj : error LNK2001: unresolved external symbol "private: static int const eoRng::N" (?N@eoRng@@0HB)
FirstBitGA.obj : error LNK2001: unresolved external symbol "private: static unsigned long const eoRng::K" (?K@eoRng@@0KB)
FirstBitGA.obj : error LNK2001: unresolved external symbol "private: static int const eoRng::M" (?M@eoRng@@0HB)
\Projects\eo2\Debug\eo2.exe : fatal error LNK1120: 5 unresolved externals
I sought couple of days on the net and tried plenty of solutions but didn't find any working one. Please help, I would be very pleased. Thanks for your time.
|
|
|
|
|
I downloaded the distro and it was sparse on docco
in eo-1.0\win there's a README file, contents
"This directory contains the project files for Microsoft Visual C++
For Visual Studio 2003 (and 2005) you can go to the eo\win (this)
directory and open the eo.sln file. It allows for the compilation of 4
lib files (which will be placed in eo\win\lib\release and eo\win\lib\debug).
At the moment there are no project/solution files to compile the test
programs (eo\test) or applications (eo\app).
The library files correspond to the .a files under Unix/Linux.
eo.lib -> libeo.a
eoes.lib -> libes.a
eoga.lib -> libga.a
eoutils.lib -> libeoutils.a
The debug versions of the files are named eod.lib, eoesd.lib, eogad.lib and eoutilsd.lib."
Have you built the libraries ? (you'd need to do this first). Then in your tutorial project, you need to tell MS Visual Studio 2005 to link against eo.lib or eoes.lib or eoga.lib or eoutils.lib or their debug versions as shown..
[edit] looking at the makefile for tutorial 1 (see the LIBS line) :-
noinst_PROGRAMS = FirstBitGA FirstRealGA exercise1.3
FirstBitGA_SOURCES = FirstBitGA.cpp
FirstRealGA_SOURCES = FirstRealGA.cpp
exercise1_3_SOURCES = exercise1.3.cpp
LDADD = -L$(top_builddir)/src -L$(top_builddir)/src/ga -L$(top_builddir)/src/utils
LIBS = -lga -leoutils -leo
INCLUDES = -I$(top_srcdir)/src
you'd have to link against eoutils.lib and eo.lib (or eoutilsd.lib and eod.lib)
[/edit]
thats about all I can offer
'g'
|
|
|
|
|
OK, i tried to build libraries, but it throws lot of errors (fatal errors C1083: Cannot open include files..., but I set include directories to /src of eo project in options->vc++ directories..).
Nevertheless, lib files appeared in win/lib/debug directory only.
Then I linked these debug libraries to my tutorial project (i tried couple variants: through options->vc++ directories,#pragma..,add them to project), but then I get lot of errors like:
1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in eoutilsd.lib(eoRNG.obj)
I admit I'm lame at linking, so I appreciate help.
|
|
|
|
|
way out of my league now
I'd be tempted to try a 'nodefaultlib' for msvcprtd.lib and see what that gives, but I dont know how to do that for anything other than MSVC6
The only other thing that may work is to add all the source files to your project and do a static compile as opposed to using a lib
maybe you can try emailing marc.schoenauer@inria.fr and see if you get a response
good luck
'g'
|
|
|
|
|
CWnd::GetWindowRect()
The above function gives a Result in 'Screen Coordinates' How do I transform these into coordinates usefull in a Dialog Box Display.
How do Screen Coordinates, Device Coordinates, and Logical Coordinates interact!
<Added 2 Jan 09>
I have a Dialog Based Application, and I want re-size the box. The Dialog has the appearance of Windows Explorer, and contains 2 Edit Controls (Path + Status), a Tree Control, and a List Control.
I am Writing the Handler:
void CXpMiniExplorerDlg::OnSize(UINT nType, int cx, int cy);
The Idea I had was to use pCtrl->GetWindowRect(...) to get the current location of each of the 4 controls, work out from cx amd cy what the new positions should be, and then use pCtrl->MoveWindow(...) to position them.
Does Not Work! The Controls move 211 units east, and 233 units south!
ScreenToClient, ClientToScreen, only make matters worse!
</Added>
Regards,
Bram
Bram van Kampen
modified on Friday, January 2, 2009 6:36 PM
|
|
|
|
|
|
Hi,
Thanks for your Reply. Have read the above, but it does not seem to have to say a lot about Dialog Based Apps. I expanded my original question a bit to clarify the problem a bit more.
Regards,
Bram van Kampen
|
|
|
|
|
no worries - I was hoping it would give you a little insight into co-ordinate mapping in general, more than specific to dialogs
hope you got an answer in the end
'g'
|
|
|
|
|
Unfortunately, No, I didn't sofar, but thanks anyways.
Bram van Kampen
|
|
|
|
|
|
|
Hi,
Thanks for your Reply. Have tried the above, but it does not seem to havework in Dialog Based Apps. I expanded my original question a bit to clarify the problem a bit more.
Regards,
Bram van Kampen
|
|
|
|
|
Hi all.
I have some problem using window, I need somting like panel, like div(layer) in HTML. I need window that have't border and title bur, only area. I need it to draw some animation for my ScreenSaver.
thanks and happy new year.
|
|
|
|
|
This article [^] maybe useful.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
thanks, but I write CLayer class, sow I have't problems.
|
|
|
|
|
Is it safe to write to a COM port on one thread while reading from it on another thread?
Do the writes and the reads have to be synchronized, or does the hardware and the driver take care of that?
|
|
|
|
|
Hi I write little rogram that use inp and outp functions.
It is like write and rad from console or read from file.
|
|
|
|
|
Could you give us an example that works unde XP?
Regards,
Bram van Kampen
|
|
|
|
|
I can give you a zip file (book + example).
but it is on Russia.
write your mail and I will send you.
|
|
|
|
|
I have an MFC dll which has no gui, and I dont see a Resource tab in the development environment on which I could drag a CProgressCtrl. I want to launch a progressbar from this dll, and don't really want to do message loops and such which I would need if I used CreateWindow(). Appreciate your input,
sb
|
|
|
|
|
Ugly idea, but what if you create the progress bar and then call the window method with WM_PAINT to get it drawn when you need it? No idea how that would behave...
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
|
|
|
|
|
From within the dll, I did this
myCtrl = new CProgressCtrl();
myCtrl->Create(WS_CHILD|WS_VISIBLE|PBS_SMOOTH, CRect(10,10,200,30),
(CWnd*)this, 100);
where the last parameter (100) is just a number I picked out of thin air. I don't know what I should put there.
So when I ran the project that calls this dll, it ran, but no progress bar showed up...
???
|
|
|
|
|
What is "this"? You need a valid window where you specified "this", where do you want your progress bar to appear? I think you could be better off with making a message loop...it's not that complicated really.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
|
|
|
|
|
There aren't any CDialog type windows, and 'this' is just some abstract class where I have the time-stepping loop.
Another thing I tried:
Even though it's a dll, I tried adding a form to it, and dragged a progressbar on it, but then didn't quite know how to invoke this form from my abstract class.
I'll look up the message loop idea. Thanks for the input.
sb
|
|
|
|