Click here to Skip to main content
15,923,226 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to insert Null Values Pin
Christian Graus20-Jun-07 11:56
protectorChristian Graus20-Jun-07 11:56 
GeneralRe: How to insert Null Values Pin
Vimalsoft(Pty) Ltd20-Jun-07 19:35
professionalVimalsoft(Pty) Ltd20-Jun-07 19:35 
GeneralRe: How to insert Null Values Pin
Dave Kreskowiak21-Jun-07 4:12
mveDave Kreskowiak21-Jun-07 4:12 
GeneralRe: How to insert Null Values Pin
Vimalsoft(Pty) Ltd21-Jun-07 22:40
professionalVimalsoft(Pty) Ltd21-Jun-07 22:40 
GeneralRe: How to insert Null Values Pin
Dave Kreskowiak22-Jun-07 16:41
mveDave Kreskowiak22-Jun-07 16:41 
Questionintptr Pin
Taylor Kobani20-Jun-07 0:16
Taylor Kobani20-Jun-07 0:16 
AnswerRe: intptr Pin
Dave Kreskowiak21-Jun-07 4:11
mveDave Kreskowiak21-Jun-07 4:11 
GeneralRe: intptr [modified] Pin
Taylor Kobani22-Jun-07 7:58
Taylor Kobani22-Jun-07 7:58 
This is the code in VB.NET

Private Declare Function dll1 Lib "FileAddress" (ByVal ptr As Integer) as Single<br />
    Public Delegate Function del1(ByVal p As Single) As Single<br />
    Dim g1 As del1 = AddressOf proc1<br />
    Function proc1(ByVal p As Single) As Single<br />
        Return p ^ 2<br />
    End Function


Here is the function Call(in.Net):
dll1(g1.Method.MethodHandle.Value)

and here the code in VisualFortran:

Real function dll1(F)<br />
!dec$ attributes dllexport ::dll1<br />
!dec$ attributes alias :'dll1'::dll1<br />
<br />
interface <br />
 real function F(x)<br />
  real x<br />
 end<br />
end interface<br />
<br />
end


and I recieve this Error:
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Notice that i call back a function in .Net from Visual Fortran (not another .Net)

thanx a lot



A.E.K

QuestionAdd -in problems Pin
Katarzyna_20-Jun-07 0:06
Katarzyna_20-Jun-07 0:06 
AnswerRe: Add -in problems Pin
Dave Kreskowiak21-Jun-07 4:07
mveDave Kreskowiak21-Jun-07 4:07 
GeneralRe: Add -in problems Pin
Katarzyna_21-Jun-07 11:03
Katarzyna_21-Jun-07 11:03 
GeneralRe: Add -in problems Pin
Dave Kreskowiak21-Jun-07 14:24
mveDave Kreskowiak21-Jun-07 14:24 
GeneralRe: Add -in problems Pin
Katarzyna_21-Jun-07 21:51
Katarzyna_21-Jun-07 21:51 
GeneralRe: Add -in problems Pin
Dave Kreskowiak22-Jun-07 16:37
mveDave Kreskowiak22-Jun-07 16:37 
GeneralRe: Add -in problems Pin
Katarzyna_24-Jun-07 5:40
Katarzyna_24-Jun-07 5:40 
GeneralRe: Add -in problems Pin
Dave Kreskowiak24-Jun-07 6:13
mveDave Kreskowiak24-Jun-07 6:13 
QuestionMDI Form - Mergeing menu items Pin
FeRtoll19-Jun-07 23:40
FeRtoll19-Jun-07 23:40 
AnswerRe: MDI Form - Mergeing menu items Pin
MohammadAmiry20-Jun-07 0:46
MohammadAmiry20-Jun-07 0:46 
GeneralRe: MDI Form - Mergeing menu items Pin
FeRtoll20-Jun-07 20:27
FeRtoll20-Jun-07 20:27 
QuestionHey primal....... Pin
Xandip19-Jun-07 21:15
Xandip19-Jun-07 21:15 
AnswerRe: Hey primal....... Pin
Vasudevan Deepak Kumar19-Jun-07 21:28
Vasudevan Deepak Kumar19-Jun-07 21:28 
GeneralRe: Hey primal....... Pin
Xandip19-Jun-07 22:34
Xandip19-Jun-07 22:34 
GeneralRe: Hey primal....... Pin
Colin Angus Mackay19-Jun-07 22:50
Colin Angus Mackay19-Jun-07 22:50 
QuestionRemove Empty Lines Pin
NANCO19-Jun-07 21:08
NANCO19-Jun-07 21:08 
AnswerRe: Remove Empty Lines Pin
MohammadAmiry20-Jun-07 0:25
MohammadAmiry20-Jun-07 0: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.