|
CRC stands for Cyclic Redundency Check. Where I work we use it to check .iso files transfered over the network to make sure that it is the same. If anything happened to it in transfer there would be a difference. So if the CRC32 is the same then the file is the same. It can be used to check all the files on a cd also, so if any file changed in creating a cd the CRC32 checksum would be different than that of the master disc.
|
|
|
|
|
Thank u buddies!!
rIsHaBh
|
|
|
|
|
i'm srying to read a table from a sql database. i'm using a sqldataadapter, what code should i put in the page load for this to work
|
|
|
|
|
Hi CodeProject Champs
I want to deploy Crystal Report with my software. I got registered on the site www.crystaldecisions.com/net/licensing. After deployment it was giving error "Invalid Keycode". When I registered they send me a pdf named net_distribution_license.pdf file. But it does not have any keycode. How shud i proceed? From where to get the key code for crystal report.
thanks
Be Humble in Victory and Strong in Defeat. -Het
|
|
|
|
|
Hi,
I have been added a web reference. VB.NET has been created a proxy class in my project. But I need to declare prefix for an element. How can I add prefix into an element such as below by VB.NET?
I want to following form;
<RFC_GET_TRUSTED_SYSTEM_ID.Response xmlns="urn:sap-com:document:sap:rfc:functions">
To following form;
<x:RFC_GET_TRUSTED_SYSTEM_ID.Response x:xmlns="urn:sap-com:document:sap:rfc:functions">
Thank you
Orkun GEDiK
|
|
|
|
|
hi,
her problem of M-DAC is really not working out, please please please help her out.
Thanks to all for reading
Be Humble in Victory and Strong in Defeat. -Het
|
|
|
|
|
'//Connecting to sqlserver thru ADO
Dim sConnectionstring As String
Dim rst As New ADODB.Recordset 'will hold records returned
Dim com As New ADODB.Command 'will pass command to sql server
Dim cn As New ADODB.Connection 'our database connection object
sConnectionstring = "Uid=Yourusername; pwd=Yourpassword;" & _
"InitialCatalog=Yourdatabase;" & _
"Data Provider=SQLOLEDB; provider=MSDATASHAPE;" & _
"Server=Your-server-if-any;"
cCnn.ConnectionString = sVarConnectionString
cCnn.Open
With com
.ActiveConnection = cn
.CommandText = "SELECT * FROM your-table"
.CommandTimeout = 0 '//don't time-out
.CommandType = adCmdText '//exec the text
End With
rstGP.Open com '//open the recordset
'//accessing the data in rst
If Not rst.BOF And Not rst.EOF Then rst.MoveFirst
While (Not rst.EOF)
MsgBox "Field1 = " & rst!Field1 '//Field1 is a colum in the table
MsgBox "Field2 = " & rst!Field2 '//Field2 is a colum in the table
MsgBox "Field3 = " & rst!Field3
MsgBox "Fieldn = " & rst!Fieldn
rst.MoveNext
Wend
'//Creating a table..
CREATE TABLE
[ database_name.[ owner ] . | owner. ] table_name
( { < column_definition >
| column_name AS computed_column_expression
| < table_constraint > ::= [ CONSTRAINT constraint_name ] }
| [ { PRIMARY KEY | UNIQUE } [ ,...n ]
)
e.g. assume my database is called db1 - i can create table tb1 with
2 columns col1 and col2
CREATE TABLE
db1 tb1
(
col1 AS INT,
col2 AS VARCHAR(100) NOT null
)
'//xml
Don know much about xml..
1fm1fu
|
|
|
|
|
Hello,
I programmed a click event handler for a button on a worksheet. In this handler I wanted to change some cells. But when the handler changed the first cell it aborted directly after the comand.
Here's my code:
This is the event handler itself, it is calling another function that is doing the work:
Private Sub bReorgWorkTime_Click()
ReorgWorkTime bReorgWorkTime.Parent
End Sub
Public Function ReorgWorkTime(xButtonWorksheet As Worksheet)
Dim iDay As Integer
Dim xWorkTime As Variant
Dim xReorgedTime As Variant
Dim dWorkTime As Double
Dim bOldEventsEnabled As Boolean
iDay = ROW_DAY_1
bOldEventsEnabled = Application.EnableEvents
Application.EnableEvents = False
' Fill in all days without over times:
While (iDay <= ROW_DAY_31)
xWorkTime = xButtonWorksheet.Cells(iDay, COL_WORKED_TIME)
If (IsNumeric(xWorkTime) And Not IsEmpty(xWorkTime)) Then
dWorkTime = xWorkTime
xButtonWorksheet.Cells(iDay, COL_REORGED_TIME) = dWorkTime
' Aborts here
Else
xButtonWorksheet.Cells(iDay, COL_REORGED_TIME) = ""
' or here
End If
iDay = iDay + 1
Wend
Application.EnableEvents = bOldEventsEnabled
End Function
Believing the debugger the "iDay = iDay + 1" line isn't even reached!
I use Excel 2002 SP-1 German
|
|
|
|
|
How can you convert a heximal string to a "normal string"???
For example, I've got a register file which contains the following:
[HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3\Default]
"Password"=hex:88,bf,a4,48,1a,4b,4d,4d
So, I want to know how you can convert the heximal string "88,bf,a4,48,1a,4b,4d,4d" into just normal letters and numers...
And I'm using VB 6.0!!!!!
(¯`·._.·[eRiK]·._.·´¯)
|
|
|
|
|
Friend Function HexToStr(ByVal strHex As String) As String
Dim i As Integer
Dim sb As New System.Text.StringBuilder(strHex.Length \ 2)
For i = 0 To strHex.Length - 2 Step 2
sb.Append(Microsoft.VisualBasic.Chr(Convert.ToByte(strHex.Substring(i, 2), 16)))
Next
Return sb.ToString
End Function
|
|
|
|
|
Didn't see and unhex functions built in so you have to build one
Private Function unHex(ByVal hexStr As String) As Integer
Dim position As Integer = 1
Dim Result As Integer = 0
While Not position > hexStr.Length
Dim thisChar As Char = Mid(hexStr, position, 1)
Select Case UCase(thisChar)
Case "A"
Result += 10 * (16 ^ (hexStr.Length - position))
Case "B"
Result += 11 * (16 ^ (hexStr.Length - position))
Case "C"
Result += 12 * (16 ^ (hexStr.Length - position))
Case "D"
Result += 13 * (16 ^ (hexStr.Length - position))
Case "E"
Result += 14 * (16 ^ (hexStr.Length - position))
Case "F"
Result += 15 * (16 ^ (hexStr.Length - position))
Case Else
Result += Val(thisChar) * (16 ^ (hexStr.Length - position))
End Select
position += 1
End While
Return Result
End Function
This will take as input a hexstring of any length and give you a result as an integer.
ex. unHex("C17") = 3096
ex. unHex("C17BD") = 792509
Matthew Hazlett
Windows 2000/2003 MCSE
Never got an MCSD, go figure...
|
|
|
|
|
One more thing, I'm using VB 6.0, NOT .NET!!!!
And I don't only want them to be converted into numbers, nut just into a string, for example a word!!!
eRiK
|
|
|
|
|
If you trying to get that password, you'll be a little disappointed. At a glance, those numbers are way above the normal ascii characters. Your looking at an encrypted password.
RageInTheMachine9532
|
|
|
|
|
hi all,
i am a beginner with vb.net,when i tested WMI i encounter a problem
i want to shutdown my computer with wmi,but when the programme work,it just shutdown windows,my computer still work..
is anybody here know how to solute it?
thanks
I try my best!
|
|
|
|
|
Does your computer normally power off when you shut down Windows?
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
hi,,,
When I made setup of Vb.net project, dotnetfxredist_x86_enu.msm is automatically
included in the setup project. But when I build project it is giving an error saying
" dotNETFXRedist_x86_enu.msm must not be used to redistribute the .NET Framework. Please exclude this merge module."
Setup is built, but as it does not include the framework msm file, .net framework doesnt get
automatically installed on the system nor does the setup run because framework is not
installed. Which is the file to be included so that framework gets installed automatically??
thx,
tasnim
|
|
|
|
|
hi,,
How to automatically install Mdac along with my software ? I have downloaded mergemodules for mdac,but it doesnt work, i.e. its not getting automatically installed... how to do it?
thanks
tasnim
|
|
|
|
|
Hi,
I want to deploy Crystal Report with my software. I got registered on the site www.crystaldecisions.com/net/licensing. After deployment it was giving error "Invalid Keycode". When I registered they send me a pdf named net_distribution_license.pdf file. But it does not have any keycode. How shud i proceed? From where to get the key code for crystal report.
thanks
tasnim.
|
|
|
|
|
Please help me I lost my night sleep. Tell in simple code.
From my VB client I am passing simple string "Siddharth", to a win32 dll function GetUserName(DATATYPE)(if DAtatype is BSTR or wstring tell me how to convert it into string in dll function declaration). My program should run in 98 as well as NT. I am trying lot of examples but they all are for long. When I convert it to string nothing works out.
VB client
Dim x as string
x = "String"
GetStringFromVb(wstring *)
end
Win32
GetStringFromVb(wstring*)
{
vector MyString;
MyString.push_back(wstring);
{
//..Lot of string manipulation
}
}
One more issue. in the win32 DLL.h if I declare stl parameter, it is not accepted by the compiler.
|
|
|
|
|
Where are we? VB6? VB.NET? Are you using Declare to initialize the DLL function call in VB6? Or is this VB.NET? More specific code examples?
Also, for the c++ code, you might try the c++ forum.
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
Please don't preach. U know it tell and make me thankful or keep your arse away.
|
|
|
|
|
Excuse me! He didn't preach anything. He asked you a couple of valid questions about information that you didn't provide in your initial post. Information that is VITAL to answering your question correctly.
Keep his 'arse' away??!!??!!
It's responses like this that make me question why ... nevermind...
You can bet that I won't be helping you anymore. Be nice to the people your asking for help from!
RageInTheMachine9532
|
|
|
|
|
Yes, perhaps you misinterpreted my inquiry --- and the reference to the c++ forum was a simple suggestion.
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
First think that comes to mind is you may have to null terminate the string before you send it over.
myString &= chr(0)
Matthew Hazlett
Windows 2000/2003 MCSE
Never got an MCSD, go figure...
|
|
|
|
|
VB6 uses BSTR type strings. Which are always Unicode and have their length as the first 4 bytes. When you pass a string to the API ByVal, a copy of the string is automatically made in ASCII (I think!) and a pointer to the copy is actually passed to the function you called. There is no way to "convert" a BSTR into a wString at the function declaration. Either your VB code has to pass the data, NOT necessarily as a String type, to the function in a format the function can deal with, like an array of Bytes that LOOKS like a string, or your function must be able to deal with BSTR's.
RageInTheMachine9532
|
|
|
|