Converting Socket Written In PHP?
Sep 21, 2011
I want to access a socket that has been opened for me by my service providers. Their socket is written in PHP and I don't understand PHP at all. Themselves they don't understand VB.Net
The Code in PHP as as below
<?
$num = $_GET['num'];
$ext = $_GET['ext'];
[Code].....
View 2 Replies
ADVERTISEMENT
Mar 8, 2012
I need to write a program to convert in a textbox a number to its roman numeral and written english equivalent. I can write everything except how to get the program to recognize the numbers and convert it into what I need it to.
This is what I have so far, and I'm not completely sure if this is even right, but I can't figure much else out. I've talked to other people who know about this and they aren't sure how to go about it, and my book isn't a big help either.
I would really appreciate any and all help than anyone could give me. I just don't know what else to do and I've been stuck here for a few days trying to learn how to do this...
Option Strict On
Public Class Form1
Private Sub btnRoman_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRoman.Click
[Code].....
View 7 Replies
Mar 23, 2012
I have codes which is written with python. I am not good with python and i want to convert this python codes to VB 2010.This python function searching local network and finding my LG TV's local IP adress. I want to find my TV's local IP with VB 2010.
[Code]...
View 9 Replies
Aug 29, 2009
I am trying to communicate with an external device and i am trying to send a byte array to the external device via sockets but i am always getting a response the message size is too small so i am not sure what i have done wrong. Between the data type there should be no alignment present and all numbers are represented in little endian format. The char array is not null terminated as mentioned in the protocol specifications.
I have to send data based on a struct that embeds 2 other struct. So here's my vb.net code for the struct used to convert to byte array and the sending part.
Public Structure MESSAGETYPE_OIP_Login
Dim Header() As COMMANDHEADER
Dim UserName() As PSTRING
[Code]....
View 2 Replies
May 21, 2011
I wrote a Socket Client which will send the Socket Server some data and get some response from Server. This process will be running once in every 2 seconds.
Now what I need to know is How we can identify the connection lost between Server and Client?
I need this to be implemented in the Client side. If there is no connection then Client should automatically close the connection. Once the connection with the server is available in the next attempt it should connect automatically.
View 1 Replies
Oct 15, 2011
Below is my code, but when i send the message thru client socket i receive Specified argument was out of the range of valid values. Parameter name: size
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim serverStream As NetworkStream = clientSocket.GetStream()
Dim outStream As Byte() = _
System.Text.Encoding.ASCII.GetBytes("0800822000000000000004000000000000000920092126012345001")
[CODE]...
View 1 Replies
Aug 22, 2011
my goal is to
1.Take an file(exe,dll,etc)
2.Convert it into hex
3.place that hex values in a stack
4.Execute the values inside the stack to its original form(i.e. take the elements out of stack and then convert it to a compile format)
Imports System.IO
Sub Main()
Dim fileName As String = "ABC.exe"
[code]....
View 1 Replies
Nov 22, 2011
I have question to ask.
I have a dll file written for reading&writing data on USB.To use dll in VB.Net, one needs to integrate a .vb file which interface to that dll file to use its functions, properties etc..
What I need is to use this dll in a C# project. is this possible?[code]...
View 3 Replies
Jul 16, 2009
I am little bit confuse about using properties(Get and Set) in ASP.NET that when these Properties is used.Means How I come to know the exact use of Properties in application. And what is the advantages of using it? [code]
View 2 Replies
Jan 24, 2012
I found a very useful source code on how to make a fud cryptor, but the author didn't mention which coding language / software he used, please follow the link below, to see the full source code.
View 5 Replies
Aug 2, 2011
In java I would Write:
if (something != bla || something != bla){}
How is this written in visual basic?
View 3 Replies
Apr 14, 2010
iam trying to write information about customer from textboxes to a file.txt.when iam clicking save button, stream is opened, then i used method writeline(txtboxevalues)but no information are written to the txt file any help in that??
View 2 Replies
May 18, 2010
I have written a program and it seems to work fine when i am running it in the environment.When I create a program to distrubute to another computer it will not run.I thought it might be a problem with the other computer but I tried to install it on the same computer I designed it on and it will not run there either.When I run it a message box pops up saying "Application cannot be started. Contact to application vendor."[code]
View 5 Replies
Jan 2, 2010
I just want to know whether I can use "Reflector" to disassemble a Program written in DOS and go through all the Codes of that program to learn how that program was made? If the "Reflector" is not the one for DOS Program, could you recommend a Free Disassemler for DOS Program?
View 5 Replies
Dec 8, 2009
Trying to dissect a very badly written ASP.NET app. Can someone tell me what this assembly (ProAspCompLib.dll) is used for?
View 1 Replies
Oct 3, 2011
I'm using JdSoft's APNS-Sharp library in my ASP.NET web app. The library is written in C#, and makes extensive use of Delegate Functions and Events for threading purposes. My application is written in VB.NET, and I'm a little confused on about how to translate the following sample code' [code....]
View 3 Replies
Sep 10, 2011
I want to check at runtime if an assembly was probably written in VB. It doesn't have to be a bullet-proof method. Maybe call GetReferenced Assemblies() and check for an assembly that all VB projects reference?
View 2 Replies
Jul 23, 2010
I have a class (e.g. MksMath) written in IronPython using SharpDevelop 3.2. After compiling it for class library, it produced the following output:
IronPython.dll
IronPython.Modules.dll
Microsoft.Dynamic.dll
[code]....
View 2 Replies
Jun 9, 2011
I've got a C#.NET background and due to circumstances I'm trying to make a plugin written in VB.NET. I've created a new class project which gives me a DLL. This class implements a C# interface which all works.My only question is this... In my C# code I've got an implemented DLL (which loads at runtime) with the following declaration before the class...
[Plugin(PluginType.Storage)]
public class XmlPlugin<T> : IStoragePlugin<T>
{
[code]....
How do I write [Plugin(PluginType.Storage)] in VB syntax?
View 2 Replies
Jan 11, 2010
I have an OCX that I wrote in VB6.I added it to the vb.net toolbox and can drag the control onto a form and use it in code without any problems and it works just fine.But I can't see the control's design-time properties. In VB6 there's a small window on the right where I can set the properties of a control. In VB.Net I can see the standard properties such as Location, size, name etc but none of the control's own properties.
Do I need to register msstkprp.dll or a property page or something ?
Can I see design time properties of a vb6 ocx in the vb.net IDE ?
View 1 Replies
Jan 19, 2009
I'm trying to read a *.txt file and see if it has anything written on it. This is my
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Dim line As String = Nothing
[Code]....
But when i use it doesn't pop the MsgBox. What's wrong with it?
View 15 Replies
Jun 23, 2009
I am redesigning an application that I have previously written which accesses an SQL database, pulls records, creates an object hierarchy based on a bunch of custom classes that I created, and displays them in a TreeView control. When the user selects a node, a tabbed page displays the information about the object underlying the TreeNode selected.
I have since begun experimenting with Databinding to my Objects as I have recently redigned the objects to communicate directly with the datarow that each object is based on instead of storing the values in a private variable thus:
[Code]...
Allowing the databinding management objects to do the heavy lifting of getting the values, displaying them in the controls and writing new values as needed back to the objects (and thus the DataSet) i think is preferable. How can I accomplish this? I have added the Objects as datasources to the DataSources window, added the objects elements to the tabbed pages. How do I bind those controls to the item that is specified by selecting the TreeNode?
View 7 Replies
Dec 21, 2011
I want to check at runtime if an assembly was probably written in VB. It doesn't have to be a bullet-proof method. Maybe call GetReferencedAssemblies() and check for an assembly that all VB projects reference?
View 3 Replies
Feb 17, 2012
I have a function written in vb Public Function abc (ByVal x as Integer, ByVal y as String) As String
End Function
I want to call this function on click of a button in C# applcation.
View 2 Replies
May 31, 2012
I need to add quotes to a line that is being written to a vbs file WriteVBS("filesys.CopyFile " & OldNFile & "" & My.Computer.FileSystem.GetName(nfile) & "," & NotesFile & "," & "True")Old Nfile is a variable defined: Dim OldNFile As String = ("\" & OldPCTxtBx.Text & "" & NotesSource.Replace(":", "$"))NotesFiles is defined as
Dim NotesFile As String = (NotesTgt) & "" & My.Computer.FileSystem.GetName(nfile) I need to add quotes before and after the OldNfile Variable and the NotesFile variable I dont want to change the variable just the WriteVBS line not sure how to do it since intellisense does not suggest a better way
View 2 Replies
Jan 1, 2011
I have a question about the AddNewItem method. From what I understand, then this event occurs, the EndEdit() method is called and a new record is created IN MEMORY (or a buffer). The user fills in the form that is presented and when the Save button is pressed, the record in the buffer is actually added to the table.
In my application, a form is displayed and some of the forms databound text boxes have DEFAULT values (see the property for the textbox under the Data Bindings, Advanced and NULL VALUE). For example, I have a text box that holds a number and the NULL value is set to 0. When the form displays, the ZERO is in the text box. Assume the user NEVER enters the field or changes the ZERO to something else (which means the field is never validated).
Here is the problem. When the SAVE button is pressed, the ZERO that was the default value is NOT WRITTEN to the table. The field in the table is DBNULL. That is not the desired outcome. So - How can I check the fields in the BUFFER BEFORE they are written to the table?
View 1 Replies
Dec 22, 2011
I've set the XMLWriter to use the UTF8 encoding, but the WriteStartDocument method still writes a UTF16 tag. This is the part of the code:
[Code]...
View 1 Replies
Mar 21, 2011
I have a program written in VB 2005, the computer used to write the code was running in Windows XP and 32 bit Pentium D. Now, my boss want to buy a new computer to run the program, and he wants the one that comes with Windows 7, 64 bit. Can my program run in the new computer without any problem? Or, is there anything that I need to change for it to run there?
View 12 Replies
Dec 14, 2010
I am sending a POST request to an API server and I have reused code where I have successfully done this before on other servers and for some reason, which I cannot figure out why, it's not working. I get the error:
"Cannot close stream until all bytes are written."[code]...
View 2 Replies
Jul 28, 2011
I have made this program in which the user selects a number of directories and copies them all to an external drive. is there a way to detect when the user does something that involves writing data to the hard drive. When they do, I want my application to detect this and back up that file on the external drive as well so that the back up is always up to date.
[Code]...
View 2 Replies