-Messaggio Originale-
Da: "Jerry Finuliar"
A:
Data invio: mercoledì 16 settembre 2009 11.16
Oggetto: [Harbour] Another OLE problem
Changing 5 to 1 and it will run fine without error
All my problems are solved. Many thanks to all.
EMG
--
EMAG Software Homepage
Hi,
I've done this in VB6 but I'm getting this "the requested member of the
collection does not exist" from Debug.Print
oWord.ActiveDocument.StoryRanges.Item(5). Changing 5 to 1
and it will run fine without error but also without debug output.
The only problem I see in Harbour is that you have
Sorry I don't exactly see where are your two hbwin.lib files.
One in lib and one in lib\win\bcc. Now I'm using the one in lib\win
\bcc and the problem is solved.
Okay, delete everything from lib to be on the safe side.
[ BTW, hbmk2 won't pick it from lib if lib/win/bcc dir is present. ]
Brg
-Messaggio Originale-
Da: "Przemyslaw Czerpak"
A: "Harbour Project Main Developer List."
Data invio: martedì 15 settembre 2009 21.55
Oggetto: Re: [Harbour] Another OLE problem
If you can link your application with working CreateObject() function
then as next
-Messaggio Originale-
Da: "Viktor Szakáts"
A: "Harbour Project Main Developer List."
Data invio: mercoledì 16 settembre 2009 10.19
Oggetto: Re: [Harbour] Another OLE problem
Sorry I don't exactly see where are your two hbwin.lib files.
One in lib and on
On Wed, 16 Sep 2009, Enrico Maria Giordano wrote:
Hi,
> Ok, but are you saying that I have to take the libs from lib and win
> folders and not only from lib folder? If yes, this is a change that I
> missed.
You should have only one folder with final binaries.
Just execute:
SET HB_INSTALL_P
> I just found one interesting thing: there are two hbwin.lib in
my SVN > repository, one (23 Jun 2009) in lib and one (16 Sep
2009) in lib > \win\bcc. Do I have to take the latter? If yes, why
it is not copied to > lib directory as the other libs?
There is nothing wrong with the build fi
-Messaggio Originale-
Da: "Enrico Maria Giordano"
A: "Harbour Project Main Developer List."
Data invio: mercoledì 16 settembre 2009 10.12
Oggetto: Re: [Harbour] Another OLE problem
Ok, but are you saying that I have to take the libs from lib and win
folders a
-Messaggio Originale-
Da: "Viktor Szakáts"
A: "Harbour Project Main Developer List."
Data invio: mercoledì 16 settembre 2009 9.57
Oggetto: Re: [Harbour] Another OLE problem
> This is the batch I'm using to build Harbour:
>
> @ ECHO OFF
&g
You probably moved hbmk2.exe out of the Harbour directory structure
(or vice versa), as an end result hbmk2's Harbour dir layout
autodetection cannot work.
Yes, I don't like to work directly inside the SVN repository.
Anyway, I'm going to test...
You don't have to be inside the SVN source
This is the batch I'm using to build Harbour:
@ ECHO OFF
SET PATH=e:\bcc55\bin;%PATH%
SET HB_COMPILER=bcc
SET HB_USER_CFLAGS=-DHB_FM_STATISTICS_OFF
mingw32-make clean install > make_gnu.log 2>&1
Do you see anything wrong?
You can deleted 'SET HB_COMPILER=bcc', best to
rely on autodetection to
-Messaggio Originale-
Da: "Viktor Szakáts"
A: "Harbour Project Main Developer List."
Data invio: mercoledì 16 settembre 2009 9.25
Oggetto: Re: [Harbour] Another OLE problem
You probably moved hbmk2.exe out of the Harbour directory structure
(or vice versa), as
-Messaggio Originale-
Da: "Przemyslaw Czerpak"
A: "Harbour Project Main Developer List."
Data invio: mercoledì 16 settembre 2009 9.25
Oggetto: Re: [Harbour] Another OLE problem
This is not normal and it suggests that there is sth wrong
with your local configura
-Messaggio Originale-
Da: "Mindaugas Kavaliauskas"
A: "Harbour Project Main Developer List."
Data invio: mercoledì 16 settembre 2009 1.14
Oggetto: Re: [Harbour] Another OLE problem
But I know that, if :StoryRanges is a real OLE collection, when
:StoryRanges:Ite
-Messaggio Originale-
Da: "Mindaugas Kavaliauskas"
A: "Harbour Project Main Developer List."
Data invio: mercoledì 16 settembre 2009 1.14
Oggetto: Re: [Harbour] Another OLE problem
I also thought it should work with CreateObject(), but I know
WIN_OLECREATEO
You should put BCC (or your compiler of
preference) in the PATH before running hbmk2.
Probably you have HB_COMPILER set in your
environment which forces BCC. I'd suggest
to delete it, it's not required anymore for
Harbour.
This is what I'm using now:
SET PATH=e:\bcc55\bin;%PATH%
hbmk2 bug
and
On Wed, 16 Sep 2009, Enrico Maria Giordano wrote:
Hi,
> I'm trying to compile legacy.prg but I'm getting
> Error: Unresolved external '_HB_FUN___OLEPDISP'
> It should be in hbwin.lib but it is not. It's normal?
This is not normal and it suggests that there is sth wrong
with your local configurat
-Messaggio Originale-
Da: "Viktor Szakáts"
A: "Harbour Project Main Developer List."
Data invio: mercoledì 16 settembre 2009 0.47
Oggetto: Re: [Harbour] Another OLE problem
You should put BCC (or your compiler of
preference) in the PATH before running hbmk2
-Messaggio Originale-
Da: "Przemyslaw Czerpak"
A: "Harbour Project Main Developer List."
Data invio: martedì 15 settembre 2009 21.55
Oggetto: Re: [Harbour] Another OLE problem
But 1-st you should check why CREATEOBJECT() does not work for you.
If you l
Hi,
Przemyslaw Czerpak wrote:
FUNCTION MAIN()
LOCAL oWord
oWord = WIN_OLECREATEOBJECT( "Word.Application" )
I have a question here.
In your previous example you used:
oWord = CREATEOBJECT( "Word.Application" )
I'm interesting if using WIN_OLECREATEOBJECT() resolved the problem you
rep
I'm not familiar with hbmk2. I just tried it but I get
Harbour 2.0.0beta3 (Rev. 12501)
Copyright (c) 1999-2009, http://www.harbour-project.org/
Compiling 'bug.prg'...
Lines 14, Functions/Procedures 1
Generating C source output to 'bug.c'... Done.
hbmk2: Error: Running C compiler. -1
bcc32.exe -c
On Tue, 15 Sep 2009, Enrico Maria Giordano wrote:
>> I hope that above information should help you to locate the exact reason
>> of the problem.
> Honestly not. Is there any simpler test that I can make? :-)
I do not know any.
best regards,
Przemek
___
-Messaggio Originale-
Da: "Przemyslaw Czerpak"
A: "Harbour Project Main Developer List."
Data invio: martedì 15 settembre 2009 21.55
Oggetto: Re: [Harbour] Another OLE problem
It's possible the the problem is caused by old linked library list
in your
On Tue, 15 Sep 2009, Enrico Maria Giordano wrote:
>> I have a question here.
>> In your previous example you used:
>> oWord = CREATEOBJECT( "Word.Application" )
>> I'm interesting if using WIN_OLECREATEOBJECT() resolved the problem you
>> reported.
>> CREATEOBJECT() should be an wrapper to WIN_OL
-Messaggio Originale-
Da: "Przemyslaw Czerpak"
A: "Harbour Project Main Developer List."
Data invio: martedì 15 settembre 2009 20.29
Oggetto: Re: [Harbour] Another OLE problem
I have a question here.
In your previous example you used:
oWord = CREATEOBJEC
On Tue, 15 Sep 2009, Enrico Maria Giordano wrote:
Hi,
> The following sample
> FUNCTION MAIN()
>LOCAL oWord
>oWord = WIN_OLECREATEOBJECT( "Word.Application" )
I have a question here.
In your previous example you used:
oWord = CREATEOBJECT( "Word.Application" )
I'm interesting if using
The following sample
FUNCTION MAIN()
LOCAL oWord
oWord = WIN_OLECREATEOBJECT( "Word.Application" )
oWord:Documents:Add()
? oWord:ActiveDocument:StoryRanges[ 5 ]
oWord:Visible = .T.
RETURN NIL
works fine using xHarbour while stops with
Error BASE/1132 Bound error: array
27 matches
Mail list logo