> long _stdcall __declspec(dllimport) my_func(long a)
Change to __declspec(dllexport) my_func(long a)
Make sure to change it in the header and the .c or .cpp file.
I don't use Borland but in the MS world dllimport implies this is the declaration of a function in a different dll and will be imported by the loader. Essentially dllimport creates a dependency. OTOH, dllexport means that this function is to be made available for others (i.e. VEE) to import. -SHAWN-
--- You are currently subscribed to vrf as: rsb@soco.agilent.com To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
> But if I change this, my problems don't be solved.
Ok. Well, "function was not loadable" basically means VEE found your dll but it didn't find the function name in your export table. Make sure name mangling is off (don't know how to do that with Borland but usually extern "C" <declaration> does it). If that doesn't do it, take a look at the export table with a dependency checker (depends.exe) and see what the compiler has named the function. -SHAWN-
--- You are currently subscribed to vrf as: rsb@soco.agilent.com To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
plot(x,y), where x is a 1-D array of the independent variable and y is your 2-D array, will do what you want as long as one of the dimensions of y is the same length as x. If you do not have an independent variable, plot(y) will plot the columns of y or plot(y') will plot the rows.
Since you have something like 100 traces you might also want to investigate Matlab's 3D plotting functions such as mesh(), waterfall(), surf(), and contour(). They are not as complicated as the documentation looks. Most of them work with just a single argument, or just one-dimensional x and y arguments and two-dimensional z. Ignore the color arguments until you decide you need them, which may be never. -- Bill Ossmann Philips Ultrasound e-mail: bill.ossmann@philips.com ---------------------------------------------------------------------------------------
Unfortunately I have a variable number of traces coming in so I can't just "wire" the traces to the graph. Also this would be very laborious for a large number of traces (say 100 ;-))
Sascha > -----Original Message----- > From: Pickles, Warren [mailto:Warren.Pickles@tycoelectronics.com] > Sent: 28 April 2004 13:54 > To: PDL-LISTS,VRF (A-Lists,unix1) > Subject: [vrf] RE: Plotting multiple Traces at once? > > > Sascha, > > You're right the XY trace won't take a 2D array. But you can > add an input > pin(s), and split your 2D array into 1D arrays. Say your 2D > array has each > column containing the data points of one trace. Then > ary[*,0] gives you the > first column, ary[*,1] the second, and so on. > > Warren > > > > -----Original Message----- > From: SPANGENBERG,SASCHA (A-Scotland,ex1) > [mailto:sascha_spangenberg@agilent.com] > Sent: 28 April 2004 13:42 > To: VRF > Subject: [vrf] Plotting multiple Traces at once? > > > Hi All > > is it possible to plot multiple traces in one graph at once? > > E.g. I have a 2D Array with each column (or row) containing > the data points of one trace. > > I tried to feed this into a XY Trace but it only takes a Scalar or 1D > Array. > > Running a for loop over all the columns and adding a new trace to the > graph is > very slow (for large traces > 100) so I hope for a faster solution. > > Regards, > Sascha. > > --- > You are currently subscribed to vrf as: > Warren.Pickles@tycoelectronics.com > To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". > To unsubscribe send a blank email to > "leave-vrf@it.lists.it.agilent.com". > To send messages to this mailing list, email "vrf@agilent.com". > If you need help with the mailing list send a message to > "owner-vrf@it.lists.it.agilent.com". > > --- > You are currently subscribed to vrf as: sascha_spangenberg@agilent.com > To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". > To unsubscribe send a blank email to > "leave-vrf@it.lists.it.agilent.com". > To send messages to this mailing list, email "vrf@agilent.com". > If you need help with the mailing list send a message to > "owner-vrf@it.lists.it.agilent.com". >
--- You are currently subscribed to vrf as: bill.ossmann@philips.com To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
--- You are currently subscribed to vrf as: rsb@soco.agilent.com To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
<html><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 10 (filtered)"><style><!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";}a:link, span.MsoHyperlink {color:blue; text-decoration:underline;}a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline;}p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";}span.EmailStyle17 {font-family:Arial; color:windowtext;}@page Section1 {size:21.0cm 842.0pt; margin:72.0pt 43.65pt 72.0pt 43.65pt;}div.Section1 {page:Section1;}--></style></head><body lang=EN-GB link=blue vlink=purple><div class=Section1><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Hi All</span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Does anyone have an example of using the windows help engine fromwithin vee?</span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Many thanks.</span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Nick</span></font></p></div>---<BR>You are currently subscribed to vrf as: rsb@soco.agilent.com<BR>To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".<BR>To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".<BR>To send messages to this mailing list, email "vrf@agilent.com". <BR>If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".</BODY></html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 10 (filtered)"><style><!-- /* Font Definitions */ @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";}a:link, span.MsoHyperlink {color:blue; text-decoration:underline;}a:visited, span.MsoHyperlinkFollowed {color:#606420; text-decoration:underline;}p {margin-right:0in; margin-left:0in; font-size:12.0pt; font-family:"Times New Roman";}span.emailstyle17 {font-family:Arial; color:windowtext;}span.EmailStyle18 {font-family:"Times New Roman"; color:windowtext; font-weight:normal; font-style:normal; text-decoration:none none;}@page Section1 {size:595.3pt 841.9pt; margin:1.0in 1.25in 1.0in 1.25in;}div.Section1 {page:Section1;}--></style></head><body lang=EN-US link=blue vlink="#606420"><div class=Section1><p class=MsoNormal><font size=4 face="Times New Roman"><span style='font-size:14.0pt'>Hello from </span></font><font size=4><span style='font-size:14.0pt'>Gregg</span></font><font size=4><span style='font-size:14.0pt'> </span></font><font size=4><span style='font-size:14.0pt'>C</span></font><font size=4><span style='font-size: 14.0pt'> </span></font><font size=4><span style='font-size:14.0pt'>Levine</span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Is it possible<u>, however unlikely that you were subscribed at onetime</u>? Since you do want to leave, I suggest you follow the signature’sinstructions at the bottom.</span></font></p><p class=MsoNormal><font size=4 face="Times New Roman"><span style='font-size:14.0pt'>------------------- </span></font><font size=4><span style='font-size:14.0pt'>Gregg</span></font><font size=4><span style='font-size:14.0pt'> </span></font><font size=4><span style='font-size:14.0pt'>C</span></font><font size=4><span style='font-size: 14.0pt'> </span></font><font size=4><span style='font-size:14.0pt'>Levine</span></font><fontsize=4><span style='font-size:14.0pt'> hansolofalcon@worldnet.att.net ------------------------------------------------------------ "The Force will be with you...Always." Obi-Wan Ke</span></font><font size=4><span style='font-size:14.0pt'>nob</span></font><font size=4><spanstyle='font-size:14.0pt'>i "Use the Force, </span></font><font size=4><span style='font-size:14.0pt'>Luke</span></font><fontsize=4><span style='font-size:14.0pt'>." Obi-Wan Ke</span></font><font size=4><span style='font-size:14.0pt'>nob</span></font><font size=4><spanstyle='font-size:14.0pt'>i</span></font></p><div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>-----Original Message----- <b><span style='font-weight:bold'>From:</span></b> </span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>Linda</span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> </span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>Jaffe</span></font><fontsize=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>[mailto:Linda_Jaffe@cmicro.com] <b><span style='font-weight:bold'>Sent:</span></b> </span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>Wednesday, April 28, 2004</span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> </span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>1:58 PM</span></font><font size=2face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> <b><span style='font-weight:bold'>To:</span></b> </span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>VRF</span></font><fontsize=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> <b><span style='font-weight:bold'>Cc:</span></b> 'Borchers, </span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>Mario</span></font><fontsize=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>' <b><span style='font-weight:bold'>Subject:</span></b> [vrf] RE: Help on errorexecuting compiled function from DLL</span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p><div><p class=MsoNormal><font size=2 color=blue face=Arial><span lang=EN-GBstyle='font-size:10.0pt;font-family:Arial;color:blue'>I have received a dozenemails from you guys. Why am I on this distribution list???</span></font></p></div><blockquote style='margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'><p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 face=Tahoma><spanlang=EN-GB style='font-size:10.0pt;font-family:Tahoma'>-----OriginalMessage----- <b><span style='font-weight:bold'>From:</span></b> Brown, Michael L CAR[mailto:Michael.L.Brown@carrier.utc.com] <b><span style='font-weight:bold'>Sent:</span></b> Wednesday, April 28, 20048:34 AM <b><span style='font-weight:bold'>To:</span></b> VRF <b><span style='font-weight:bold'>Cc:</span></b> 'Borchers, Mario' <b><span style='font-weight:bold'>Subject:</span></b> [vrf] RE: Help on errorexecuting compiled function from DLL</span></font></p><div><p class=MsoNormal><font size=2 color=blue face=Arial><span lang=EN-GBstyle='font-size:10.0pt;font-family:Arial;color:blue'>I got a message sayingthat the zip file was blocked, so let's try sending the individual files. Replace the extension DL_ with DLL.</span></font></p></div><div><p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GBstyle='font-size:12.0pt'> </span></font></p></div><div><p class=MsoNormal><font size=2 color=blue face=Arial><span lang=EN-GBstyle='font-size:10.0pt;font-family:Arial;color:blue'>Michael</span></font></p></div><blockquote style='margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'><p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 face=Tahoma><spanlang=EN-GB style='font-size:10.0pt;font-family:Tahoma'>-----OriginalMessage----- <b><span style='font-weight:bold'>From:</span></b> Brown, Michael L CAR <b><span style='font-weight:bold'>Sent:</span></b> Wednesday, April 28, 200410:23 AM <b><span style='font-weight:bold'>To:</span></b> VRF <b><span style='font-weight:bold'>Cc:</span></b> 'Borchers, Mario' <b><span style='font-weight:bold'>Subject:</span></b> RE: [vrf] Help on errorexecuting compiled function from DLL</span></font></p><div><p class=MsoNormal><font size=2 color=blue face=Arial><span lang=EN-GBstyle='font-size:10.0pt;font-family:Arial;color:blue'>Hello Mario,</span></font></p></div><div><p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GBstyle='font-size:12.0pt'> </span></font></p></div><div><p class=MsoNormal><font size=2 color=blue face=Arial><span lang=EN-GBstyle='font-size:10.0pt;font-family:Arial;color:blue'>I use Borland C++ Builder4.0. The attached zip file contains a sample DLL and associatedfiles along with a test program in VEE. See if that works.</span></font></p></div><div><p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GBstyle='font-size:12.0pt'> </span></font></p></div><div><p class=MsoNormal><font size=2 color=blue face=Arial><span lang=EN-GBstyle='font-size:10.0pt;font-family:Arial;color:blue'>Regards,</span></font></p></div><div><p class=MsoNormal><font size=2 color=blue face=Arial><span lang=EN-GBstyle='font-size:10.0pt;font-family:Arial;color:blue'>Michael Brown</span></font></p></div><div><p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GBstyle='font-size:12.0pt'> </span></font></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 face=Tahoma><spanlang=EN-GB style='font-size:10.0pt;font-family:Tahoma'>-----OriginalMessage----- <b><span style='font-weight:bold'>From:</span></b> Borchers, Mario[mailto:Mario.Borchers@astrium.eads.net] <b><span style='font-weight:bold'>Sent:</span></b> Wednesday, April 28, 20046:57 AM <b><span style='font-weight:bold'>To:</span></b> VRF <b><span style='font-weight:bold'>Subject:</span></b> [vrf] Help on errorexecuting compiled function from DLL</span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>Hello all together,</span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GBstyle='font-size:12.0pt'> </span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>my problem is to load a function of my DLL with HPVEE. It works with a C-Code written with MICROSOFT VISUAL C++ but it doesn'twork with BORLAND C++.</span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GBstyle='font-size:12.0pt'> </span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>The HP VEE Program is written with HP VEE 6.2</span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GBstyle='font-size:12.0pt'> </span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>The DLL is written with BORLAND C++ Version 5.0.</span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GBstyle='font-size:12.0pt'> </span></font></p><p class=MsoNormal><b><font size=2 face=Arial><span lang=EN-GBstyle='font-size:10.0pt;font-family:Arial;font-weight:bold'>DLL-Code </span></font></b><fontsize=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>(writtenwith BORLAND C++)<b><span style='font-weight:bold'>:</span></b></span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>*********************************************************************************************************</span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>#include |vcl.h></span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>#include |windows.h></span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>#pragma hdrstop</span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GBstyle='font-size:12.0pt'> </span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>#include "HoKl.h"</span></font></p><p class=MsoNormal style='text-indent:.5in'><font size=3 face="Times New Roman"><spanlang=EN-GB style='font-size:12.0pt'> </span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>#pragma argsused</span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORDfwdreason, LPVOID lpvReserved)</span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>{</span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'> return 1;</span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>}</span></font></p><p class=MsoNormal style='text-indent:.5in'><font size=3 face="Times New Roman"><spanlang=EN-GB style='font-size:12.0pt'> </span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>long _stdcall __declspec(dllimport) my_func(long a)</span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>{</span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'> return(a*2);</span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>}</span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>*********************************************************************************************************</span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GBstyle='font-size:12.0pt'> </span></font></p><p class=MsoNormal><b><font size=2 face=Arial><span lang=EN-GBstyle='font-size:10.0pt;font-family:Arial;font-weight:bold'>DLL Header file:</span></font></b></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>*********************************************************************************************************</span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>long _stdcall __declspec(dllimport) my_func(long a);</span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>*********************************************************************************************************</span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GBstyle='font-size:12.0pt'> </span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>My problem is: I can import the DLL butif I want to load the function "my_func" with 'Call Function' I getthe following error:</span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GBstyle='font-size:12.0pt'> </span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>Function was not loadable: my_func Object title: Call myLib.my_func Object type: Call Error number: 604</span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'> </span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>If somebody can tell me, how I have to modify the,please answer.</span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GBstyle='font-size:12.0pt'> </span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>Greetings</span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GBstyle='font-size:12.0pt'> </span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>Mario<font color=blue><span style='color:blue'> </span></font></span></font></p></blockquote></blockquote></blockquote><p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GBstyle='font-size:12.0pt'>--- You are currently subscribed to vrf as: hansolofalcon@worldnet.att.net To subscribe send a blank email to"join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to"leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to"owner-vrf@it.lists.it.agilent.com". </span></font></p></div></div>---<BR>You are currently subscribed to vrf as: rsb@soco.agilent.com<BR>To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".<BR>To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".<BR>To send messages to this mailing list, email "vrf@agilent.com". <BR>If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".</BODY></html>
Beautiful. See, that's the ticket right there. Other option: rename your .cpp to .c and nix 'extern "C"'. 'Nother option: Use a .def file with an EXPORTS section and don't bother with __declspec or extern. -SHAWN-
--- You are currently subscribed to vrf as: rsb@soco.agilent.com To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
Beautiful. See, that's the ticket right there. Other option: rename your .cpp to .c and nix 'extern "C"'. 'Nother option: Use a .def file with an EXPORTS section and don't bother with __declspec or extern. -SHAWN-
--- You are currently subscribed to vrf as: rsb@soco.agilent.com To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
> Attached is a VEE application that reconstructs the timestwo.dll file from > the binary contents of a UInt8 array. Good luck!
If you consider a trojan a virus, then there it is! -SHAWN-
--- You are currently subscribed to vrf as: rsb@soco.agilent.com To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
Brown, Michael L CAR wrote the following: > Dale, > > Attached is a VEE application that reconstructs the timestwo.dll file from > the binary contents of a UInt8 array. Good luck! > > Michael > > P.S. It's getting harder and harder to get legitimate files past these drat > security blockers!
One day, there might be a VEE virus
-- Graeme Hilton Product Engineer
Schlumberger Sensa
--- You are currently subscribed to vrf as: rsb@soco.agilent.com To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 10 (filtered)"><style><!-- /* Font Definitions */ @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";}a:link, span.MsoHyperlink {color:blue; text-decoration:underline;}a:visited, span.MsoHyperlinkFollowed {color:#606420; text-decoration:underline;}p {margin-right:0in; margin-left:0in; font-size:12.0pt; font-family:"Times New Roman";}span.emailstyle17 {font-family:Arial; color:windowtext;}span.emailstyle18 {font-family:"Times New Roman"; color:windowtext; font-weight:normal; font-style:normal; text-decoration:none none;}span.EmailStyle20 {font-family:"Times New Roman"; color:windowtext; font-weight:normal; font-style:normal; text-decoration:none none;}@page Section1 {size:595.3pt 841.9pt; margin:1.0in 1.25in 1.0in 1.25in;}div.Section1 {page:Section1;}--></style></head><body lang=EN-US link=blue vlink="#606420"><div class=Section1><p class=MsoNormal><font size=4 face="Times New Roman"><span style='font-size:14.0pt'>Hello from </span></font><font size=4><span style='font-size:14.0pt'>Gregg</span></font><font size=4><span style='font-size:14.0pt'> </span></font><font size=4><span style='font-size:14.0pt'>C</span></font><font size=4><span style='font-size: 14.0pt'> </span></font><font size=4><span style='font-size:14.0pt'>Levine</span></font></p><p class=MsoNormal><font size=4 face="Times New Roman"><span style='font-size:14.0pt'>Scott this is partially relevant to all of us, since it solves aparticularly vexing issue from last week.</span></font></p><p class=MsoNormal><font size=4 face="Times New Roman"><span style='font-size:14.0pt'> </span></font></p><p class=MsoNormal><font size=4 face="Times New Roman"><span style='font-size: 14.0pt'>Michael</span></font><font size=4><span style='font-size:14.0pt'> </span></font><font size=4><span style='font-size:14.0pt'>L</span></font><font size=4><spanstyle='font-size:14.0pt'>, Car, and others on the VRF:</span></font></p><p class=MsoNormal><font size=4 face="Times New Roman"><span style='font-size:14.0pt'>I’m going to consider the issues which </span></font><font size=4><span style='font-size:14.0pt'>Michael</span></font><font size=4><spanstyle='font-size:14.0pt'>, and I discussed, both privately, and inside the listclosed, as there are now other issues abounding. For one, there’s thatvirus that’s just starting to make its way through the Internet. I,myself recommend Symantec for all of my customers, and the Norton Antivirusproduct is running here. </span></font></p><p class=MsoNormal><font size=4 face="Times New Roman"><span style='font-size:14.0pt'> </span></font></p><p class=MsoNormal><font size=4 face="Times New Roman"><span style='font-size:14.0pt'>It happens the bug which </span></font><font size=4><span style='font-size:14.0pt'>Michael</span></font><font size=4><spanstyle='font-size:14.0pt'> mentions is targeting NAI customers, all over theplace. Quoting from a news story on my ISP’s homepage, “</span></font>Amongvictims were large companies in Germany, Britain and the United States that areclients of Network Associates Inc., said Vincent Gullotto, a vice president atthe company's anti-virus research lab. He would not name the companies.”,<font size=4><span style='font-size:14.0pt'>so any us who did choose that brandare at risk. Oh, and machines who run 2000, and XP are at risk. Folks, let’sbe careful here. </span></font></p><p class=MsoNormal><font size=4 face="Times New Roman"><span style='font-size:14.0pt'>------------------- </span></font><font size=4><span style='font-size:14.0pt'>Gregg</span></font><font size=4><span style='font-size:14.0pt'> </span></font><font size=4><span style='font-size:14.0pt'>C</span></font><font size=4><span style='font-size: 14.0pt'> </span></font><font size=4><span style='font-size:14.0pt'>Levine</span></font><fontsize=4><span style='font-size:14.0pt'> hansolofalcon@worldnet.att.net ------------------------------------------------------------ "The Force will be with you...Always." Obi-Wan Ke</span></font><font size=4><span style='font-size:14.0pt'>nob</span></font><font size=4><spanstyle='font-size:14.0pt'>i "Use the Force, </span></font><font size=4><span style='font-size:14.0pt'>Luke</span></font><fontsize=4><span style='font-size:14.0pt'>." Obi-Wan Ke</span></font><font size=4><span style='font-size:14.0pt'>nob</span></font><font size=4><spanstyle='font-size:14.0pt'>i</span></font></p><div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>-----Original Message----- <b><span style='font-weight:bold'>From:</span></b> </span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>Brown</span></font><fontsize=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>, </span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>Michael</span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> </span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>L</span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> </span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>CAR</span></font><fontsize=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>[mailto:Michael.L.Brown@carrier.utc.com] <b><span style='font-weight:bold'>Sent:</span></b> </span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>Monday, May 03, 2004</span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> </span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>10:50 AM</span></font><fontsize=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> <b><span style='font-weight:bold'>To:</span></b> </span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>VRF</span></font><fontsize=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> <b><span style='font-weight:bold'>Cc:</span></b> '</span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>Gregg</span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> </span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>C</span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> </span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>Levine</span></font><fontsize=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>' <b><span style='font-weight:bold'>Subject:</span></b> [vrf] RE: Help on errorexecuting compiled function from DLL</span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p><div><p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue'>Hello </span></font><font size=2 color=blue face=Arial><span style='font-size:10.0pt;font-family:Arial; color:blue'>Gregg</span></font><font size=2 color=blue face=Arial><spanstyle='font-size:10.0pt;font-family:Arial;color:blue'>,</span></font></p></div><div><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p></div><div><p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue'>The pertinent item from UTC Policies isthe following: "Executable programs must be blocked, either through thecapabilities of the mail software (Microsoft Exchange, for example) or by otherthird party software." No further detail is given in the policystatement. Apparently the original zip file was blocked not by the UTCserver, but by a receiving server. The UTC server, however, did block theoutgoing TIMESTWO.DL_ file (see attached). I would suspect that someblockers look inside zip files for offending extensions or file signatures,while others let the zip files pass by. So far I have been able toreceive zip files from the vrf, but DLL files and other executabletypes get scratched.</span></font></p></div><div><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p></div><div><p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue'>Coincidentally, I just now received thefollowing virus alert: "The UTC network has been under attack by anew virus called the Sasser.worm, which exploits a new vulnerability announcedby Microsoft." Here we go again!</span></font></p></div><div><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p></div><div><p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue'>Michael</span></font></p></div><blockquote style='margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'><p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 face=Tahoma><spanstyle='font-size:10.0pt;font-family:Tahoma'>-----Original Message----- <b><span style='font-weight:bold'>From:</span></b> Gregg C Levine[mailto:hansolofalcon@worldnet.att.net] <b><span style='font-weight:bold'>Sent:</span></b> Wednesday, April 28, 200410:30 PM <b><span style='font-weight:bold'>To:</span></b> VRF <b><span style='font-weight:bold'>Subject:</span></b> [vrf] RE: Help on errorexecuting compiled function from DLL</span></font></p><p class=MsoNormal><font size=4 face="Times New Roman"><span style='font-size:14.0pt'>Hello from Gregg C Levine</span></font></p><p class=MsoNormal><font size=4 face="Times New Roman"><span style='font-size:14.0pt'>Gang, I've attached a copy of the original zip file to this message.UTC Policies, did not grab this. I believe what you saw, was a falsetrigger.</span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p><p class=MsoNormal><font size=4 face="Times New Roman"><span style='font-size:14.0pt'>Other Mike, the originator of this zip file, can you provide me withthe details, (off list), regarding those supposed policies? And do you want meto make public any of what you sent me off-list?</span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p><p class=MsoNormal><font size=4 face="Times New Roman"><span style='font-size:14.0pt'>Mike, if you want to grab this, and park it on your servers, be myguest, but it's got my system's track marks on it. </span></font></p><p class=MsoNormal><font size=4 face="Times New Roman"><span style='font-size:14.0pt'>------------------- Gregg C Levine hansolofalcon@worldnet.att.net ------------------------------------------------------------ "The Force will be with you...Always." Obi-Wan Kenobi "Use the Force, Luke." Obi-Wan Kenobi</span></font></p><div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>-----Original Message----- <b><span style='font-weight:bold'>From:</span></b> Mike Groves[mailto:mikegroves@pacbell.net] <b><span style='font-weight:bold'>Sent:</span></b> Wednesday, April 28, 200411:06 PM <b><span style='font-weight:bold'>To:</span></b> VRF <b><span style='font-weight:bold'>Subject:</span></b> [vrf] RE: Help on errorexecuting compiled function from DLL</span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p><div><p class=MsoNormal><font size=2 color=blue face=Arial><span lang=EN-GBstyle='font-size:10.0pt;font-family:Arial;color:blue'>I'm sorry, I alreadydeleted the email with the ZIP attachment. If someone can email it tome, or repost it, I'll be happy to make it available for download.</span></font></p></div><div><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p></div><div><p class=MsoNormal><font size=2 color=blue face=Arial><span lang=EN-GBstyle='font-size:10.0pt;font-family:Arial;color:blue'>Mike Groves</span></font></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 face=Tahoma><spanlang=EN-GB style='font-size:10.0pt;font-family:Tahoma'>-----OriginalMessage----- <b><span style='font-weight:bold'>From:</span></b> Zhang, Dale[mailto:zhangd@tycoelectronics.com] <b><span style='font-weight:bold'>Sent:</span></b> Wednesday, April 28, 20049:49 AM <b><span style='font-weight:bold'>To:</span></b> VRF <b><span style='font-weight:bold'>Subject:</span></b> [vrf] RE: Help on errorexecuting compiled function from DLL</span></font></p><div><p class=MsoNormal><font size=2 color=blue face=Arial><span lang=EN-GBstyle='font-size:10.0pt;font-family:Arial;color:blue'>Michael,</span></font></p></div><div><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p></div><div><p class=MsoNormal><font size=2 color=blue face=Arial><span lang=EN-GBstyle='font-size:10.0pt;font-family:Arial;color:blue'>Your DLL is blocked byyour server as below:</span></font></p></div><div><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p></div><div><p class=MsoNormal><font size=2 color=blue face=Arial><span lang=EN-GBstyle='font-size:10.0pt;font-family:Arial;color:blue'>The original messagecontained an attachment that was blocked by UTC Policy. The followingfile types are known to carry viruses and are eligible for blocking:bas,bat,cmd,com,dll,eml,exe,js,nws,pif,scr,shs,vbs. Other file types arescanned for known viruses only. If you have any questions, pleae callyour UTC help desk.</span></font></p></div><div><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p></div><div><p class=MsoNormal><font size=2 color=blue face=Arial><span lang=EN-GBstyle='font-size:10.0pt;font-family:Arial;color:blue'>Is there any way you cansend it out, or like what Mike Groves did? I am very interested in yourexample.</span></font></p></div><div><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p></div><div><p class=MsoNormal><font size=2 color=blue face=Arial><span lang=EN-GBstyle='font-size:10.0pt;font-family:Arial;color:blue'>Thanks. -Dale</span></font></p></div><blockquote style='margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'><p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 face=Tahoma><spanlang=EN-GB style='font-size:10.0pt;font-family:Tahoma'>-----OriginalMessage----- <b><span style='font-weight:bold'>From:</span></b> Brown, Michael L CAR[mailto:Michael.L.Brown@carrier.utc.com] <b><span style='font-weight:bold'>Sent:</span></b> Wednesday, April 28, 200411:34 AM <b><span style='font-weight:bold'>To:</span></b> VRF <b><span style='font-weight:bold'>Cc:</span></b> 'Borchers, Mario' <b><span style='font-weight:bold'>Subject:</span></b> [vrf] RE: Help on error executingcompiled function from DLL</span></font></p><div><p class=MsoNormal><font size=2 color=blue face=Arial><span lang=EN-GBstyle='font-size:10.0pt;font-family:Arial;color:blue'>I got a message sayingthat the zip file was blocked, so let's try sending the individual files. Replace the extension DL_ with DLL.</span></font></p></div><div><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p></div><div><p class=MsoNormal><font size=2 color=blue face=Arial><span lang=EN-GBstyle='font-size:10.0pt;font-family:Arial;color:blue'>Michael</span></font></p></div><blockquote style='margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'><p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 face=Tahoma><spanlang=EN-GB style='font-size:10.0pt;font-family:Tahoma'>-----OriginalMessage----- <b><span style='font-weight:bold'>From:</span></b> Brown, Michael L CAR <b><span style='font-weight:bold'>Sent:</span></b> Wednesday, April 28, 200410:23 AM <b><span style='font-weight:bold'>To:</span></b> VRF <b><span style='font-weight:bold'>Cc:</span></b> 'Borchers, Mario' <b><span style='font-weight:bold'>Subject:</span></b> RE: [vrf] Help on errorexecuting compiled function from DLL</span></font></p><div><p class=MsoNormal><font size=2 color=blue face=Arial><span lang=EN-GBstyle='font-size:10.0pt;font-family:Arial;color:blue'>Hello Mario,</span></font></p></div><div><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p></div><div><p class=MsoNormal><font size=2 color=blue face=Arial><span lang=EN-GBstyle='font-size:10.0pt;font-family:Arial;color:blue'>I use Borland C++ Builder4.0. The attached zip file contains a sample DLL and associatedfiles along with a test program in VEE. See if that works.</span></font></p></div><div><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p></div><div><p class=MsoNormal><font size=2 color=blue face=Arial><span lang=EN-GBstyle='font-size:10.0pt;font-family:Arial;color:blue'>Regards,</span></font></p></div><div><p class=MsoNormal><font size=2 color=blue face=Arial><span lang=EN-GBstyle='font-size:10.0pt;font-family:Arial;color:blue'>Michael Brown</span></font></p></div><div><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 face=Tahoma><spanlang=EN-GB style='font-size:10.0pt;font-family:Tahoma'>-----OriginalMessage----- <b><span style='font-weight:bold'>From:</span></b> Borchers, Mario[mailto:Mario.Borchers@astrium.eads.net] <b><span style='font-weight:bold'>Sent:</span></b> Wednesday, April 28, 20046:57 AM <b><span style='font-weight:bold'>To:</span></b> VRF <b><span style='font-weight:bold'>Subject:</span></b> [vrf] Help on errorexecuting compiled function from DLL</span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>Hello all together,</span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>my problem is to load a function of my DLL with HPVEE. It works with a C-Code written with MICROSOFT VISUAL C++ but it doesn'twork with BORLAND C++.</span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>The HP VEE Program is written with HP VEE 6.2</span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>The DLL is written with BORLAND C++ Version 5.0.</span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p><p class=MsoNormal><b><font size=2 face=Arial><span lang=EN-GBstyle='font-size:10.0pt;font-family:Arial;font-weight:bold'>DLL-Code </span></font></b><fontsize=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>(writtenwith BORLAND C++)<b><span style='font-weight:bold'>:</span></b></span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>*********************************************************************************************************</span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>#include |vcl.h></span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>#include |windows.h></span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>#pragma hdrstop</span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>#include "HoKl.h"</span></font></p><p class=MsoNormal style='text-indent:.5in'><font size=3 face="Times New Roman"><spanstyle='font-size:12.0pt'> </span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>#pragma argsused</span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORDfwdreason, LPVOID lpvReserved)</span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>{</span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'> return 1;</span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>}</span></font></p><p class=MsoNormal style='text-indent:.5in'><font size=3 face="Times New Roman"><spanstyle='font-size:12.0pt'> </span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>long _stdcall __declspec(dllimport) my_func(long a)</span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>{</span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'> return(a*2);</span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>}</span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>*********************************************************************************************************</span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p><p class=MsoNormal><b><font size=2 face=Arial><span lang=EN-GBstyle='font-size:10.0pt;font-family:Arial;font-weight:bold'>DLL Header file:</span></font></b></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>*********************************************************************************************************</span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>long _stdcall __declspec(dllimport) my_func(long a);</span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>*********************************************************************************************************</span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>My problem is: I can import the DLL butif I want to load the function "my_func" with 'Call Function' I getthe following error:</span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>Function was not loadable: my_func Object title: Call myLib.my_func Object type: Call Error number: 604</span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'> </span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>If somebody can tell me, how I have to modify the,please answer.</span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>Greetings</span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>Mario<font color=blue><span style='color:blue'> </span></font></span></font></p></blockquote></blockquote></blockquote></blockquote><p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GBstyle='font-size:12.0pt'>--- You are currently subscribed to vrf as: hansolofalcon@worldnet.att.net To subscribe send a blank email to"join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to"leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to"owner-vrf@it.lists.it.agilent.com". </span></font></p></div></blockquote></div></div>---<BR>You are currently subscribed to vrf as: rsb@soco.agilent.com<BR>To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".<BR>To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".<BR>To send messages to this mailing list, email "vrf@agilent.com". <BR>If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".</BODY></html>
Change to __declspec(dllexport) my_func(long a)
Make sure to change it in the header and the .c or .cpp file.
I don't use Borland but in the MS world dllimport implies this is the
declaration of a function in a different dll and will be imported by the
loader. Essentially dllimport creates a dependency. OTOH, dllexport means
that this function is to be made available for others (i.e. VEE) to import.
-SHAWN-
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".