|
One more question i had,what is the meaning og managed code and unmanaged code.
|
|
|
|
|
Sorry,what is the meaning of managed code and unmanaged code.
|
|
|
|
|
Hi All,
Can anyone please tell me whats the meaning of function definition.
Function Definition:
Private Sub LoadArray(ByVal ParamArray CRCBytes() As Object)
Dim i As Short
For i = 0 To UBound(CRCBytes)
m_byteCRC8(i) = CRCBytes(i)
Next
End Sub
Function Call:
Call LoadArray(&H0S, &H9BS, &HADS, &H36S, &HC1S, &H5AS, &H6CS, &HF7S, &H19S, &H82S, &HB4S, &H2FS, &HD8S, &H43S, &H75S, &HEES, &H32S, &HA9S, &H9FS, &H4S, &HF3S, &H68S, &H5ES, &HC5S, &H2BS, &HB0S, &H86S, &H1DS, &HEAS, &H71S, &H47S, &HDCS, &H64S, &HFFS, &HC9S, &H52S, &HA5S, &H3ES, &H8S, &H93S, &H7DS, &HE6S, &HD0S, &H4BS, &HBCS, &H27S, &H11S, &H8AS, &H56S, &HCDS, &HFBS, &H60S, &H97S, &HCS, &H3AS, &HA1S, &H4FS, &HD4S, &HE2S, &H79S, &H8ES, &H15S, &H23S, &HB8S, &HC8S, &H53S, &H65S, &HFES, &H9S, &H92S, &HA4S, &H3FS, &HD1S, &H4AS, &H7CS, &HE7S, &H10S, &H8BS, &HBDS, &H26S, &HFAS, &H61S, &H57S, &HCCS, &H3BS, &HA0S, &H96S, &HDS, &HE3S, &H78S, &H4ES, &HD5S, &H22S, &HB9S, &H8FS, &H14S, &HACS, &H37S, &H1S, &H9AS, &H6DS, &HF6S, &HC0S, &H5BS, &HB5S, &H2ES, &H18S, &H83S, &H74S, &HEFS, &HD9S, &H42S, &H9ES, &H5S, &H33S, &HA8S, &H5FS, &HC4S, &HF2S, &H69S, &H87S, &H1CS, &H2AS, &HB1S, &H46S, &HDDS, &HEBS, &H70S, &HBS, &H90S, &HA6S, &H3DS, &HCAS, &H51S, &H67S, &HFCS, &H12S, &H89S, &HBFS, &H24S, &HD3S, &H48S, &H7ES, &HE5S, &H39S, &HA2S, &H94S, &HFS, &HF8S, &H63S, &H55S, &HCES, &H20S, &HBBS, &H8DS, &H16S, &HE1S, &H7AS, &H4CS, &HD7S, &H6FS, &HF4S, &HC2S, &H59S, &HAES, &H35S, &H3S, &H98S, &H76S, &HEDS, &HDBS, &H40S, &HB7S, &H2CS, &H1AS, &H81S, &H5DS, &HC6S, &HF0S, &H6BS, &H9CS, &H7S, &H31S, &HAAS, &H44S, &HDFS, &HE9S, &H72S, &H85S, &H1ES, &H28S, &HB3S, &HC3S, &H58S, &H6ES, &HF5S, &H2S, &H99S, &HAFS, &H34S, &HDAS, &H41S, &H77S, &HECS, &H1BS, &H80S, &HB6S, &H2DS, &HF1S, &H6AS, &H5CS, &HC7S, &H30S, &HABS, &H9DS, &H6S, &HE8S, &H73S, &H45S, &HDES, &H29S, &HB2S, &H84S, &H1FS, &HA7S, &H3CS, &HAS, &H91S, &H66S, &HFDS, &HCBS, &H50S, &HBES, &H25S, &H13S, &H88S, &H7FS, &HE4S, &HD2S, &H49S, &H95S, &HES, &H38S, &HA3S, &H54S, &HCFS, &HF9S, &H62S, &H8CS, &H17S, &H21S, &HBAS, &H4DS, &HD6S, &HE0S, &H7BS)
Why the function definition has only one parameter,but function call has many variables.
|
|
|
|
|
ashwath1979 wrote: Private Sub LoadArray(ByVal ParamArray CRCBytes() As Object)
CRCBytes() is an array, so all the values that pass in is stored inside this array variable.
ashwath1979 wrote: For i = 0 To UBound(CRCBytes)
m_byteCRC8(i) = CRCBytes(i)
Next
Therefore, it use the for loop to actually call out the CRCBytes value and store inside m_byteCRC8.
|
|
|
|
|
|
The keyword ParamArray can be used on the last parameter in a parameter list. This means that the function can be called with a variable number of paramters, and they are treated as an array.
---
b { font-weight: normal; }
|
|
|
|
|
|
I currently work on VB.NET windows application. I have a difficulty in make an installation package for the windows application project I have done in VB.NET.
According to what I know, in Visual Studio 6, it is included a packaging tools where help us to package the VB6 project file, including create .exe and so on, which can build out an installer.
Anyway, in VS.NET, I can't find this packaging tools. Although, during execute (after compile), there is an .exe file created in the folder bin/. However, when I copy this .exe file to a PC which is not install VS.NET, then the .exe file cannot run.
Do we need to use 3rd party packaging software to solve this problem, or actually I have left out something?
If anyone know, please teach me... thanks.
|
|
|
|
|
Which version of .NET are you using? There are deployment tools in all versions of Visual Studio however they are slightly different between versions.
richocheah wrote: However, when I copy this .exe file to a PC which is not install VS.NET, then the .exe file cannot run.
Have you included the .NET runtime? All .NET applications need the .NET framework to be installed on the machine where it will run.
|
|
|
|
|
Can you provide me some guideline to use the deployment tools? I'm using .NET 2003 Enterprise Edition.
How to include .NET runtime? Do you means the machine must install at least .NET Framework v1.1 or newer version?
Please help me... thanks.
-- modified at 3:42 Friday 17th November, 2006
|
|
|
|
|
the .NET Runtime is a non-critical windows update, run windows update on the machine you wish to install this software on and it should work, also with visual studio 2003, there is a type of project. Setup and Deployment project. This is where you can create an installer or MSI. I suspect, though, that doing the update and adding the .net framework 1.1 or 2.0 you should then be able to run the EXE from the bin.
|
|
|
|
|
Oh I see... I will have a try on the setup of the machine in order to execute the .exe file in /bin.
Regarding the project deployment, so far I try my best to search through the menu(s) inside VS.NET and also all those included in the Start Menu, but I can't find the project deployment tools...
Anyway, thanks for telling me all these, I'm very much appreciated.
|
|
|
|
|
Hi all,
Can anyone please tell me whats the meaning of below declarations.
Option Strict Off
Option Explicit On
Imports VB = Microsoft.VisualBasic
Imports System.Text
Imports Microsoft.VisualBasic.Strings
|
|
|
|
|
That's what a VB6 programmer would use to continue writing sloppy code in VB.NET.
Option Strict Off
This turns off strict type checking. You should really turn this option on, so that the compiler doesn't do so much implicit conversions.
Option Explicit On
This forces you to declare every variable that you use, which is good.
Imports VB = Microsoft.VisualBasic
This lets you use some VB6 style functions by using a VB. prefix. There are replacements for most of those in the regular framework classes.
Imports System.Text
This is a normal import in a .NET program. It lets you use some text based classes like StringBuilder and Encoding .
Imports Microsoft.VisualBasic.Strings
This lets you use some VB6 style functions like LEFT , MID and INSTR . There are replacements for these in the regular String class.
---
b { font-weight: normal; }
|
|
|
|
|
|
Can anyone give me an example to create form that can search text in Richtextbox?
Thanks
................
|
|
|
|
|
RichTextBox1.Find("string")
|
|
|
|
|
I managed to compile a VB6 program to capture live video through video composite input of TV card.
I use an analog CCD camera using PAL B standard.
It was observed that, once the program starts the capture driver ("WDM video for Windows capture driver Win32")captures the video in NTSC standard. It seems that there is a default setting. Because of that, captured image is not displayed properly.
Can anybody please help me with the coding that I have to add to the program to select/change the video standard from NTSC to PAL?
Dilhara
|
|
|
|
|
You should be able to show the settings dialog, and from there, set if you're capturing PAL or NTSC.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hello,
In VB6 I can create instance of com server using early binding like this:
Public Srv As Lib.Server
Set Srv = Lib.Server
How to destroy it explicitly? How to call IUnknown::Release(); method explicitly from VB6?
Please help.
Regards,
Leonid
|
|
|
|
|
I think you set Srv to equal nothing, or whatevre you guys call NULL.
Christian Graus - C++ MVP
|
|
|
|
|
Is there a way to prevent a folder from being opened in the system, instead of creating a new user and setting permissions?
Mark Thibodeaux
|
|
|
|
|
You can mark it as hidden or system, but you can't stop it, no.
Christian Graus - C++ MVP
|
|
|
|
|
I am trying to iterate through a dataset as follows:
For Each row As DataRow In ds.Tables("TrxContents").Rows<br />
Me.ListBox1.Items.Add(row("Product"))<br />
Next row
Why is it only using the last row in my table to fillup the listbox? I'm just getting a list of the same (last) record.
Before running this code, the dataset is used to poplate a datagrid. Is it the positioning of the record pointer having just filled the datagrid? If so, how do I reset the record pointer?
|
|
|
|
|
What you have should work correctly. Have you stepped through in the debugger to see what the value of row("Product") is in each iteration?
Mike Lasseter
|
|
|
|
|