How To Translate This Code From C In Basic

Oct 26, 2009

I have this code in c:

void Back()
for(i=1;i<=n;i++)
cin>>a[i]; 'display vector a[i] a[i] is a vector with 10elements
while(k>0) 'while k is greater than 0

[Code]...

View 4 Replies


ADVERTISEMENT

Translate Code From Vb6.0 To .net?

Oct 12, 2010

I have found the following code which can get the harddisk no in VB6.0.I would like to translate it into vb.net code.I have tried the auto upgrade function in vb2005 and translated the following code to vb.net, but the outcome did not run probably.Can anyone give me some help to translate the following VB6.0 code into vb.net code?

[Code]...

View 2 Replies

Translate The Following Code To VB

Mar 11, 2009

I need a hand with something i need to translate the following code to VB...

[Code]...

im having some difficutly with syntax etc.

View 5 Replies

Translate This C# Code In Vb?

Oct 10, 2010

public void Attach()
{
deviceHandle = capCreateCaptureWindow(string.Empty, WS_VISIBLE | WS_CHILD, 0, 0, (int)this.ActualWidth -150, (int)this.ActualHeight, new WindowInteropHelper(this).Handle, 0);
if (SendMessage(deviceHandle, WM_CAP_DRIVER_CONNECT, (IntPtr)0, (IntPtr)0).ToInt32() > 0)

[code]....

View 6 Replies

Translate Code Snippet From C#

Sep 29, 2011

I need to translate line 4 in the code snippet below into VB. For some reason I cannot get this done tonight. I am either too tired or having a brain drain.[code]

View 5 Replies

Translate To C#: One Line Of Code?

Nov 22, 2011

This link offers sample code to infer the schema of an XML file, in VB.NET. One particular line fails in my translation to C#, namely,

Dim schema As XmlSchema = schemaSet.Schemas()(0)
My translation is
XmlSchema schema = schemaSet.Schemas()[0];

[code].....

View 1 Replies

Translate Part Of A Code Using The Websites?

Dec 18, 2011

Ive been trying to translate part of a code using this websites : http:[url]...

But I could not make it work specially this part :

bw.DoWork += delegate(object sender2, DoWorkEventArgs e2)
{
lastImageUploadDetails = uploader.UploadImage(txtFilePath.Text, resizeWidth, resizeHeight);
};[code

View 2 Replies

.net - Translate This Code Into An Expression Tree?

Feb 12, 2010

I have a hashing method whose operations depend on input to the function. Profiling the program has shown that too much time is spent evaluating this hash method. I want to try changing it into an expression tree, so the inner loop checks can be done once.

Here is a simplified version of the function (I undid some obvious optimizations for the example, and took out any input validation):

Private Function Checksum(ByVal inputValues As IEnumerable(Of UInt32),
ByVal declarations As IEnumerable(Of String),
ByVal statements As IEnumerable(Of String)) As UInt32
Dim variables = New Dictionary(Of Char, UInt32)

[code]....

I want to create a function which takes the declarations and statements and outputs a specialized expression tree representing a function which takes an IEnumerable of UInt32 and returns a UInt32.Follow-Up:I succeeded, and the speed-up was ridiculous (an order of magnitude). The main things I had to learn where:Use Expression.Lambda and Expression.Compile to get a delegate you can actually use.The Expression.Block factory method has a 'variables' parameter you (essentially) use to declare locals.Expression.lambda has 'parameters'.If you call Expression.Parameter twice, you're dealing with two different variables (even if their name is the same)! Store the result for later usage. Same for labels, etc.The result of a BlockExpression is the last expression in the block.

View 1 Replies

Access Some PDF Properties - Translate Code To Vb

Jan 17, 2011

I am using VB 2010 and have the following code written in C that is used to access some PDF properties. translate this to VB?

[Code]....

View 3 Replies

Line Of C# Code And Can't Translate It Correctly?

Nov 12, 2010

I have a line of C# code and can't translate it correctly. 'myString' is a string and 'a' and 'k' are both UInt:a += (uint)(myString[k + 0] + (myString[k + 1] << 8) + (myString[k + 2] << 16) + (myString[k + 3] << 24)); Translators for VB suggest the following but I get "Operator '<<' is not defined for types 'Char' and 'Integer': a += CUInt(myString(k + 0) + (myString(k + 1) << 8) + (myString(k + 2) << 16) + (myString(k + 3) << 24))

View 4 Replies

Export Query To Excel (can't Translate VB6 Code To .NET)

Nov 1, 2009

I have this working on VB6 that saves a query in a excel sheet:

[Code]...

The XLSNombre is a variable with the name of the excel file that has been set before. The connection I have in .NET is to SQL server (but is the same). How can I use this code (or..how can I make this code work for .NET) or what is the equivalent of this for .NET? I found some solutions but with inserts of single rows or I have to set the title of the columns, I dont find any "simple" solution to do an "insert into" (like the code I use in VB6).

View 3 Replies

Translate Console Display Code To Windows Forms Control?

Feb 6, 2010

I came accross the code below in a book. I prefer displaying my data in Winforms instead of the Console which the boook uses but I have little understanding of console codes and how to convert them to Winforms.[code]....

View 14 Replies

Extracting Visual Basic Source Code From Visual Basic EXE?

Jan 24, 2011

How do you extract source code from a VB.NET .EXE file?

View 3 Replies

.net - Legacy Code Visual Basic To C#?

Jul 6, 2011

I'm building an c# app that is designed to replicate and enhance the functionality of an VB6 app developed many years ago. My problem is that one module in the old app does some realy complicated things and trying to replicate this starting from specs would be a big pain for me. Even if this sounds like the best idea.

My question is : is there a way i could keep the old VB module and integrate it into the c# app, so that i wouldn't have to rewrite everything ?

View 6 Replies

Basic Code To Create A XML File?

May 18, 2010

I am looking for some information about creating a XML file.

It seems that there are several ways to do that. And I am a little bit confused.

Please help me with

1) Creating/Saving a file

2) Namespaces which will be used

3) Reading/Processing a XML file

4) Creating a node, etc

5) Record data to a XML file

View 7 Replies

Basic Connetivity Code And Description ?

Jan 24, 2009

i need the basic connetivity code and description in vb .net

View 1 Replies

Cannot Develop Visual Basic Code?

Mar 26, 2009

Launch a Quadratic Equation Mathematics Machine.The machine is to take input from the user in respect tovalues for a, b and c

View 2 Replies

Cleaning Visual Basic Code?

Jan 6, 2012

however there is a portion in this code that can be simplified more (the if orelse statements). I know it has something to do with a collections class or an array, but I'm stumped on how to change it.

Function GetLastName(ByVal accountName As String) As String
Dim lastName As
Dim stringArray As Array = accountName.Split(" ")

[code].....

View 1 Replies

How To Hide Code In Visual BASIC

Jan 18, 2012

Say I want to distribute my Visual BASIC program, but I don't want people who download it to be able to look at the Visual BASIC code. How would

View 3 Replies

Loop Code In Visual Basic?

Aug 15, 2011

im making a friend adder for teenspot and this is what i have. basically you click a button and it adds the person selected on the list, then you have to click it again to add the next one. the thing is i need to know how to loops this so it just keeps moving down the list adding people automatically

[Code]...

ive tried multiple times with do...loop and for..next and all that kinda stuff, but i still havent figured it out. what it does is, it only runs through the add me pages and never clicks confirm which is the second part. im kinda new to vb

View 1 Replies

Replacing Legacy BASIC Code With VBA?

Sep 7, 2009

I have an old application in BASIC. It still runs under Windows ME. It no longer works under XP, so I was looking at recoding the applciation. I started coding it in VBA, which I have used for Excel macros for years.

We are looking at getting a new computer for kids to use for schoolwork, etc. I also want the kids to learn programming and recoding my old BASIC application is a good place to start. A new computer we were considering has MS Works, but I suspect I will need MS Office (at least Excel) to get VBA. There are multiple versions of Office 2007 (Home & School, Small Business, Pro), so I looked into the Microsoft website to see if I could find out what version of Office I need to get to have VBA. What I found is that VBA seems to be going away in favor of VSTA and VSTO.

Is VBA truely going away? Or is it still going to be a part of Excel for wrting macros? If VBA is part of Excel, is it available in all versions of Office? If VBA is going away, what is recommended for recoding my old BASIC application?

The application involves display of a screen full of data with color coding and has several actions for updating those data.It does not involve any graphics or animation. In the old BASIC application all the system data and runtime data are in program variables.

The actions to be performed are selected by number from menus.In creating the application in VBA, I envisioned primary data display on a main form, which would also have buttons to invoke dialog panels to perform the various updating actions.I have the system data that are not changed when the application is run in one Excel worksheet and the runtime data on another worksheet.

View 2 Replies

Code A Visual Basic IP Address Changer?

Aug 13, 2009

I have a Vista O.S., but I want my program to change the Ip address on mutiple O.S. with one click of a button or possibly on a timer to switch ip addresses every few minutes. How would I do this in VB 2008?

View 4 Replies

Compile To P-code In Visual Basic 2005

Jun 24, 2009

i had 13 years old and i need to know how to compile my programs to p-code in visual basic 2005.net,

View 2 Replies

Converting Javascript Code To Visual Basic?

May 4, 2009

I�ve tried a verity of different things but I can�t seem to find something that works so I thought I would Ask here, if This is the wrong place then Sorry If you could point me to the correct place the I would Post there. Now I have this JavaScript code that I want to get working in a VB.Net Client side application?

function send_request() {
if (window.XMLHttpRequest) { // Mozilla, Safari, ...
http_request = new XMLHttpRequest();

[code]....

View 1 Replies

Migrate A Source Code From BASIC To .NET 2010?

Oct 3, 2011

I am trying to migrate a source code from BASIC to VB.NET 2010

Dim obj(4096)
Dim strng As String

obj$ = string$ + ".obj" -> Error: Value of type 'String' cannot be converted to '1-dimensional array of Object'I can get away with this in VB6 but i can't in VB.NET.I can't convert obj using CStr either. ToString won't work because it work on the left side of an assignment.

View 3 Replies

Port Visual Basic .NET Code To Java?

Mar 2, 2012

Try
Dim sr As New IO.StreamReader(Mapfile & ".txt")
'Dim intValue As String = ""

[code].....

View 2 Replies

Run Visual Basic Project From Java Code?

Oct 20, 2009

some idea to how to run VB project using Java.

View 3 Replies

See The Registration Code Entered For Visual Basic?

Aug 12, 2010

I recently downloaded Visual Basic Web Developer, Visual C# 2010 Express, and Visual C++ 2010 Express asI intend to learn ASP.NET, C#, and C++ after I have learned more about VB.NET (wish me luck, haha.)I am creating a text file with all of my registration codes, but I did not keep my registration code for Visual Basic (neither in records norn email.) I have tried re-clicking the 'Register Product' button, but I just get a message saying that I havealready obtained a key. Is there someplace I can go within the program to view my code?

View 5 Replies

Use HTML Code In Visual Basic 2010?

Feb 22, 2012

<html>
< body>
< h1>My First Heading</h1>
< p>My first paragraph.</p>
< /body>
< /html>

if Possible to Use HTML Code like above in Visual Basic 2010 in WPF?

View 3 Replies

.net - Visual Basic Tools UML To Code Or Reverse Engineering?

Jan 9, 2012

I would like to either generate VB Code from UML or vice versa UML from Code. Does anyone know some UML tools for VB6 or VB.Net that can do this?Is it possible with Visual Studio 2010?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved