|
Vuyiswamb wrote: me.Tostring
Uhhh...Me refers to the instance of the class it appears in. If you used Me inside a Form class, you executed .ToString() on a Form .
|
|
|
|
|
i made a delegate of one sub and sent its method.methodhandle.value to a sub in a VisualFortran Dll.
the sub in VisualFortran creates an interface to work with this sub and calling it from fortran.
this works in vb6 when i send the (addressof sub) to visual fortran but it does not work when the delegate.method.methodhandle.value in vb.net is sent to the fortran dll.
i know intptr is not even a CLS-Comapliant but i recieve the error "protected memory ..."
A.E.K
|
|
|
|
|
Without seeing your code that declares the delegate, the function your calling, and the callback function in your code, it's kind of hard to diagnose. This[^] is about the only thing anyone can recommend.
|
|
|
|
|
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
|
|
|
|
|
Hi
I did an add-in for vs.NET 2003 and that element appeared in menu but I have a problem how to connect it with program I'd like to write. Which method is responsible for calling and where to set it? Could you help me or point out the webside with description?
Thank you for replays
Kasia
|
|
|
|
|
What is this "connection" supposed to do? What's it supposed to carry? What does this plugin do?
|
|
|
|
|
I added add-in into the menu. I don't know how to bind this with form. How to call it? Which method is responsible for doing it?
Katarzyna
|
|
|
|
|
You haven't answered any of my questions. The is information that anyone MUST have to tell you anything useful.
Katarzyna_ wrote: I don't know how to bind this with form.
A plugin to Visual Studio alters the functionality of Visual Studio, NOT your form.
Katarzyna_ wrote: How to call it? Which method is responsible for doing it?
Your projects code doesn't call an AddIn to Visual Studio. There's nothing to "bind" to. There is no one method for calling an Add In.
Or maybe I'm confused as to what this Add In is doing. It's impossible to say because you haven't said ANYTHING about what the plugin does.
|
|
|
|
|
I made an addin and it appeared in menu in Visual Studio. Now I'd like to have a possibility to choose that element in menu by click and call a form which I did. Simple path. Mayby it is imposible to do it. I just don't know.
I read about methods like:
OnConnection
OnDisconnection
OnStartupComplete
OnAddInsUpdate
OnBeginShutdown
but I don't know how to use it.
|
|
|
|
|
Which interface did you implement in your addin?
|
|
|
|
|
I've not implemented any interfaces in my addin yet because I don't know how to do it. It is just the problem I'd like sb to help me with.
|
|
|
|
|
|
Ahhhhh how to explain...
I have MDI Form with menu that looks like this:
_________________________________
|File░░Edit░░View░░Help░░░░░░░░░░░░|
|Open░░|▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓|
|Exit░░░|▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓|
|-------|▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓|
|▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓|
|▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓|
|▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓|
|▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓|
|▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓|
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
The Bold Text File item is selected...
And i have other Child form which i shown when i open file...
The child form menu looks like this:
_________________________________
|File░░Edit░░░░░░░░░░░░░░░░░░░░░░░|
|Save░░░░░░|░░░░░░░░░░░░░░░░░░░░|
|Save as...░░|░░░░░░░░░░░░░░░░░░░░|
|------------|░░░░░░░░░░░░░░░░░░░░|
|Close░░░░░░|░░░░░░░░░░░░░░░░░░░░|
|------------|░░░░░░░░░░░░░░░░░░░░|
|░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░|
|░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░|
|░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░|
|░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░|
|░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░|
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
So what i want is that the MDI form looks like this:
That it gets all menu items from child form, and that a child form
doesn't contain any item...
_________________________________
|File░░Edit░░View░░Help░░░░░░░░░░░░|
|Open░░░░░░|▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓|
|------------|▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓|
|Save░░░░░░|▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓|
|Save as...░░|▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓|
|------------|▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓|
|Close░░░░░░|▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓|
|------------|▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓|
|Exit░░░░░░░|▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓|
|------------|▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓|
|▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓|
|▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓|
|▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓|
|▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓|
|▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓|
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
I did this in vb.net 2003 and its working fine buth i cant do that in 2005...
Please help me!!! THANKS!!!!!!!!!!!!!!!
I hope you understand...
|
|
|
|
|
You haven't described how you did it in vb2003 and how it doesn't work vb2005!
So how could we help you?!
|
|
|
|
|
its sample in 2003, you place menu on main form and menu on child form, then you just select what items you want to merge and select replace or add (you can sort items by their indexes) and thats all it works perfect but in 2005 it replaces and duplicates them please help i cant finish any of my projects...
|
|
|
|
|
Private Sub Form_Load()
Dim i As Long, Arr(100) As Long
For i = 0 To 5
Arr(i) = InputBox("Enter the " & i & "th number.", "Number Array")
Next i
MsgBox Arr(0) & " " & Arr(1) & " " & Arr(2) & " " & Arr(3) & " " & Arr(4) & " " & Arr(5)
End Sub
The name is Sandeep
|
|
|
|
|
|
Sorry man..
That was my friend.. He needed some help regarding arrays. So I just answered him. Sorry to bother you.
The name is Sandeep
|
|
|
|
|
Where was his question?
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5
Ready to Give up - Your help will be much appreciated.
My website
|
|
|
|
|
is there an easy way to remove empty lines in Richtextbox?
any help will be greatly appreciated.
I have been trying do this on my own for months Couldn't find a single easy way of doing this.
I tried converting the text to rtf then removed all "/par" and then reconverting it to text. it worked well to a certain extent but was not perfect.
thanx
|
|
|
|
|
I think empty lines have a format like '\par??\par ', so you may look for this syntax and replace it with '\par '
|
|
|
|
|
sorry that was just a typing mistake in the message and I did use it the same way before. my problem is when I search for "\Par" using whole word option it finds it; and also finds what ever that looks like this "{\Par"(even if I did use the whole word option it doesn't find; just! "\Par". If it is "a\Par" it doesn't matter but if it is other then numbers or alphabetic characters; it just finds it and gets rid of it).
thanx for u'r help anyway.
|
|
|
|
|
I want to know about assmblies in detail,like What is the diffrence between having multiple copy of dll and having multiple versions of Dll.
Also diffrent types of assemblies?????
Pls help me.
GIRISH
|
|
|
|
|
It's amazing what a little Google will come up with. Click[^]
|
|
|
|
|
hi ,
i want to ask more simple question. i have a file which have following name(with full path)
C:\a.png
now i want to change the name of this file as following
c:\0.png
i know this is very simple question. but there r some confusion. I want to know how can rename the file in VB.NET
any help will be appreciated
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|