VS 2008 .net Version Of LenB, MidB, Strptr?
Oct 21, 2011Im comverting a vb6 project to vb.net. i need Vb.net version of LenB, MidB, Strptr functions.
View 12 RepliesIm comverting a vb6 project to vb.net. i need Vb.net version of LenB, MidB, Strptr functions.
View 12 RepliesHow they relate and differ from each? What are the best practices for version control? Is there a primer about publish online? Or a good book?
And is it possible to make ClickOnce and a msi in one solution of VS 2008? If so, is there any conflict or pitfall?
BTW I am using VB if that makes any difference.
What is LenB? What does it mean? I have recently converted a project form vb6 to vb.net and it is riddled with this error 'Name LenB is not declared'.[code]...
View 13 RepliesI have this bit of code that is being converted from vb6 to vb.net. I need to know what LenB is doing in this bit of code.
Dim singleValue As Single 'var for conversion use(4byte -> 1single)'
Dim bytes() As Byte
Dim valueB() As Byte 'this gets set elsewhere and is redim-d to its size'
[code]....
Am I right in thinking that bytes is always ReDim'ed to the same size? By the looks of it 4 elements.Why then use LenB to ReDim if you could just use a number? And why ReDim in the loop at all?
[code] in my vb.net code how to use strptr()
View 1 RepliesI have created a license system for my application with MySql about half a year ago. What it would do is take the serial number and send it to my server if the key was correct it would return a 0 if its wrong the return value would be a 1.The problem was that when the serial number was entered correctly my program would create a "fake file" for example vb.dll in the system.And on run time my program would check for that vb.dll if the file exist it would skip my trial program and run the app as a full version. Half year later i think creating a "fake file" and checking for it on start up is extremely wrong and that's not very good security.How can i check the difference between a full version and unregistered version?
View 23 RepliesDim Result as String Result = StrPtr("MyString")
how to use function StrPtr in vb.net 2003
I am trying to convert a method from VB6 to VB.NET and having some issues with StrPtr and VarPtr not being supported in VB.NET anymore. Here is the method having a problem. From what I know, I am looking to get the memory location of the objects to pass to the SendMessageCDS() method.
[Code]....
This code no longer works in ver 2007:' Obtain max resources available for Excel
[Code]...
Is there any way to make my programs use a lower version of net.framework other than the newest version 4 that comes with VS2010?I use my programs within a closed network and there isn't an easy way for me to install any software since I'm not the administrator.
View 3 RepliesI'm trying to add functionality to my application that will disable buttons and checkboxes depending on what version the OS is when the app is launched. I made a test app to test this but unfortunately I can not get it to work. Here is my code:
'OS Check
Dim osValue As Object
osValue =
My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrent Version", "CurrentVersion", "5.2")
[Code]...
*Note - 5.2 is Windows 2003, 6.0 is Vista, 5.1 is Windows XP
I have a XML file with the latest application version number, I have this loaded into a variable, how can i compare this against the application.info.version to see if it's the latest version??
View 3 RepliesI want my application to do something special :D.. jks
I just want it to compare assembly version to the file version something like this (btw i also want it if it is the same i want it to enable a button):
Private Sub StartSplash_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
If Assembly Version = File Version Then
[Code].....
so how do i detect Assembly & File version numbers?
I would like my program to overwrite its previous version such that users don't have to uninstall the previous version before installing the new one.
I'm guessing it has something to do with setting Publish Version (Major, Minor, Build, Revision), Assembly Version or File Version.
I hope this is the right place to ask, because I can't seem to find an appropriate forum. The newgroups were so better organized and topic specific.I am running VS 2008 Pro SP1 on Windows 7 32-bit SP1. I am trying to get a simple VB Forms app to compile in Release mode rather than Debug. On Windows XP that worked fine for me. Now when I go into the Project Properties and set compile options to "Release" and click Save, when I close the properties page and re-open it reverts to Debug mode.
View 3 RepliesHow to create log in code in vb.net 2008 and also link with database. that database using sql server
View 2 RepliesI want to get the major, minor, build and revision version numbers of an EXE, not my vb project.If I do:
FileVersionInfo.GetVersionInfo(sEXEFilePath).FileVersion
I get 11.00.00003
It seems to have combined the build and revision numbers into one. In the good old days,
[code]...
i developed a program using vs 2008 and works well. now i want to distribute to my friends for that which version of .net framework i have to give along with this?
View 2 RepliesIs it possible to downgrade vb version from vb 2010 to vb 2008??
Have a Nice Day
I am trying to develop an app that uses a .dll that was developed for 32 bit systems. I get no error in VB or the compile.
Under Debug section of Properties the Platform Drropdown only says "Active(Any CPU)" How do I add x86 to this dropdown?
I need to detect if any version of the .NET framework is installed as we are deploying a .NET 2.0 app via logon script (ie XCOPY deployment) to all PCs in our network. The .NET app will be set to start when a user logs in, so we need to determine if .NET 2.0 (or higher) is installed before we deploy the app otherwise the user will get an error each time they log in. Is there any sure fire way to detect .NET via vbscript or batch file? All of the results I have found on google don't seem to be that reliable.
I have recently written a program that detects installed programs in the same way that Add/Remove Programs does but the problem with this is that even Add/Remove Programs does not seem to show the .NET framework on all PCs that have got it installed (like my home PC for example, definitely has .NET 3.5 installed but its not in the Add/Remove Programs list).
I'm writing a code that will check if .net framework 3.5 SP1 is installed before installing the program.The command I found googling around was System.Runtime.InteropServices.Runtime Environment.GetSystemVersion..I wasn't able to verify the correct .net framework version using this command.I'm currently running 3.5 SP1 and this command is showing v2.0.Is there another way to get the correct .net framework version?
View 2 RepliesI want to display my app version on the login form. using this
Me.Text = "Version - " & _
System.Reflection.Assembly.GetExecutingAssembly().GetName.Version.ToString
I am always getting 1.0.0.0. But, my publish version is currently 1.0.0.8.
this listview gridlines issue hasn't been addressed in vb.net. nothing but faint lines are drawn as grid even when you the property as true... have searched around but couldn't find any...
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" _
(ByVal hwnd As Long, _
ByVal Msg As Long, _
ByVal wParam As Long, _
[code]....
How could I make an Admin version to where my private airline's admin could could login and make new flights and change the color of the seats so that they are one color for taken and another for available.
View 16 RepliesIs it possible to reduce the version of .net framework of my application. For example: Host using my application have .NET 2.0 I make changes in my app so that it always run as .NET 2.0 not the latest .NET 3.5
Or another idea i have is to deploy .NET 3.5 in installation package i.e. if he runs my app and it detects .NET version and if its not .NET 3.5 then .NET 3.5 installer should open else my app should run.
(1) how to know which version of .net framework i am using for my application
(2) is it possible to force my application to use .net frame work of any specific version only
How can i add the stdole version 7 in client computer for .net 2008 ?
View 2 RepliesI've decided to go with a Windows Installer (Setup Project) in VS Prof, rather than ClickOnce,I've added this project to my main project, and have right clicked and selected 'View -> Launch Conditions', it requires the .netframework 3.5.21022...
But I've created the installer project for .NET 2.0 framework, is this going to stop someone from installing the project without .NET framework 3/3.5?EDIT: I've found under the properties of that installer project, that .NET framework 3.5 and Windows Installer 3.1 was selected as a prerequisite, unchecked those, and checked .NET Framework 2.0, however the version under the launch condition .NET Framework is still 3.5, it should be 2.0
Im doing a FileStream.Write to create a file on a local computer from a file I download from the web.
qq1 =>how can I change the version property of the file after writing it or while writing it?
qq2 => and how can I check the version property of the file?