topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
create a function with Tdatabase | Silvio,
Class TDataBase has a destructor method, so when the object gets out of scope then it gets called
change local oDbf into static oDbf (or keep it in an array) so the object is not destroyed |
create a function with Tdatabase | [quote:28verw0u] oDbf := TDatabase():Open(,cAlias)
[/quote:28verw0u]
This syntax is wrong. The DBF is already open.
Correct:
[code=fw:28verw0u]<div class="fw" id="{CB}" style="font-family: monospace;">oDbf := TDatabase<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="... |
create a function with Tdatabase | [code=fw:3vm8saqt]<div class="fw" id="{CB}" style="font-family: monospace;"> oDbf := TDatabase<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Open</span><span style="color: #000000;">(</span>,cArchivio<span style="color: #000000;">)</span... |
create a function with Tdatabase | thanks |
create a function with Tdatabase | Sivio,
Maybe you didn't know that CDXs have always had the option to open all the indexes automatically when the DBF is opened. And as I understand it, NTXs can now do that also.
REQUEST DBFCDX
rddsetdefault( "DBFCDX" )
SET EXCLUSIVE OFF
SET(_SET_AUTOPEN, .T. ) |
create a function with Tdatabase | [quote="James Bott":1jrvbyc6]Sivio,
Maybe you didn't know that CDXs have always had the option to open all the indexes automatically when the DBF is opened. And as I understand it, NTXs can now do that also.
REQUEST DBFCDX
rddsetdefault( "DBFCDX" )
SET EXCLUSIVE OFF
SET(_SET_AUTOPEN, .T. )[/quote:1jrvbyc6... |
create a function with Tdatabase | [quote:3k47mno6]yes I knew it but it happens that in my application there is a function that does not have to load the indexes or in one of the functions that I have seen that does not load them all[/quote:3k47mno6]
Hmm, I always open the indexes whether they are used or not. This simplifies coding doesn't have a down... |
create a harbour dll containing functions to be executed | I am trying to run the sample harbour dll - testdll and tutor01. I am able to create the sample testdll.exe and tutor01.dll, however when executed a message is thrown - error code 0 loading tutor01.dll. Why does this simple sample not work? |
create a harbour dll containing functions to be executed | Friends,
[b:2wgjq4il]Perry Nichols[/b:2wgjq4il]
See my test in my [url=http://www.4shared.com/rar/8rhxQAtFba/RochaDLL.html:2wgjq4il]4Shared.com[/url:2wgjq4il]
[url=http://pctoledo.com.br/forum/viewtopic.php?f=2&t=15428&p=90988#p90988:2wgjq4il]Original thread[/url:2wgjq4il] |
create a harbour dll containing functions to be executed | Perry,
Please modify tutor01.prg this way:
[code=fw:3mlk7qsz]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------... |
create a harbour dll containing functions to be executed | Thank you Antonio, This now works, However now I am trying the sample testmydl and mydll which passes parameters to the dll. When I execute this test the following error is thrown: Error code 0 loading MYDLL.dll. Thank you in advance for your help in resolving this issue. |
create a harbour dll containing functions to be executed | Perry,
Try adding this code to mydll.prg
[code=fw:1aqw9zw1]<div class="fw" id="{CB}" style="font-family: monospace;">BOOL WINAPI DllEntryPoint<span style="color: #000000;">(</span> HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved <span style="color: #000000;">)</span><br /><span style="color: #000000;"... |
create a harbour dll containing functions to be executed | That works fine, Thank you Antonio.
One more item - we have the need to pass values back from the DLL to the calling EXE. Is this possible? Is pass by reference "@" a way to modify the value in the DLL and return to the EXE? Do you have to have the same number of parms for each function in the DLL? |
create a harbour dll containing functions to be executed | Perry,
> we have the need to pass values back from the DLL to the calling EXE. Is this possible ?
Yes. What types of values do you need to pass back ? character, number, etc ? We need to know their types in advance.
> Is pass by reference "@" a way to modify the value in the DLL and return to the EXE ?
We can imp... |
create a harbour dll containing functions to be executed | > We can implement it in the function HBDLLENTRY() itself
void pascal __export HBDLLENTRY1( char * cProcName, PHB_ITEM pParam1 )
{
hb_itemDoC( cProcName, 1, pParam1 );
if( HB_ISBYREF( pParam1 ) )
hb_itemPutC( pParam1, hb_retc( -1 ) ); // -1 mean the value returned from cProcName
} |
create a harbour dll containing functions to be executed | Antonio, Thank you for the info - much appreciated.
Regarding passing parameters -
> You can implement several functions for each number of params to pass:
does each parm have to be the same data type in all functions?
Also, I am looking at the samples in FWH64 v1605 and the buildhd.bat looks like a 32 bit build fo... |
create a harbour dll containing functions to be executed | Perry,
> does each parm have to be the same data type in all functions?
They have to be Harbour "items", thats why you need to use the function ItemNew():
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=22835&start=15">viewtopic.php?f=3&t=22835&start=15</a><!-- l -->
... |
create a harbour dll containing functions to be executed | can we execute a 32 bit dll from a 64 bit exe? |
create a harbour dll containing functions to be executed | Perry,
> can we execute a 32 bit dll from a 64 bit exe?
No, as far as I know |
create a harbour dll containing functions to be executed | I have FWH 16.02 & Harbour 3.2.0dev
I tried my original MYDLL.PRG with BUILDHD,bat, but i got many errors :
Turbo Incremental Link 6.70 Copyright (c) 1997-2014 Embarcadero Technologies, Inc.
Error: Unresolved external '_HB_FUN_CTOT' referenced from C:\FWH7\LIB\FIVEH.LIB|VALBLANK
Error: Unresolved external '_HB_FUN_... |
create a harbour dll containing functions to be executed | Please use this buildhd.bat file:
[code=fw:168pp8j8]<div class="fw" id="{CB}" style="font-family: monospace;">@ECHO OFF<br />CLS<br />ECHO ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿<br />ECHO ³ FiveWin <span style="color: #00C800;">for</span> Harbour <span style="color: #000000;">16... |
create a harbour dll containing functions to be executed | Now the MYDLL.DLL has been created with your new buildhd.bat and (usin the original mydll.prg)
But using the
BUILDH.BAT TESTMYDL.PRG and running the TESTMYDL.EXE it gives:
Error code: 0 loading MYDLL.dll
Ops !!! |
create a harbour dll containing functions to be executed | Romeo,
Please include the code that I posted here inside #pragma BEGINDUMP ... ENDDUMP
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=193644#p193644">viewtopic.php?p=193644#p193644</a><!-- l --> |
create a harbour dll containing functions to be executed | Antonio,
Do you know if you can call a harbour DLL from a C# .Net exe ? If so can you provide an example? |
create a harbour dll containing functions to be executed | Perry,
Here you have an example that I coded for FiveNet:
[url:2nss5as9]https://bitbucket.org/fivetech/fivenet/src/fdc55d7abee75799ae25b716c4c79c06556aa8ee/source/cs/fivetech.cs?at=master&fileviewer=file-view-default[/url:2nss5as9]
Look for:
public class FiveNet
{
// public string AppName;
... |
create a harbour dll containing functions to be executed | Antonio,
I'm not sure that I have the Harbour DLL setup properly. I receive the following error
An unhandled exception of type 'System.EntryPointNotFoundException' occurred in WindowsFormsApplication1.exe
Additional information: Unable to find an entry point named 'OneParam' in DLL 'Mydll.dll'.
This is the code w... |
create a harbour dll containing functions to be executed | You are not exporting OneParam() from the DLL so you can not call OneParam() directly from your EXE.
You have to call DOPROC() from your EXE, as it is the exported function of the DLL |
create a harbour dll containing functions to be executed | NO more help ? |
create a harbour dll containing functions to be executed | Hi dear Perry Nichols,
please can you kindly send me at <!-- e --><a href="mailto:romeox@tiscali.it">romeox@tiscali.it</a><!-- e --> those files:
MYDLL.PRG
TESTMYDLL.PRG
BUILDHD.BAT
I wrong samethins in my files, and it doesnot work !
FWH 16.02
many thanks |
create a harbour dll containing functions to be executed | OK, i retrive my error.
it works now !
tks |
create a harbour dll containing functions to be executed | very good <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
create a pcode dll | I am using the samples from FiveWin testdllp.prg and pcodedll.prg
when I execute the exe made using the testdllp.prg the following message appears
"An exception (C00000FD) occurred during DllEntryPoint or DLLMain in module:
...\pcodedll.dll
any help is greatly appreciated. |
create a pcode dll | Hello Don,
I compiled and tested the samples < TESTDLLP.prg (13.12.2007) > and < PCODEDLL.prg (13.12.2007)
It works fine here, no error ( I using xHARBOUR ).
The Dll is inside the same path of the exe-file ?
Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -... |
create a pcode dll | Don,
Are you using Harbour or xHarbour ?
Borland C ? |
create a pcode dll | borland c with xharbour10 with fwh 7.1 |
create a pcode dll | Don,
We provide several examples with FWH:
FWH\samples\TestDLLP.prg shows how to use a pcode DLL
FWH\samples\pcodedll.prg shows how to build a pcode DLL using buildhdp.bat
But I am afraid that you may experience compatibility problems.
We recommend you to upgrade to FWH 8.12 and current xHarbour provided ... |
create a pcode dll | Antonio, estos ejemplos solo funcionan con Harbour?
Estoy tratando de probarlos con xHarbour, y Borland C++ 5.5, pero me hace falta "MAINDLLP.OBJ"
Saludos cordiales.
Carlos Sincuir. |
create a pcode dll | Carlos,
Those examples work with both Harbour and xHarbour.
maindllp.obj is not automatically created by Harbour/xHarbour makefiles, so you have to create it manually from Harbour/xHarbour source\vm\maindllp.c
Here you have maindllp.obj already created for Harbour:
<!-- m --><a class="postlink" href="http://www.medi... |
create a pcode dll | Thank you for your help - we have successfully passed a char value to DLL
Is it possible to pass an array ?
If not can you provide samples for Int, Logical(bool).
We have a Need to pass various parameters to a dll, and are not C programmers.
We are having difficulties with more than 1 parm.
Thank you for your hel... |
create a pcode dll | Don,
Based on your comments it seems to me that you are talking about a C DLL instead of a pcode DLL.
A pcode DLL is created using PRG code and it uses the EXE "virtual machine". They are small DLLs that just contain "pcode" and need the "virtual machine" from the EXE, to execute the pcode.
A C DLL is created using ... |
create a pcode dll | Don,
The question is:
Are you using a third party DLL that can be used from any programming language ? This uses to be a C DLL.
If this is the case, then keep in mind that the C language knows "nothing" about the Harbour/xHarbour items structure. You can just supply C types to the DLL, so you have to convert the Harb... |
create a pcode dll | Don,
>
Is the debugger fixed in the Latest version of xHarbour1.0?
We have NOT upgraded do to the lack of a debugger.
>
The xHarbour debugger is properly working with FWH 8.12 and the xHarbour build that FiveTech provides:
[url=http://imageshack.us:yjie50av][img:yjie50av]http://img114.imageshack.... |
create a pcode dll | Antoio,
Thank you for your feedback.
We are wanting to create an executable dll using prg code. We do not have much C coding experience.
Sounds like the pcode dll is the way to go. We are currently looking at our options to determine the best way to implement custom coding without having to make a new exe. ... |
create a pcode dll | Don,
> I am assuming since you did not answer the "pass array question" - it is not possible.
It is perfectly possible <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Being a pcode DLL you can supply Harbour/xHarbour items to it. No limitations.
Please show how you a... |
create a pcode dll | Antonio,
Below is a sample calling prg:
[code:2boqunhf]
#include "FiveWin.ch"
function Main()
local cString := "Hello world!"
local cString2 := "ABC or 123?"
local LPARM := .T., retarr := {}, passparm := {}
local NPARM := 998877
local DPARM := DATE()
DOPR... |
create a pcode dll | Don,
Are you building your DLL as described here ?
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=11626&start=0&hilit=oneparam">viewtopic.php?f=3&t=11626&start=0&hilit=oneparam</a><!-- l -->
If yes, then you are calling a C function and you can not supply a Harbour ite... |
create a pcode dll | Antonio,
I'm thinking that's a good sample, and i have curiosity for the correct use and compiling. The sample dll maybe can be:
[code:11x5s1hc]MyDll.dll
Function OneParam( aData )
*-------------------------
LOCAL nI
LOCAL nTotal := Len(aData)
FOR nI := 1 TO nTotal
MsgInfo( aData[ nI ][... |
create a pcode dll | Antonio,
I am using the samples testdllp.prg and pcodell.prg
The pcodedll.prg is giving me the following when I try to make with the buildhdp.bat
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '_HB_FUN___CLSINST' referenced from T:\FWH\SAMPLES\PC
ODEDLL.OBJ
Error: Unresolve... |
create a pcode dll | Don,
Have you modified buildhdp.bat to call xHarbour instead of Harbour ? |
create a pcode dll | Thank you for your prompt response - can we create a pcode dll in xharbour? |
create a pcode dll | Don,
Yes, they can be created with xharbour too.
But buildhdp.bat has to be modified to call xharbour.exe and use the xharbour libraries. |
create a pcode dll | Antonio,
Thank you for all of your assistance - we have been successful in creating a pcode dll passing parameters as needed. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Here is what we have -
xHarbour calling exe:
[code:3s851xdo]
function Main()
local dllret,... |
create a pcode dll | Don,
Very good <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
create a pcode dll | Don,
In your example, where is HB_LibDo() ? |
create a pcode dll | Hello Antonio,
Could you please instruct me how to set up the debugger.
Thanks in advance
Otto
>Is the debugger fixed in the Latest version of xHarbour1.0?
>We have NOT upgraded do to the lack of a debugger.
>
>The xHarbour debugger is properly working with FWH 8.12 and the xHarbour build that FiveTech provides: |
create a pcode dll | Otto,
Please build FWH\samples\altd.prg this way:
buildh.bat altd /b |
create a pcode dll | HB_LibDo() is a Harbour function.
We have also experienced some Debugger issues in xHarbour v1.0
It seems that the f7 - run to cursor, and f9 - set break do not work with the xHarbour v1.0, as in the previous versions. |
create an arra from txt file | I have a file txt "level1.txt" type :
001700509573024106800501002700295018009400305652800007465080071000159004908007053
029650178705180600100900500257800309600219005900007046573400021800020453010395000
008203500009670408346050702430010059967005001000496203280034067703500904004107020
8000052160458620076700095007692... |
create an arra from txt file | Silvio,
[code=fw:1gl27dxu]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"tselex.ch"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">(</span><span style="color: #000000;">&... |
create an arra from txt file | thanks Uwe,
some files.txt are very very big
how I can make to have a show text type : " Load level2.txt in n seconds"
I try with a timer but it not run good |
create an arra from txt file | Silvio,
It will be much faster the way you did it--loading the entire file into memory then parsing it, rather than reading each line from the disk.
Your coding mistake is here:
nLinea :=MLCOUNT(cTexto)
Should be:
nLinea :=MLCOUNT(cTexto, 81) // was missing the line length
I would also suggest setting cTexto to n... |
create an arra from txt file | [code=fw:nt6cb26x]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</span> Txt2Array<span style="color: #000000;">(</span> cCAdena, nCaracteres<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> aTexto := <span style="colo... |
create an arra from txt file | James,
[quote="James Bott":1k2yibdo]I would also suggest setting cTexto to nil right after you are done parsing it so the memory will be recovered.[/quote:1k2yibdo]
Better limit the scope of the variable.
EMG |
create an arra from txt file | [quote:2r7o63bc]FOpen()
Opens a file on the operating system level.
Syntax
FOpen( <cFileName>, [<nMode>]) --> nFileHandle
Arguments
<cFilename>
This is a character string holding the name of the file to open. It must include path and file extension. If the path is omitted from <cFileName>, the file is searched in th... |
create an arra from txt file | [code=fw:33a3bo4a]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">//Test program with Str2Array() function.</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">Function</s... |
create and use an index for a set of records | Hi to all
Given a list of records ( see array aRecord ) ,
does exist a faster way to create a temporary index containing only these records?
Thank in advance?
Marco
#include "fivewin.ch"
ANNOUNCE RDDSYS
FUNCTION MAIN
LOCAL nIni
SET DELETED ON
SET EXCLUSIVE OFF
USE clihs
PUBLIC aRecord := { 985 , 10754 , 22456 ... |
create and use an index for a set of records | I'm sorry
This is the source working sample code
#include "fivewin.ch"
ANNOUNCE RDDSYS
REQUEST HB_GT_GUI_DEFAULT
STATIC aRecord
STATIC nRecF
STATIC nRecC
STATIC lWhile
FUNCTION MAIN
SET DELETED ON
SET EXCLUSIVE OFF
USE clihs
aRecord := { 100 , 200 , 300 , 400 , 500 , 600 , 700 , 800, 900 , 1000, 1100 }
nRecF ... |
create and use an index for a set of records | Marco,
The simplest solution would be to move all the record data into the array and then browse the array.
The next simplest would be to create a database class that has a modified skip() method that uses the array as an index. The set the oBrw:bSkip codeblock to use this database skip method.
The most complicated ... |
create and use an index for a set of records | Marco,
The INDEX command has a clause CUSTOM :
CUSTOM specifies that a custom built order will be created for RDDs
that support them. A custom built order is initially empty, giving you
complete control over order maintenance. The system does not
automatically add and delete keys from a custom... |
create and use an index for a set of records | COOL!
Thank you so much Frank |
create and use an index for a set of records | James,
your solution is very interesting too
Thank you |
create and use an index for a set of records | Marco,
Well, Frank's solution looks easier. I was not aware of the CUSTOM clause.
Let us know what solution you use.
Regards,
James |
create and use an index for a set of records | [quote:5evhg3gn]The INDEX command has a clause CUSTOM :[/quote:5evhg3gn]
This is the best way to deal with a hand-picked set of records. Along with CUSTOM clause, also if we use TEMPORARY ( or MEMORY ) clause, the index is created locally in the memory or temporary space ( depending on RDD ) and is even faster and is a... |
create and use an index for a set of records | Everything comes from the fact that a function like this at_search() free searches in a table is very much faster than traditional methods.
The function returns an array containing the records that I find the string passed
as parameter.
I put this function in a application that run in a server (search32.exe) in pollin... |
create and use an index for a set of records | Is to do a search in a field
specific database?
Thank
Dorneles |
create and use an index for a set of records | No this is a wild search in all fields of database.
For instance if You considere cutomer.dbf from fwh\samples change Main function on this way
even if the table is not the best example to appreciate the potential of this function.
Customer table is too little.
I search customer name "Tom" that live in a "Street"
a... |
create database SQL Server | Hello,
After installing SQL Express server, I need to create the main database, without the Management Studio Express.
Is it posible?.
Thank you so much. |
create database SQL Server | Lucas
Here is a snipit from one of my install programs ..
Rick Lipkin
[code=fw:2cqyvdvy]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Try</span><br /> oCn := CREATEOBJECT<span style="color: #000000;">(</span> <span style="color: #ff0000;">"A... |
create database SQL Server | Thank you, but my mistake, I need to create the database, not the tables.
Sorry. |
create database SQL Server | Connect without initial catalog
Execute the sql statement "CREATE DATABASE MYDATA", with oCn:Execute( cSql ) |
create database SQL Server | Thank You ver y much.
Andrés is It posible to add a user to the Sql server?.
Thank you |
create database SQL Server | oCn:Execute( "CREATE USER <name> WITH PASSWORD = '<password>'" )
<!-- m --><a class="postlink" href="http://technet.microsoft.com/en-us/library/ms173463.aspx">http://technet.microsoft.com/en-us/libr ... 73463.aspx</a><!-- m --> |
create file PDF | Hi
I want to create a report with FW1412 in PDF format
When I select the CREATE PDF option, the program does nothing.
Can someone give me a tip? What do I have to do ?
Thanks. |
create file PDF | The simplest solution would be to upgrade your FWH as it has evolved very much from
the version that you are using <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
create file PDF | OK Linaraes
What is the price of the last version of fivewin and what is the version number ?
Can i buy from you directly?
How is the payment method?
Thanks |
create file PDF | > What is the price of the last version of fivewin and what is the version number ?
Current FWH is version 16.11
The upgrade price is 170 euros.
> Can i buy from you directly?
> How is the payment method?
Yes, of course. You may order it from <!-- w --><a class="postlink" href="http://www.fivetechsoft.com">www.five... |
create group on report class | Hi Friends
I have coded one report with two groups (using the class report)
Its is possible to create an third group at runtime
and the same time can destroy it before the end of the report?
Thanks in advance! |
create group on report class | If the reason you want to do this is because you only want to use the third group for some versions of the report, you could just define the third group with a conditional.
IF ...
GROUP ON ...
ENDIF
Regards,
James |
create group on report class | James
not all the reports can be make with two groups
I should evaluate each register of the table in runtime.
this is my code but i get the message: TRGroup does not exist
[quote:ozly6mnz]REPORT oRpt ;
...
GROUP oGrp1 ;
... |
create group on report class | Sorry
i send it again
[code=fw:icej20lf]<div class="fw" id="{CB}" style="font-family: monospace;">James<br />not all the reports can be make with two groups<br />I should evaluate each register <span style="color: #0000ff;">of</span> the table in runtime. <br /><br />this is my code but i <span style="color: #0000ff;">... |
create mind blowing ai art in 5 minutes for free | [url:2zxxkftz]https://medium.com/codex/how-i-create-mind-blowing-ai-art-in-5-minutes-for-free-7456e778c543[/url:2zxxkftz] |
create object y Ocx | Estimados...
Tengo un OCX de 32 bits que resgistre sin problemas en windows 64 bits
Try
xCtrl:=CreateObject(OCXSAM350.Ocxsam350Ctrl.1)
Catch
MsgAlert("Error de carga de controlador")
Return Nil
End
MsgAlert(ValType(xCtrl)) // Devuelve "O", correcto
// Aqui Todo Correcto
MsgAlert(xCtrl:Fe... |
create object y Ocx | Prueba con "Date" en vez de "Fecha"
Escribiste AboutBox() con "v", o es al escribirlo en tu mensaje ? |
create object y Ocx | Puedes inspeccionarlo con la utilidad que publiqué aqui:
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=144649#p144649">viewtopic.php?p=144649#p144649</a><!-- l --> |
create object y Ocx | Gracias por la respuesta Antonio...
Si ya lo inspeccione con OleBrow...
SI, tenia un error de tipeo, ahora AboutBox, retorna el mismo error 1007, de error de argumento, a pesar que OleBrow dice :
STDCALL dispatch FUNX void AboutBox()
EL ocx fue creado en Chile, todos las variables estan en español.
Algun otro conse... |
create object y Ocx | Prueba a pasarle valores distintos a AboutBox() |
create object y Ocx | Probe con
AboutBox()
AboutBox("C")
AboutBox(1)
AboutBox(Chr(13))
AboutBox(Nil)
El mismo error... WinOle 1007 Argument Error:AboutBox
Y ni siquiera puedo obtener el codigo de estado del periferico que se encuentra en la variable ESTADO
Aqui el OCX [url:2g2srx0f]https://dl.dropboxusercontent.com/u/2656... |
create object y Ocx | Adolfo,
A mi me aparece este error al intentar registrarlo:
[img:7cos5481]https://bitbucket.org/fivetech/screenshots/downloads/ocx_error.JPG[/img:7cos5481] |
create object y Ocx | Antonio...
La llamada al simbolo de sistema debe ser con derechos de administrador, es decir, ejecutar como administrador.
Si no sale ese error.
Probado en Win7 y win10, y lo registra sin problemas asi. |
create object y Ocx | adolfo, puede que si o puede que no, pero te puede ayudar:
una vez registré un ocx en syswow64, pero también tuve que hacerlo en el system32, así que copia y registra tu ocx en system32, fue la única forma para que funcionara un programa hecho en otro lenguaje.
saludos |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.