.net - VB Flamed For Being Easy And Yet Python Is Not?

Sep 19, 2010

I have always wondered about this and seen this among lots of programmers. Why is a VB programmer or VB code easily dismissed as too noobish and easy while the same does not apply to Python or Python code? After all, isn't Python as easy as VB is? And it does provide drag-n-drop GUI application building also. So why is it that VB is flamed and yet Python is not?

View 1 Replies


ADVERTISEMENT

Calling Dll In Python?

Sep 1, 2009

I have a function in vb that is converted to a dll that I want to use in python. However trying to use it, I get an error message this is the VB function

Function DISPLAYNAME(Name)
MsgBox ("Hello " & Name & "!")
End Function

and this is how I call it in python

from ctypes import *
test = windll.TestDLL
print test
print test.DISPLAYNAME("one")

But I get errors so what is the right way of calling the dll

Traceback (most recent call last):
File "C:Test estdll.py", line 4, in <module>
print test.DISPLAYNAME("one")

[code].....

I have been looking around online but no solution so far. Can't use cdll since this is for c progs.

View 3 Replies

Translation PYTHON To .NET?

May 15, 2009

I am coding an application in VB.NET that sends sms.Would you please post PYTHON->VB.NET translation of this code and/or guidelines?

[Code]...

View 2 Replies

Use Python Module In .net?

Feb 16, 2011

I want to use the python module imaplib, email in vb.net to read the gmail email with attachments. How can i use the python module in vb.net?

View 2 Replies

Convert Codes To Python ?

Jun 16, 2011

I'm wondering if i can convert vb.net codes to python ?

I have this code"

[code]..............

i guess it's like:

[code].....................

so there any converter ? it would be so nice because i got source code for program in vb.net and as you know it's work on only Windows and i want to make it work in Linux so i need Vb to python converter ..

View 1 Replies

Multiline Strings Like Python

Apr 1, 2009

Is there a way to have multiline strings in VB.NET like python

[Code]...

View 12 Replies

Possible To Access APIs In Python

Mar 17, 2011

To programming in Python, I was wondering if there is a way to access VB .net APIs using Python.

View 1 Replies

Python Use In VB .Net As Compared To Excel?

May 1, 2012

I have an interesting issue I've run into where I can easily tap into python code from VB in an excel instance, as described here: Calling python script from excel/vba.However, when I mimic the exact same code structure in visual studio in a form, the pyscript.language = "python" line fails. Does anyone know if MSScriptControl.ScriptControl can be used in VB .Net to control python like you can in excel? This would be a lot easier than setting up a com object for my python scripts.

Example code (need to add microsoft script control 1.0 and excel object library):

[code]...

View 1 Replies

Converting Python Regex To VisualBasic?

Jun 7, 2011

I'm converting a python application to VB.net

a = 'abcdef'
b = re.compile('[' + a + ']{3,}$', re.I)

Is it possible to convert it to Visual Basic, if so, can you provide any code?

View 1 Replies

Create A Matrix Through An Iteration In Python?

Jul 18, 2011

I want to create a (3n*7) Matrix in python through Iteration, I did this in VB.Net and it worked but it gives me some challenge in Python as this a new language to me. n can be the number of Iterations to build up the matrix, i.e. ; if u iterated 3 times, the matrix will be a 9*7 matrix. Here is how I did it in VB.Net. :

[Code].....

View 3 Replies

How To Set Option Button Values Via Python

Feb 24, 2011

I'm writing a python plugin for a geo referencing program called QGIS where I want an Excel sheet to do all my calculations for me. For different data points I need to set certain input values into the spreadsheet (which was already written by someone else). I'm fine setting the int values (using win32com.client) with
sheet.Cells(row, col).Value = value

For radio buttons I would expect it to work like so:
sheet.opt_name.Value = True

But I get the error message:
AttributeError: '<win32com.gen_py.Microsoft Excel 12.0 Object Library._Worksheet instance at 0x232878608>' object has no attribute 'opt_name'
What are the options attributes of? How do I set their values?

View 1 Replies

Python - Dynamically Import Classes In VB?

May 3, 2012

I'm working on a school project which need to be done in Visual Basic. For this I'm porting one of my Python project in this programming language, project which (in Python) is scanning a directory for .py files and then imports them (dynamically) with the __import__ statement, at runtime. It is possible to do this in Visual Basic with .DLL classes?

View 1 Replies

Python - VB Developer Wants To Write Linux App?

Apr 17, 2012

I am trying to choose a language, IDE and other tools in order to develop a photo gallery application for a Linux platform. Specifically the Raspberry Pi My background is almost exclusively using Visual basic since the early 90's and most recently VB.NET in VS2008

View 1 Replies

Python Conversion Http Request

Jul 28, 2011

I have gotten this code in python - been going in circles trying to figure out the vb.net equivalent. Will pay somebody for the conversion also.

[Code]...

View 1 Replies

Python To VB: Unknown Data Types

Mar 3, 2010

I never thought I'd say this, but I am getting pissed at how easy it is to just plop down a variable in python without any declaration. I have an existing python script which interfaces with a server, and it builds its own messages to be communicated via sockets. What I am trying to do is take the command line python script and convert it into a VB GUI app that is more user friendly.

[Code]...

View 11 Replies

Run A Python Script Inside A Application

Apr 17, 2011

I am trying to run a python script inside a vb.net application, which means executing the code inside vb.net instead of runing it external. The problem is:

I am using MsScriptControl and set the language to "python", I tried to run it and get the error "A script engine for the specified language can not be created". My research has told me i need these keys in my registry. The problem is I cant find them so how to I make them. Or even better a full solution to my problem.

View 2 Replies

VS 2008 Include A Python / Php Library

May 25, 2010

Is is possible to include a python library, which does API authentication, in a VB.NET app? If so how would I do this? The site that provided this does not provide much documentation on this; I am attempting to create an application that accesses the google API, and this library has been created to do the authentication for you.

View 1 Replies

Why Not Develop VB Into A Dynamic Language Like Python

Nov 7, 2011

.net 4.0 can support dynamic now.So I think why not develop VB in to a dynamic language based on VB6 syntax.

View 4 Replies

UI-threading An Easy Way To Fix It?

Jan 23, 2012

I am communicating with a USB-HID device. It will successfully complete hundreds of send-receive requests but occasionally get a Null Exception error.

[Code]...

at the rxData.dataPacket(i) = element I will get a NullReference error every now and then. I could enclose it in a try/catch statement, but I'd like to fix the root problem if possible.This device is communicating to microcontrollers, and it is possible that they won't always give a value... but my feeling is this is some sort of UI threading issue. When debugging, even though there is a null exception, many times there actually does seem to be data in dataReceived.data.ToList(). Is there an easy way to place the whole data processing routine on a thread separate from the UI?Edit: Changed code to match answer and give more info on where it is used. Still get NullReferenceExceptions after about 1,000 completed send/receive requests to the HID device.

View 2 Replies

Connect A VB Frontend With A Python Backend Using Sockets?

Oct 26, 2009

I have some really nice Python code to do what I need to do.I don't particularly like any of the Python GUI choices though. wxPython is nice, but for what I need, the speed on resizing,refreshing and dynamically adding controls just isn't there. I would like to create the GUI in VB.NET.I imagine I could use IronPython to link the two,but that creates a dependency on a rather large third-party product. I was perusing the MSDN documentation on Windows IPC and got the idea to use sockets. I copied the Python echo server code from the Python documentation and in under 5 minutes was able to create a client in VB.NET without even reading the System.Net.Sockets documentation, so this certainly doesn't seem too hard.

View 2 Replies

Consume A Python Web Service In Webservice Project?

Sep 24, 2010

I'm trying to consume a python web service in my webservice project.how to do that?

View 1 Replies

Converting Socket Connection From Python To VB 2010?

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

Trying To Get UInt64 Into A Base32 String / Works In Python

Mar 1, 2012

[code]I suspect the reason the results are different is because vb.net returns a double when you call ^ and I should be "shifting" it but can't seem to work out the syntax (or find it)

View 1 Replies

An 'easy' Way To Capture Video?

Apr 15, 2012

I've been trying to play with DirectShow but it's getting on top of me and my question on here didn't answered so I'm thinking maybe I should go with a different approach. (DirectShow VB.net can't change recording format). <- Where as that 'works' I can't get it in the format I want it, and I don't really understand it so I'd obviousl like to go down the route of something I can get my head around.

I've googled till my fingers are raw trying to come up with an easy way to record video in my vb.net application, it doesn't have to be fancy, just a preview with a start record, stop record button, that's it.

View 2 Replies

Best And Easy Resources Material?

Feb 14, 2010

iam very keen to learn vb.net 2008 so please suggest me how to access world most and best free of cost reading material available on net for reference.and free best book available for vb.net 2008 on the net. there is any complete source code available for consideration.

View 2 Replies

Easy Way To Iterate Through Objects?

Jun 25, 2009

Lets say I have 30 text fields in a Frame on my form, and I want to set them all to disable (so users can't edit them).Is there an easy way to walk through those fields without having to create an array of text fields?

I.E., in ... VB 6, with an array of text fields, I can do something like this:
For i = 0 to 10
txtfield(x).enabled = true.
Next i

Is there something in VB.NET where I won't have to use an array of controls, something like this (assuming all txt fields are in a frame):

[Code]...

View 6 Replies

Easy Way To Run Procedure In Background?

Sep 27, 2011

I'm running stored procedure from asp.net front-end but it's quite long. What is the easy way on running that thing in the background? I mean if I close the browser, I still want my stored procedure to complete not just die. Also, I would like to perform other actions on the front-end while my procedure is running.

View 3 Replies

Finding Way For Easy Encryption?

May 22, 2009

Is there an easy way to encrypt things? Here is some code I got:

[code]...

View 9 Replies

Why Isn't There An Easy Way To Display Date

Nov 17, 2010

I have 2 datetime components in my application. [code] How do I do it? How do I get it so my 2 datetime controls display the current 24 hour time?

View 14 Replies

Calling PythonFunction's From A VB Application Hosting Iron Python

Apr 17, 2012

I'm a C++ programming who was tapped to write a small application in Visual Basic. The application hosts an IronPython runtime and I am attempting to define some function in python and then call them from VB. I have written a simple test function in python

def test():
print "Test was Called"

Then I use the iron python to create a ScriptSource from the python file. I am able to look up the "test" variable through object operations but I can not figure out how to call the object that. For example (in VB):

pyScope = engine.CreateScope()
pySource = engine.CreateSourceFromFile("C:SomeFilepath est.py")
pySource.Execute(pyScope)

[Code]....

I am able to call the function and I see the expected output at stdout. I am still under the impression that there is some function-pointer-like type that I can cast objects of type PythonFunction to which will let me invoke temp directly without calling to the Python engine.

View 2 Replies







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