AnsweredAssumed Answered

Where does Vee write to and read from by default? (was: vrf stuck good with

Question asked by scubaman on Nov 14, 2001

Getting there!  Thank you VERY much!

Now there's only one place I'm still am a little confused about.  Where
does VEE write to and read from by default?  The .dll and .h files were not
specifically written into a certain directory, and ended up in "d:Vee Pro
6.0Programs" where I store my programs.  That's probably an environment
variable set up at installation, but I'm not sure about that.  But when it
reads, it seems to access some other directory, like the last directory
read from before the program was closed, not even saved.

Obviously, the solution to my whole problem here is to specify the write
directory for the .dll, and specify the import library files explicitly.
Thanks again for the pointer, it wouldn'ty have occurred to me to pursue
this line at all, the functionality of how a dll is set up and imported
just hadn't sunk in.  Now it's obvious, of course

--
Regards,
Rich
===========================
Richard Kleinhenz
mailto:scubaman@us.ibm.com
845-892-2617
===========================


                                                                                                      
                    "NELSON,GARY                                                                      
                    (A-SanJose,ex1)"       To:     Richard Kleinhenz/Fishkill/IBM@IBMUS,              
                    <gary_nelson@Agi        vrf@lvld.agilent.com                                      
                    lent.com>              cc:                                                        
                    Sent by:               Subject:     RE: vrf stuck good with 621 error             
                    owner-vrf@lvld.a                                                                  
                    gilent.com                                                                        
                                                                                                      
                                                                                                      
                    11/14/2001 06:02                                                                  
                    PM                                                                                
                                                                                                      
                                                                                                      



Richard,
I have found that I get the error that you are getting if the definition
file is not cleared before it is re-written.  That is file cfo.h is being
appended every time the user object 'write def' runs. I clicked the clear
file at pre run box and that seemed to solve the problem.  I also found
that
it seemed to help to set the files to their exact location using the
selection boxes.
Regards, Gary

Gary Nelson SPG  Engineering Services
Agilent Technologies
Office: 408/435-4073 Fax: 408/435-5868
Pager: 408/589-6983
gary_nelson@agilent.com

-----Original Message-----
From: Richard Kleinhenz [mailto:scubaman@us.ibm.com]
Sent: Wednesday, November 14, 2001 11:35 AM
To: vrf@lvld.agilent.com
Subject: vrf stuck good with 621 error


Hello,
I'm stuck with a problem that I hope someone can give me some ideas about.
I have a custom file open dialog that Shawn Fessenden developed.  She
checked it in Vee 5.  I am running 6.01.  It loads a custom dll.  At the
end of the program, it is unloaded.  Under some conditions, apparently it
does not get unloaded properly.  That's a separate issue, probably.  What
bothers me is that after an errror I can't run this function any more.
Even if I exit the program and reload, I get an error 621.  Even if I shut
down the PC and reboot I get this error!  But eventually, if I step away
from it for a few days, something is reset, and I can start all over,
attempting to get this to work, until I run into this error.

Does anyone have any idea how I can get stuck this way, and how I might
recover?  I can't wait 2 weeks every time I screw up before I can try
again.

The exact error message is:
"Duplicate symbol name 'SelectFile' is already in use.  Cannot add a
Function named SelectFile.  Object title: Import Library, Object type:
Import, In UserFunction: LoadLibs.  Error 621"

Question 2:  I understand that in Vee 6 a  __stdcall needs to be added
before any definitions.  I checked Vee help, and it's still cryptic to me.
I really know nothing about the lower level stuff at all...  can someone
explain to me what this need for __stdcall is in simple terms?  This is
what I tried (and it ran without generating an error, so maybe it is even
right?):  In the .h file, I added "long __stdcall CFO(long x)" as the first
line.  CFO is the name of this function.  Please bear in mind with any
response that I have not looked at low-level stuff since the days of the
Z80 and CP/M 2.2 and know absolutely nothing about C, dlls etc

I really appreciate any and all help on this!

--
Regards,
Rich
===========================
Richard Kleinhenz
mailto:scubaman@us.ibm.com
845-892-2617
===========================

---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo.  To send messages to
this maillist, just email to "vrf@lvld.agilent.com".  Subscriptions and
unsubscriptions are done through the address
"vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------
---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo.  To send messages to
this maillist, just email to "vrf@lvld.agilent.com".  Subscriptions and
unsubscriptions are done through the address
"vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------




---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo.  To send messages to
this maillist, just email to "vrf@lvld.agilent.com".  Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------

Outcomes