vb6

Dll with WebServices from .Net to vb6 - how to setup app.config

我怕爱的太早我们不能终老 提交于 2020-01-05 06:21:28
问题 I have a DLL that works with a webServices. I developed some projects with .NET that consume this DLL and work without problems. I also have some projects developed in VB6 and I need to consume this DLL, but when I call the method where the webservice is running, it shows me the following message. Could not find default endpoint element that references contract 'MYDLLNAME' in the service model client configuaration section. This might be because no configuaration file was found for your

Dll with WebServices from .Net to vb6 - how to setup app.config

匆匆过客 提交于 2020-01-05 06:19:44
问题 I have a DLL that works with a webServices. I developed some projects with .NET that consume this DLL and work without problems. I also have some projects developed in VB6 and I need to consume this DLL, but when I call the method where the webservice is running, it shows me the following message. Could not find default endpoint element that references contract 'MYDLLNAME' in the service model client configuaration section. This might be because no configuaration file was found for your

Dll with WebServices from .Net to vb6 - how to setup app.config

时光怂恿深爱的人放手 提交于 2020-01-05 06:19:41
问题 I have a DLL that works with a webServices. I developed some projects with .NET that consume this DLL and work without problems. I also have some projects developed in VB6 and I need to consume this DLL, but when I call the method where the webservice is running, it shows me the following message. Could not find default endpoint element that references contract 'MYDLLNAME' in the service model client configuaration section. This might be because no configuaration file was found for your

VB6 WINHTTP proxy freezez ui?

久未见 提交于 2020-01-05 03:06:31
问题 here is my code below , when i use it without proxy it runs smooth but when i start to use proxy the UI freezez for a bit , kindly tell me if their is something that can be done so it dont freeze and be able to do other stuff while its doing its thing. Function httpreq(url As String) As String Dim whr As New WinHttp.WinHttpRequest Set whr = CreateObject("WinHttp.WinHttpRequest.5.1") whr.Open "GET", url, False whr.SetProxy 2, List1.Text, "" whr.Send httpreq = whr.ResponseText RichTextBox1.Text

.net file random access recoard locking

独自空忆成欢 提交于 2020-01-05 01:35:11
问题 Summary: In .net When locking a record in a random access file we cannot access records ahead of the locked record in the file. To demonstrate the issue I have written two simple programs one opens and locks a record and the other tries to read through. The results are that when locking record number 9 out of the 10 in the first program we are able to read records 1 and 2 but no more! The expectation (And this is our experience with VB6) is that you should be able to read all the records

Error 440 in Visual Basic Application

删除回忆录丶 提交于 2020-01-04 17:01:55
问题 There is an old VB application running at one of my clients. An exception is throws in this peice of code: cn=GetIndexDatabaseConnectionString() sSql="SELECT * FROM Arh_Naroc WHERE StNarocila = '" & isci & "'" rs=CreateObject("ADODB.Recordset") Call rs.Open(sSql,cn) The exception happens in rs.Open() function. "Error number 440 occured." This are SBL scripts for KOFAX engine and it's many years old. The whole SW was transferred from old XP computer to Windows 7 and looks like there are

Conversion of VB6 HTTP request to VB.Net 2.0

落花浮王杯 提交于 2020-01-04 12:34:57
问题 I'm attempting to update a legacy VB6 component (not written by me) to the .NET platform. There is one function which posts an XML string to a URL: Function PostToUrl(ByRef psUrl, ByRef psData, Byref psResponseText, ByRef psErrorMsg, ByRef psUsername, ByRef psPassword) On Error Resume Next Dim objWinHTTP PostToUrl = False psErrorMsg = "" psResponseText = "" Dim m_lHTTPREQUEST_SETCREDENTIALS_FOR_SERVER m_lHTTPREQUEST_SETCREDENTIALS_FOR_SERVER =0 Set objWinHTTP = CreateObject("WinHttp

Conversion of VB6 HTTP request to VB.Net 2.0

牧云@^-^@ 提交于 2020-01-04 12:33:05
问题 I'm attempting to update a legacy VB6 component (not written by me) to the .NET platform. There is one function which posts an XML string to a URL: Function PostToUrl(ByRef psUrl, ByRef psData, Byref psResponseText, ByRef psErrorMsg, ByRef psUsername, ByRef psPassword) On Error Resume Next Dim objWinHTTP PostToUrl = False psErrorMsg = "" psResponseText = "" Dim m_lHTTPREQUEST_SETCREDENTIALS_FOR_SERVER m_lHTTPREQUEST_SETCREDENTIALS_FOR_SERVER =0 Set objWinHTTP = CreateObject("WinHttp

Properties in VB

风格不统一 提交于 2020-01-04 08:23:08
问题 Below is the snippet written in a VB .cls file : Public Property Get Request() As String Request = m_sRequest End Property Public Property Let Request(sData As String) m_sRequest = sData ParseRequest sData End Property In another class the line below is used: Public Sub LogError(Request As RequestParameters, ByVal sData As String, ibErr As CibErr) Dim sErrorLog as string sErrorLog = Request("MonitorPath") & "\Log\Debug\Errors" If Dir(sErrorLog, vbDirectory) = "" Then MkDir sErrorLog End If .

Issue with compiling a program into an EXE, VB 6

蹲街弑〆低调 提交于 2020-01-04 07:37:09
问题 I have recently edited a fellow student's data collection software to my specifications. The program works fine when I run within Visual Basic 6, however ideally I would like to compile the program into an .exe file so I can run it from any PC. However, when I select the option to turn it into an exe, I get the following error while its compiling: Compile Error: Sub or Function not defined. I was curious why my program will run from within Visual Basic, but can't compile into an exe. Any