Hello, Dimitris Can you try to exchange two header files from "a.h" #include "TObject.h" #include "stdafx.h" with #include "stdafx.h" #include "TObject.h" I mean, introduce the Microsoft header files first then those from ROOT. I wonder this may help. Valery ----- Original Message ----- From: Dr. D. Sideris <d.sideris@ic.ac.uk> To: Valeri Fine (Faine) <fine@bnl.gov> Sent: 26 сентября 2000 г. 12:55 Subject: Re: [ROOT] Root Conflicts with Windows > Hi Valerie, > > Here is the output of the compilation, which I think is indicative on its > own. > I have also attached, the whole eva directory. Note that the code does not > necessarily work properly as it is, since I cannot debug it properly due to > the conflicts below. But if you compile it you would get (hopefully) the > errors below. > > Dimitris > > > > --------------------Configuration: eva - Win32 Debug-------------------- > Compiling... > eva.cpp > d:\root\include\tvirtualx.h(164) : warning C4003: not enough actual > parameters for macro 'CreateWindowA' > d:\root\include\tvirtualx.h(164) : error C2059: syntax error : 'constant' > d:\root\include\tvirtualx.h(343) : warning C4003: not enough actual > parameters for macro 'CreateWindowA' > d:\root\include\tvirtualx.h(343) : error C2275: 'Window_t' : illegal use of > this type as an expression > d:\root\include\guitypes.h(30) : see declaration of 'Window_t' > d:\root\include\tvirtualx.h(343) : error C2275: 'Int_t' : illegal use of > this type as an expression > d:\root\include\rtypes.h(42) : see declaration of 'Int_t' > d:\root\include\tvirtualx.h(343) : error C2275: 'Int_t' : illegal use of > this type as an expression > d:\root\include\rtypes.h(42) : see declaration of 'Int_t' > d:\root\include\tvirtualx.h(343) : error C2275: 'UInt_t' : illegal use of > this type as an expression > d:\root\include\rtypes.h(43) : see declaration of 'UInt_t' > d:\root\include\tvirtualx.h(343) : error C2275: 'UInt_t' : illegal use of > this type as an expression > d:\root\include\rtypes.h(43) : see declaration of 'UInt_t' > d:\root\include\tvirtualx.h(343) : error C2275: 'UInt_t' : illegal use of > this type as an expression > d:\root\include\rtypes.h(43) : see declaration of 'UInt_t' > d:\root\include\tvirtualx.h(343) : error C2275: 'Int_t' : illegal use of > this type as an expression > d:\root\include\rtypes.h(42) : see declaration of 'Int_t' > d:\root\include\tvirtualx.h(343) : error C2275: 'UInt_t' : illegal use of > this type as an expression > d:\root\include\rtypes.h(43) : see declaration of 'UInt_t' > d:\root\include\tvirtualx.h(343) : error C2062: type 'void' unexpected > d:\root\include\tvirtualx.h(343) : error C2143: syntax error : missing ';' > before '{' > d:\root\include\tvirtualx.h(343) : error C2447: missing function header > (old-style formal list?) > d:\root\eva\eva.cpp(258) : warning C4305: 'initializing' : truncation from > 'const double' to 'float' > d:\root\eva\eva.cpp(262) : warning C4305: 'initializing' : truncation from > 'const double' to 'float' > Error executing cl.exe. > > eva.exe - 12 error(s), 4 warning(s) > > ----- Original Message ----- > From: Valeri Fine (Faine) <fine@bnl.gov> > To: Dr. D. Sideris <d.sideris@ic.ac.uk> > Cc: <roottalk@pcroot.cern.ch> > Sent: Tuesday, September 26, 2000 4:19 PM > Subject: Re: [ROOT] Root Conflicts with Windows > > > Dear Dimitris Sideris > > Would you mind and to provide any example to understand where > your trouble came from. > > The generic recommended way creating ROOT-base application is to make > the custom DLL with the user custom class and Root/Cint dictionary and load > that DLL into the regular ROOT session via gSystem->Load(<name of your > DLL>). > > %ROOTSYS%\test subdirectory should contain the examples of the custom > classes > and ROOT macros and Makefile (for Microsoft NMAKE utility). > > > Valery > > ----- Original Message ----- > From: Dr. D. Sideris <d.sideris@ic.ac.uk> > To: <roottalk@pcroot.cern.ch> > Sent: 26 qemrap 2000 c. 7:34 > Subject: [ROOT] Root Conflicts with Windows > > > Dear Root team, I'm trying to incorporate root in my c++ windows NT AFC > application. There seem to be major conflicts between > the libraries of root and windows. The suggested solution on the root > documentation is to wrap root inside a class. But this > implies effective manual renaming of every single call to root functions. > > Regards > > Dimitris Sideris > Imperial College London > > >
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:33 MET