|
The Osmosian Order wrote: Perhaps. But why, then, is your entire reply (shown above) written in English?
Oh shut up! Because I'm talking to a human being, not a computer. Unless there's something about yourself you're not telling us?
I didn't say it was a poor vehicle for communication. You did! You said every language we use now to program a computer is a poor choice. The language I use is chosen based on the subject that I'm talking to. I'm not going to speak German to some guy who only understands Portugese.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
That would be nice, provided the machine could actually learn English. As it stands now, machines have very limited learning capabilities. What good is teaching a machine English if it's incapable of understanding the lesson?
English works best as a two way communication with two or parties negotiating a concept until a common understanding is reached. Your compiler can't do this. The machine cannot talk back with any understanding. It can't ask you questions in an attempt to clarify concepts to come to that understanding. It's still a program, debug, rewrite, debug, rewrite, debug, process you've got. Sure, you can make an English language, but until you've taught the machine to learn using that language, you haven't broken any ground. All you've done is create another C# or VB.NET.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
The Osmosian Order wrote: But our machine does, in a real sense, understand English.
No, it doesn't. It SEES English. The common understanding and context is already implied. Your still forcing the programmer to think in a limited box that the compiler predefines for him/her.
The Osmosian Order wrote: Not yet. But it's a first step.
It's a huge leap between what your compiler does now, and actual interaction and understanding.
The Osmosian Order wrote: So ask again if you really care, and I'll explain our idea.
Nope. You've already over-represented what your compiler is now. So, I have no interest in even listening to you, let alone your ideas. That's what happens when you force this stuff down peoples throats. When you completely dodge some points of contention and twist other. When you don't even recognize flaws in your compiler, but instead keep focusing on the same tired "It does this, and this, and this..." You haven't discussed your compiler, but shoved it in our faces and insisted on a recognition of accomplishment. Sorry, but respect, of any kind, is earned, not just given.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I had a question that I was hoping someone could help me figure out. I am using vb.net 2005 express edition. I create a structure definition in a class and I want to pass an array containing this structure array back to the form that called it. How would I do that.
|
|
|
|
|
You would have to declare your structure as public and then pass it like you would any other type. For example, your class would contain code like this:
'Declare the Structure
Public Structure myTestStructure
Dim val1 As Integer
Dim val2 As String
End Structure
'Pass the structure
Public Function myFunction() As myTestStructure
Dim StructureInstance As myTestStructure
StructureInstance.val1 = 3
StructureInstance.val2 = "Hi"
Return StructureInstance
End Function
Hope this helps.
|
|
|
|
|
It helps some, but how would I make an array of this structure and then pass it.
|
|
|
|
|
This is a rough outline of what your class would look like:
Public Class MyClassName
'Declare the Structure
Public Structure myTestStructure
Dim val1 As Integer
Dim val2 As String
End Structure
'Pass the structure
Public Function myFunction() As myTestStructure
Dim StructureInstance As myTestStructure
StructureInstance.val1 = 3
StructureInstance.val2 = "Hi"
Return StructureInstance
End Function
End Class
And this is a rough outline of how you will call the class:
Dim objClassInstance as New MyClassName
Dim objTestStructure as New objClassInstance.myTestStructure
objTestStructure = objClassInstance.myFunction
Once you play around with it a bit, you will get the hang of how it all works.
|
|
|
|
|
Is there anyone out there who could point me in the right direction regarding creating a vb.net wrapper? I have a c language .dll which has the unmanaged functions that I need to call from my managed code. This is an API application. I know it is possible to make an active-x wrapper in this situation, but I have absolutely no idea how to start. A tutorial would be appreciated.
Thank you
|
|
|
|
|
The wrapper will be auto-created if you try to reference the dll in the vb.net project. An interopt will be created for you and then you make all your code will go through the interopt talking to your c-dll.
|
|
|
|
|
Hi all,
Im trying to edit an existing excel file then save the changes programmatically without having the save confirmation window.
im tryin this codes
TargetExcel.Workbooks.Open(Dt.Rows(cnt).Item(2) & Dt.Rows(cnt).Item(1))
TargetExcel.ActiveWorkbook.Password = txt_password.Text
TargetExcel.Workbooks.Close()
ive even try to use
TargetExcel.Application.DisplayAlerts = False
it does eliminate the pop ups but will not save the changes on the file...
any other codes or approach, tnx in advance.
-::maximus::-
|
|
|
|
|
Does the program produce any errors?
What code are you using to save the document?
|
|
|
|
|
Hi, I'm Alessio.
I've a problem with event handling in remoting.
I've a Server app (a simple WinConsole exe), I've a Client app (a simple one button form), I've a remote object (a simple dll referenced in both client and server app) and I've an "event wrapper" (a simple dll referenced in both client and remote dll).
My remote object has just a method by which I increase an internal counter and display it in the Server console window.
My Client app button, when pressed call the remote object method.
When I run the Client from two or more PC, all works fine. The counter is updated and its value displayed on Server console window.
After this, I've tried to add an event on remote object and handle it from the client.
I've found on the net the code I needed, so I've built the "event wrapper" object.
The wrapper works fine, because in my first test, when the remote object fires its event, I've got a messagebox on each client.
Now I've replace on client the "messagebox.show(RemoteObjCounter)" call with "textbox1.text = RemoteObjCounter" but it doesn't work and I don't know why.
In debugging mode on client, the "textbox1" object doesn't seem to be referenced.
Can anyone help me ?
Thanx in advance and excuse me for my bad english.
|
|
|
|
|
I am trying to capture the recordid for the record I just inserted and use it in another field in the same table. ex. the document number being generated uses the record id at the end of the field.
documentnumber = ("RTV-" & Format(Date.Today, "MMddyy") & "-" & recordid)
anne lewis
|
|
|
|
|
Hmmm... My answers depend on how the recordID is generated. I'm assuming it's based on an auto incrementing number.
Three suggestions for different scenarios -
1. If there's only one user accessing the database you could probably write code to logically "guess" what the record ID would be. If the record ID is auto incremented then this would probably work really well though it's bad practice.
2. If there's a number of concurrent users accessing the database then you could save the record, query the database to get the new record ID & update that field saving it back to the database. That seems like too much work though, doesn't it? At least you'll be sure that you've got the right data.
3. If you're using an SQL database I think (but unsure) you could write a trigger for the record ID to be inserted once the record is saved.
|
|
|
|
|
the recordid is already being generated. I want to query for the id that was just created and update the documentnumber with that number.
|
|
|
|
|
|
what is the exact sql statement?
|
|
|
|
|
Get the id of the last record from the database. Depending on the database you use different functions:
MS SQL: scope_identity()
Access: @@identity
MySQL: last_insert_id()
Example:
"select scope_identity() as LastId"
---
b { font-weight: normal; }
|
|
|
|
|
i've taken a student placement in a marketing company as the IT specialist. Which would have been a nice challenge if it werent for the fact that they want a complete revamp of there inhouse software to minimize data input.
I have never used delphi before so i am looking for some good sources as teaching aid. So if anybody knows of any website / ebook that i could use could you let me know,
thank you
Nx
to err is to be human but to really foul things up you need a computer!
|
|
|
|
|
Delphi is now a minority language. www.borland.com[^] are the makers of it and information and tutorials should be available including some downloadable "personal" versions of their offerings.
However, for a beginner tutorial look here http://www.marcocantu.com/edelphi[^]
modified 1-Aug-19 21:02pm.
|
|
|
|
|
thank you very much, this has been a HUGE help.
to err is to be human but to really foul things up you need a computer!
|
|
|
|
|
Hi Members
Is there any way available in VB.net through which I get the list of windows users only that doesn't include applications users like SQLDebugger, ASPNet etc.
Thanks in advance
Regards
Ali Raza
|
|
|
|
|
There's no way to tell the difference between the two. Those are actual user accounts that those services use to login to Windows. There's nothing special about them to differentiate between those and a flesh and blood user.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I am try to write a Gnutella client in Vb.net and have hit a road bump. According to the interfaces GetHostIP (Isearch.GetHostIp) which uses the Variables ResultID, HostID, SearchID returns 4 bytes representing the hosts IP.
I have tried converting this to a Int32 using Converto.Int32 but I can never get any actual information all I get is 0.
Can anyone help with getting a Uint32 value to display in VB.net ultimately it will be displayed in a listview.
Cheers in Advance
0pius
|
|
|
|
|
If it's an IP address, wouldn't you want to convert every 8 bits into a number between 0 and 255 ? Have you checked the value you're trying to convert to see what's in it ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|