Can Not Call ToQueryable()
Aug 1, 2010I'm new in LINQ. According to some documentation I've tried following [code]...
View 8 RepliesI'm new in LINQ. According to some documentation I've tried following [code]...
View 8 RepliesI have imported:
Imports System.Xml.Linq
Imports System.Data.SqlClient
Imports System.Data.DataTableExtensions
[code].....
I connected to the Informix server using RazorSQL, created a stored procedure and tested it, getting the expected answer, so the procedure exists in the database in some form.
I then run the following code:
If ConnectToInformix() Then
Dim cmd As New IfxCommand("dc_routeHasOutstandingQuantity", conn)
cmd.CommandType = CommandType.StoredProcedure
[Code]....
This error does not occur when calling the stored procedure from a live SQL connection.
I want to create an ExpressionTree where a Func(of Vector, Vector, Vector, Vector, Double, Double, Vektor) should be called. So I use
Expression.Call(Forces(0).Function.Method, {Vec1, Vec2, Vec3, Vec4, Double1, Double2})(Vec1-4, Double1-2 are declared as ParameterExpression and Forces(0).Function as Func(of Vector, Vector, Vector, Vector, Double, Double, Vector). But I get an AgrumentException, because Forces(0).Function.Method has seven Arguments. (System.Runtime.CompilerServices.Closure as seventh argument at Index 0).
I am trying to convert a DLL function call which has the Callback function routine called within the DLL function call.The DLL function call signature is like this:
typedef void *HANDLE;
typedef HANDLE HACQDESC;
DECLARE_HANDLE (HWND);
[code]....
how to convert this DLL call to VB.NET and also how to create the callback function and send it as parameter to this function
call.
I have a VB .NET 2010 application. I added a C# project to my solution. I tried to call the form called 'main'. However, I could not figure out a way to do that. What is the best way to do that? I Goggled, and did not find anything. Actually I noticed that my Developer converted everything to VB .NET.
View 5 RepliesDLLs in .net are treated differently than in C++ and other programming languages.When you create a class library project in VS (for either VB or C#) you are creating a DLL. In order to call/use that DLL in another project you have to add a reference to your new program.Go to Project > Add Reference..., or right-click on the project that needs to use your DLL, and click "Add Reference...".
After a short wait you should see an Add Reference dialog box.There are several tabs across the top but each of the components that is listed in a tab represents a DLL. If you expand the "Path" column in the .Net tab you will see the DLL location.If your two projects are in the same solution, you should probably go to the Projects tab and add the project that you need.If your dll project is NOT in the same solution as your project that needs to use the dll, then go to the Browse tab and find your compiled DLL from your DLL project. This will add the DLL as a reference to your solution.
Okay, this is my first newbie question so I'm sorry for this newbie question.I've look at Toolbox and I just can't find whatever this called.I don't even know what the name of it too so if anyone know what this called,
View 3 RepliesOK, I'm still trying to read EXIF information, and have found a DLL I want to try to do this - [URL] I've added the DLL to my project, but how do I actually include it and then us it. The example code I assume is C or something?
[Code]...
How to call a dll in vb.net?
View 3 RepliesHow can i call a sub from another sub? I tried Call MyButton_Click but it didn't work.
View 1 RepliesI creat one WEB project, this project contain tow WEB FORM, In the first Web Form Design i have tow TextBox for Entring the date(All dataTable between this tow dates) and one Button, I want that when i press to to this Button it will load the second WEB FORM and show all the Data Table in DataGrid In this WEB FORM, So i need To call this tow TextBox value from the first WEB FORM to the second WEB FORM In Load_Page i will use this tow value in select statment. So i want to know how to call this to value from the first WEB FORM. I'am using VB.NET WEB APPLICATION.i have allrady DB in SQL .
View 4 RepliesI am trying to call a php function from .net. I tried to a webrequest method but I am not sure how to specify the function to call in the url. A link below shows the method I am trying to call.[URL]..
View 2 RepliesI have a Visual Studio solution, containing .cs and .vb projects, as well as .aspx files. As usual, the .aspx files implement an ASP.NET site and make calls to the .cs and .vb projects.
Is it possible to do the reverse... i.e. make a call from a .cs or .vb file to a method in a .aspx file? (Assume for the purpose of this question that there is a good reason for doing this)
Which is the best way to call remote dll? Where can i find examples for this?
View 1 RepliesHow do I call/use a VB6 dll in VB.NET application? Welcome to the All-In-One Code Framework! If you have any feedback
View 1 RepliesI have created a new Class Library in visual basic and called it 'TestDLL'. I have a TestDLL.vb file where I put in this code
Class TestDLL
Function ReturnHello() As String
Return "Hello"
End Function
End Class
Then I clicked on the build tab and built the solution. I then copied the DLL 'TestDLL.dll' to C:TestDLL.dll
I am trying to use that DLL in a console application. I have tried this code but I get an error: System.EntryPointNotFoundException was unhandled Message=Unable to find an entry point named 'ReturnHello' in DLL 'C:TestDLL.dll'.
Declare Function ReturnHello Lib "C:TestDLL.dll" () As String I have added TestDLL.dll to the references for the console application and got that to work, however my goal is to load and unload different .dll files without restarting the application. I have a lot more code besides this, but I'm just trying to find out what commands I could use for just calling functions from DLL files.
There was something I was reading about assemblies, but all I get that to do is list the classes in my dll file. I will already know all the names and locations of the .dll files, and also the class and functions that they contain, because I will be building all of them. how I can get a simple function return in my console application.
I actually have a menstrip with sub-menu ... File > Service >>> Products
My aim is to add a uri to products so that when on click on product the particular web service will be invoked.
My question is only How Can I add a URI with Products on click ?
I'm making a button via images, which changes appearance as the user uses the mouse. For example, when the user clicks on the button, the image changes into the button being "pushed in." My problem is that when the user presses the button and releases the mouse I want it to go back to the image when the user is just hovering over the button. This only happens if the cursor is move off the button and then moved back onto it. I'm trying to call the event/sub where the mousehover event is used in order to get it to change back to the desired image. How do I call this event and/or sub in order for it to work?
View 2 RepliesI have an extension method written in visual basic as follows:
Imports System.Runtime.CompilerServices
Namespace Parsing
...
Public Module CSVParse
[code]....
Unfortunately the compiler is giving a 'Cannot resolve symbol' error for 'DoVB()' and highlighting it red.Yet it will recognise the call in a static fashion.
CSVParse.DoVB(test);
I'm wanting to program a few buttons to run programs. The only issue is that they are in different directories.
Directory Structure:
+Program Files
- Test 1
- Test 2
- Test 3
- MyApplication
The Program Files folder is located on a Flash Drive which will have a different drive letter per computer. How can I code this?
How do I reach the bit.ly API with VB.net 2010”is it even possible? How?
View 2 RepliesI have a C# API for interacting with a DB that i have set up. I need to return data to users in excel via hitting this API which calls a sproc on the DB.The problem i am having is in returning the data from the c# method, i'd like to return a datatable object, but maybe this isnt possible. I have the .Net class registered and i can see that it is called from the module in excel, it works if the return type is an int or string, but what do i have to do to be able to have the method return a datatable and be able to output its data to a sheet?[code]...
View 4 RepliesDoes anyone know of an example where I can call a DLL from the .NET Installer?
View 1 RepliesI have a DLL that was used by Delphi and now I need to call it from VB.NET 2008. The documentations for the function is[code]...
I supply a RS232 port in the COMM_INFO structure and the function is supposed to return a result of type IFL_RC and a ConnectionID. [code]...
I'm trying to have a login screen (in vb) call a password change screen also written in vb. It's to force people logging in with the default password to change there password.
View 2 Repliesi run code to populate datatables etc based on the date selected in the month calendar.I want to refresh my data after saving. so how can I call the MonthCalendar1_DateSelectedevent with the correct arguments from my save button.
View 2 RepliesI wanted to call another form, but i am getting an error.[code]...
In MainForm, I want to call and open Form1 but i get this message when i try to do this [code]...
I'm trying to call other EXE's from my program I'm writing. Inside my project I have a folder called progs with exe's inside it. How can I call these from button clicks?
View 10 RepliesI have a C++ application exe that uses a C++ dll. For some reasons, I want to replace the C++ dll with a VB.NET dll.
The dll is not and ActiveX and is therefore not registered.
I cannot use a class but a module since the C++ application does not expect any class in the dll. In all my attempts, I could not have the inner functions of the VB.NET to be called by the C++ exe.