|
I don't know FORTRAN so I can't really help with that side. From the VB.NET side, you can declare the Function something like this, if the function returns an array of Integers:
Private Declare Function segmentationAlt Lib "myFortran.dll" ( _
ByVal AAseqc As Integer, ByVal aaLen As Integer) As Integer()
As for the FORTRAN side, Google is your friend: "fortran90 returning an array[^]". That's about the best I can do.
|
|
|
|
|
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
|
|
|
|
|
I have just started with VB.Net, and so far I am having a blast - however I have hit a wall with regards to the QuickTime component offered by Apple. I am posting this message here to see if anyone here has or is using it.
In the below URL (listing 3) you can see an almost perfect example of how to convert a file in VB 6 using QuickTime. I am only stuck on two issues: where / what is control.movie coming from (it's supposed to be the file you want to convert but I dont see where it is created or being passed from) and I need to get QuickTime to report back with it's export options, or the codecs which can be used to export.
http://developer.apple.com/technotes/tn2006/tn2120.html
This is technically my third program I have written so far, the second one being a total rewrite of the first. I am pretty sure the answer is right there staring me in the face, I just dont have the experiance yet to see it!
Any help at all would be greatly appreciated.
Thanks,
Mark
|
|
|
|
|
Sorikan wrote: his is technically my third program I have written so far, the second one being a total rewrite of the first.
This is something that is very basic in nature. I highly suggest picking up a beginners book on VB.NET and working through it.
The code you refer to says that "Control" is avariable of type QTControl. This method is expecting you to pass in a QTControl object.
|
|
|
|
|
Ok. Thanks for answering.
Anyone else?
Sorikan
|
|
|
|
|
I'm sure there are plenty of people here happy to back up Dave's advice. I'm one.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have books, and I do use them. I have ordered more books, and will use them when they arrive.
Simply telling me to read a book in no way helps me with this specific issue. I just want to know how to export as, with quicktime in vb.net, and how to query quicktime to report back with its list of export types.
I am not asking someone else to write my entire program for me as others here do, I simply need help in one spot. Telling me to read a book (that has nothing to do with quicktime) is about as useful as not even replying to my message.
I appreciate that I am a n00b, and that I have a LOT more to learn, but I feel as if his reply was simply a blow off.
Maybe i'm just in a bad mood today. maybe not.
Sorikan
|
|
|
|
|
Sorikan wrote: Simply telling me to read a book in no way helps me with this specific issue.
The answer to your first question was that basic and fundamental. That's why you got that answer.
Sorikan wrote: I just want to know how to export as, with quicktime in vb.net, and how to query quicktime to report back with its list of export types.
That is functionality specific to the QuickTime library. This is a question better asked in a forum specific to QuickTime development, not CodeProject. The odds of someone who has used that library seeing your post are very, very low. If you want an answer that specific, you're going to have to find a forum dedicated to QuickTime. Your question has nothing to do with VB.NET itself.
If you think this answer is a blowoff, I'll just keep my mouth shut and watch as your question goes unanswered, day after day after day. I believe is using the right tool for the job. If you believe walking into a Chevy dealership is the best place to ask questions about a BMW motorcycle, go ahead and wait for answer...
|
|
|
|
|
Hello every one
I am new in vb.net and i am working on my assignment about add customer's data in to text file so i have used data writer to write data in to file now i want to add customer's name in to combo box so i have used data reader it's working but i dont want all the customer's details i just want customer's name in combo box
this is the code for write data
'create stream writer to add data in to text tile<br />
Private Sub AddDataInFile()<br />
Dim DataWriter As New System.IO.StreamWriter(MyFile, True)<br />
'get data to variable<br />
Title = Trim(cboTitle.SelectedItem.ToString)<br />
FName = Trim(txtName.Text)<br />
MName = Trim(txtMName.Text)<br />
SName = Trim(txtSurname.Text)<br />
Age = Trim(txtAge.Text)<br />
'write data to file<br />
DataWriter.WriteLine(Title + FName + MName + SName + Age)<br />
DataWriter.Close()<br />
End Sub
and this is for read data from text file
Private Sub AddDataInCombo()<br />
'get all the name in combo box<br />
Dim TempData As String<br />
cboMyList.Items.Clear()<br />
If System.IO.File.Exists(MyFile) = True Then<br />
Dim DataReader As New System.IO.StreamReader(MyFile)<br />
Do While DataReader.Peek <> -1<br />
TempData = Trim(DataReader.ReadLine())<br />
cboMyList.Items.Add(TempData)<br />
Loop<br />
DataReader.Close()<br />
End If<br />
End Sub
i dont want to display age in to combo box just name only, I want to use this name for search so next thing is how to search from name ????
any help
waiting for your kind rep.
thanks
|
|
|
|
|
bapu2889 wrote: DataWriter.WriteLine(Title + FName + MName + SName + Age)
This leaves you with one line, and no way to tell which bit is which. Write a line for each item of data, then you can read them a line at a time and know what each part of the data is.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
which symmetric algothrim is efficient to encrypt the MPEG file in dotnet envirnment and through which technique reduce MPEG file in dotnet. plz mention specific algothrim and technique for MPEG file.
|
|
|
|
|
DotNet is irrelevant, obviously. How do you want to encrypt it, so no-one can play it ?
MPEG is a known format, unless you lower image quality, I don't see how you can make files smaller. It's not like AVI, where AVI itself is uncompressed and the file extension is used by a ton of different codecs that all compress differently
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
please tell me about tabpane and controlling tabpane
Thanks a lot for your reply message,
|
|
|
|
|
Tell you what? This forum is for specific programming questions.
If you want to learn how these controls work, try reading the documentation.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Meenge wrote: please tell me about tabpane and controlling tabpane
What do you want to know about it? You need to be more specific.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
|
hi all
i have a Procedure that return a row affected. its like this
Create Proc CheckExistance(@username varchar(50))
as
Select @@Rowcount from Login where Username = @username
And on my vb code its like this
Answer = cmd.ExecuteNonQuery()
PLease note that Answer is an integer variable, that i want to assign the value returned by a stored Procedure.
Forgive me about formatting issues, i have a problem with code project lately, buttons don't appear nicely, i cant even use pre, because it takes me to another page.
thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Vuyiswa wrote: Select @@Rowcount from Login where Username = @username
This doesn't look right. Getting the rowcount from a query in T-SQL requires a separate query.
IMHO, the most efficient way to check for the existence of a record is to use the EXISTS keyword. This is because SQL Server will stop searching as soon as it finds the first match. For instance:
IF EXISTS (SELECT TOP 1 * FROM Login WHERE Username = @username)
RETURN 1
ELSE
RETURN 0
END
BTW, not sure what problem you are having with <pre> tags. They're working OK for me.
Hope this helps.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
hi Paul
thanks for the reply, think you gave me what i needed thanks.
i think it was my connection and my browser, that wanted to move away from the page when i tried to Click "
" tag, next time i will type it , i was too lazy am sorry.
Thanks for the help
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
hi friends
Currently i m working on msTAPI3.0 in vb.net. I want to call 3 customer so i user for loop. When loop play for first time the message sent successfully but second time an error occur error is:
------------------------------------------------------------------------
Uninitialized object (Exception from HRESULT: 0x80040007 (OLE_E_BLANK))
------------------------------------------------------------------------
How can i sort out this error. Plz solve my problem.
Thanks in advance
|
|
|
|
|
You need to the post a code snippet of what is throwing this error. Without seeing it, anyone who gives you an answer is just guessing at the problem.
|
|
|
|
|
He must be expecting someone to know the error code right off the top of their head?
I just take the whole error code and put it in a google search.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Like Dave said, you need to post the code snippet where you are having trouble. No one can really help without seeing it.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
my fra tab is designed for
activetablabelbackcolor is Teal &
inactivetablabelbackcolor is Gray.
let my fra tabs be two fra tabs.
firstly,fratab_1 is active and this backcolor is Teal
and fratab_2 is inactive,then i changed to fratab_2 ,
but fratab_1 is not completely inactive,a little active
Teal color is still at top of the tab_1 ,and fratab_2
is not completely active ,a little inactive Gray color
is include at top of the tab_2
|
|
|
|
|