Click here to Skip to main content
15,924,193 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: swf in vb 2005 Pin
Dave Kreskowiak9-Dec-07 4:44
mveDave Kreskowiak9-Dec-07 4:44 
QuestionHow to declare a Fortran DLL in ASP.NET 2.0 - Visual Basic Pin
Sergio2santos8-Dec-07 17:56
Sergio2santos8-Dec-07 17:56 
AnswerRe: How to declare a Fortran DLL in ASP.NET 2.0 - Visual Basic Pin
Dave Kreskowiak9-Dec-07 4:39
mveDave Kreskowiak9-Dec-07 4:39 
GeneralRe: How to declare a Fortran DLL in ASP.NET 2.0 - Visual Basic Pin
Sergio2santos12-Dec-07 11:09
Sergio2santos12-Dec-07 11:09 
GeneralRe: How to declare a Fortran DLL in ASP.NET 2.0 - Visual Basic Pin
Dave Kreskowiak12-Dec-07 12:49
mveDave Kreskowiak12-Dec-07 12:49 
GeneralRe: How to declare a Fortran DLL in ASP.NET 2.0 - Visual Basic Pin
Sergio2santos12-Dec-07 16:12
Sergio2santos12-Dec-07 16:12 
GeneralRe: How to declare a Fortran DLL in ASP.NET 2.0 - Visual Basic Pin
Dave Kreskowiak13-Dec-07 1:39
mveDave Kreskowiak13-Dec-07 1:39 
GeneralRe: How to declare a Fortran DLL in ASP.NET 2.0 - Visual Basic Pin
Sergio2santos12-Dec-07 17:45
Sergio2santos12-Dec-07 17:45 
Hi Dave,

Regarding array valued functions in Fortran - I figured that if I declare my function inside the DLL as follows the DLL compiles...

FUNCTION SegmentationAlt(AAseqc, aaLen)	result (top)<br />
!MS$ATTRIBUTES DLLEXPORT, ALIAS:'segmentationAlt'::segmentationAlt<br />
<br />
use portlib<br />
<br />
!********************Variables***********************************<br />
<br />
integer aaLen !The length of the aa-sequence passed<br />
integer	n	  !Variable to store the aa-sequence length<br />
<br />
Integer AAseqc(aaLen)<br />
	         			         <br />
integer, ALLOCATABLE :: seq(:)   !It will take in the amino acid input sequence -<br />
                                 !Numeric format 1-20<br />
<br />
character topc(aaLen) !Topologia na forma I,O,M	- In character format<br />
<br />
integer top(aaLen) !Sequencia de topologias relativas a seq:1(I)2(M)3(O)<br />
                     !In numeric format<br />
<br />
real*8 PpostT(aaLen,3), Frq(aaLen,3), FrqAnt(aaLen,3) <br />
<br />
                   .<br />
                   .<br />
                   .<br />
                   .


The return type is an integer array. And then I do not know how to call the the function from my ASP-Visual Basic. I tried "array" as return - I guess not a good idea because it is not a type but a class....
                       .<br />
                             .<br />
                             .<br />
Private Declare Function SegmentationAlt Lib "BETH_DLL.dll" (ByRef seq As Single, ByRef LengthAA As Integer) As Array<br />
                             .<br />
                             .<br />
                             .<br />
Static Top(0 To LengthAA) As Integer 'stores the numeric version of the topology<br />
                             .<br />
                             .<br />
                             .<br />
Top = SegmentationAlt(seq(1), LengthAA)<br />
                             .<br />
                             .


The thing actually compiles but then it does not find the function "SegmentationAlt" in the DLL.
"Unable to load DLL 'BETH_DLL.dll': The specified module could not be found. "
I am sure that the DLL was properly included in the project - I think that the "signature" of the function is not recognized from the ASP-VB code.

Could you please coment on this. I would appreciate,
Sergio
QuestionQuicktime & VB.Net! Pin
Sorikan8-Dec-07 14:07
Sorikan8-Dec-07 14:07 
GeneralRe: Quicktime & VB.Net! Pin
Dave Kreskowiak8-Dec-07 17:10
mveDave Kreskowiak8-Dec-07 17:10 
GeneralRe: Quicktime & VB.Net! Pin
Sorikan8-Dec-07 17:33
Sorikan8-Dec-07 17:33 
GeneralRe: Quicktime & VB.Net! Pin
Christian Graus8-Dec-07 22:38
protectorChristian Graus8-Dec-07 22:38 
GeneralRe: Quicktime & VB.Net! Pin
Sorikan9-Dec-07 9:57
Sorikan9-Dec-07 9:57 
GeneralRe: Quicktime & VB.Net! Pin
Dave Kreskowiak10-Dec-07 2:10
mveDave Kreskowiak10-Dec-07 2:10 
Generaltext file Pin
bapu28898-Dec-07 8:16
bapu28898-Dec-07 8:16 
GeneralRe: text file Pin
Christian Graus8-Dec-07 9:21
protectorChristian Graus8-Dec-07 9:21 
GeneralMPEG encryption Pin
zeeshi_247-Dec-07 23:31
zeeshi_247-Dec-07 23:31 
GeneralRe: MPEG encryption Pin
Christian Graus7-Dec-07 23:46
protectorChristian Graus7-Dec-07 23:46 
GeneralAbout TabPane Pin
Meenge7-Dec-07 23:02
Meenge7-Dec-07 23:02 
GeneralRe: About TabPane Pin
pmarfleet7-Dec-07 23:43
pmarfleet7-Dec-07 23:43 
GeneralRe: About TabPane Pin
Paul Conrad9-Dec-07 8:57
professionalPaul Conrad9-Dec-07 8:57 
GeneralRe: About TabPane Pin
John_Adams9-Dec-07 23:46
John_Adams9-Dec-07 23:46 
QuestionHow many records afected by this code Pin
Vimalsoft(Pty) Ltd7-Dec-07 22:45
professionalVimalsoft(Pty) Ltd7-Dec-07 22:45 
AnswerRe: How many records afected by this code Pin
pmarfleet7-Dec-07 23:40
pmarfleet7-Dec-07 23:40 
AnswerRe: How many records afected by this code Pin
Vimalsoft(Pty) Ltd8-Dec-07 1:25
professionalVimalsoft(Pty) Ltd8-Dec-07 1:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.