Could somebody please assist me in converting the following C#.Net code to
VB.Net code?
[DllImport("odbc32.dll")]
private static extern short SQLAllocHandle(short hType, IntPtr inputHandle,
out IntPtr outputHandle);
[DllImport("odbc32.dll")]
private static extern short SQLSetEnvAttr(IntPtr henv, int attribute, IntPtr
valuePtr, int strLength);
[DllImport("odbc32.dll")]
private static extern short SQLFreeHandle(short hType, IntPtr handle);
[DllImport("odbc32.dll",CharSet=CharSet.Ansi)]
private static extern short SQLBrowseConnect(IntPtr hconn, StringBuilder
inString, short inStringLength, StringBuilder outString, short
outStringLength,out short outLengthNeeded);
Thanks,
Rob Panosh 5 3836
Hi Rob,
When you look at this yesterday revised page, I think that you can do it
yourself http://www.harding.edu/USER/fmccown/...omparison.html
Cor Could somebody please assist me in converting the following C#.Net code to VB.Net code?
[DllImport("odbc32.dll")] private static extern short SQLAllocHandle(short hType, IntPtr
inputHandle, out IntPtr outputHandle); [DllImport("odbc32.dll")] private static extern short SQLSetEnvAttr(IntPtr henv, int attribute,
IntPtr valuePtr, int strLength); [DllImport("odbc32.dll")] private static extern short SQLFreeHandle(short hType, IntPtr handle); [DllImport("odbc32.dll",CharSet=CharSet.Ansi)] private static extern short SQLBrowseConnect(IntPtr hconn, StringBuilder inString, short inStringLength, StringBuilder outString, short outStringLength,out short outLengthNeeded);
Cor,
Thanks I will take a look.
Rob
"Cor" <no*@non.com> wrote in message
news:ev**************@TK2MSFTNGP09.phx.gbl... Hi Rob,
When you look at this yesterday revised page, I think that you can do it yourself
http://www.harding.edu/USER/fmccown/...omparison.html
Cor
Could somebody please assist me in converting the following C#.Net code
to VB.Net code?
[DllImport("odbc32.dll")] private static extern short SQLAllocHandle(short hType, IntPtr inputHandle, out IntPtr outputHandle); [DllImport("odbc32.dll")] private static extern short SQLSetEnvAttr(IntPtr henv, int attribute, IntPtr valuePtr, int strLength); [DllImport("odbc32.dll")] private static extern short SQLFreeHandle(short hType, IntPtr handle); [DllImport("odbc32.dll",CharSet=CharSet.Ansi)] private static extern short SQLBrowseConnect(IntPtr hconn, StringBuilder inString, short inStringLength, StringBuilder outString, short outStringLength,out short outLengthNeeded);
Cor,
Can't find the VB equiv for C# ... IntPtr inputHandle
Any Ideas?
Rob
"Cor" <no*@non.com> wrote in message
news:ev**************@TK2MSFTNGP09.phx.gbl... Hi Rob,
When you look at this yesterday revised page, I think that you can do it yourself
http://www.harding.edu/USER/fmccown/...omparison.html
Cor
Could somebody please assist me in converting the following C#.Net code
to VB.Net code?
[DllImport("odbc32.dll")] private static extern short SQLAllocHandle(short hType, IntPtr inputHandle, out IntPtr outputHandle); [DllImport("odbc32.dll")] private static extern short SQLSetEnvAttr(IntPtr henv, int attribute, IntPtr valuePtr, int strLength); [DllImport("odbc32.dll")] private static extern short SQLFreeHandle(short hType, IntPtr handle); [DllImport("odbc32.dll",CharSet=CharSet.Ansi)] private static extern short SQLBrowseConnect(IntPtr hconn, StringBuilder inString, short inStringLength, StringBuilder outString, short outStringLength,out short outLengthNeeded);
Rob,
IntPtr is System.IntPtr, you use it the same way in VB.NET that you do in
C#. http://msdn.microsoft.com/library/de...ClassTopic.asp
It is the correct type to use here.
Hope this helps
Jay
"Rob Panosh" <ro************************@asdsoftadfdware.com> wrote in
message news:%2****************@TK2MSFTNGP12.phx.gbl... Cor,
Can't find the VB equiv for C# ... IntPtr inputHandle
Any Ideas?
Rob
"Cor" <no*@non.com> wrote in message news:ev**************@TK2MSFTNGP09.phx.gbl... Hi Rob,
When you look at this yesterday revised page, I think that you can do it yourself
http://www.harding.edu/USER/fmccown/...omparison.html
Cor
Could somebody please assist me in converting the following C#.Net
code to VB.Net code?
[DllImport("odbc32.dll")] private static extern short SQLAllocHandle(short hType, IntPtr inputHandle, out IntPtr outputHandle); [DllImport("odbc32.dll")] private static extern short SQLSetEnvAttr(IntPtr henv, int attribute, IntPtr valuePtr, int strLength); [DllImport("odbc32.dll")] private static extern short SQLFreeHandle(short hType, IntPtr handle); [DllImport("odbc32.dll",CharSet=CharSet.Ansi)] private static extern short SQLBrowseConnect(IntPtr hconn,
StringBuilder inString, short inStringLength, StringBuilder outString, short outStringLength,out short outLengthNeeded);
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Rex_chaos |
last post by:
Hi all,
I have a question about datatype converting. Consider the following
types
std::complex<double>
and
struct MyComplex
{
double re, im;
}
|
by: jipster |
last post by:
hi, i need help converting this java program to C++...are there any
programs or nething that could be used to do this faster??
class hw2 {
static public void main (String args) {
hw2.test();}...
|
by: Colin J. Williams |
last post by:
Python advertises some basic service:
C:\Python24>python
Python 2.4.1 (#65, Mar 30 2005, 09:13:57) on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
With...
|
by: alyssa |
last post by:
Hi guys,
May i know how to declare a string of binary data and pass it to the method?
For example, int a={10010001120420052314}
is it correct?
and if i have receive the binary data, may i know...
|
by: Clark Stevens |
last post by:
I have a program that I'm converting from VB6 to VB.NET. It reads in a text
file containing barcode numbers and their corresponding descriptions. Then
the user enters the barcode number and the...
|
by: robert d via AccessMonster.com |
last post by:
I'm looking at converting DAO to ADO in my app. All of my DAO connections
are of the following structure:
Dim wsName As DAO.Workspace
Dim dbName As DAO.Database
Dim rsName As DAO.Recordset
...
|
by: Paraic Gallagher |
last post by:
Hi,
This is my first post to the list, I hope somebody can help me with this
problem. Apologies if it has been posted before but I have been internet
searching to no avail.
What I am trying...
|
by: manmit.walia |
last post by:
Hello All,
I have tried multiple online tools to convert an VB6 (bas) file to
VB.NET file and no luck. I was hoping that someone could help me covert
this. I am new to the .NET world and still...
|
by: anukagni |
last post by:
Hi,
iam having an database for that i have created an user manual includes help topics ..I prepared in the word format and i want to covert this to html help .
Iam having Ms Html workshop but i...
|
by: minterman |
last post by:
1. the program needs to convert btu to jules
2. Convert calories to joules
3. Convert joules to joules
4 exit the program.
if the user type anything other than 1-4 the program should print a...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |