473,486 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Please help to view the sample

yxq
Hello,
I want to get the string resource from DLL file, the code work well for
Vista x86, but it will not work on Vista x64, why? can anyone help to view
the code below? thank you very much.

//////////////////////////////////////////////////////////////////////////////////

Public Class GetResourceStringFromFile

Private Declare Function LoadLibrary Lib "kernel32" Alias
"LoadLibraryA" (ByVal lpLibFileName As String) As Integer
Private Declare Function LoadString Lib "user32" Alias "LoadStringA"
(ByVal hInstance As Integer, ByVal uID As Integer, ByVal lpBuffer As String,
ByVal nBufferMax As Integer) As Integer
Private Declare Function FreeLibrary Lib "kernel32" (ByVal
hLibModule As Integer) As Integer

Public Shared Function GetResourceStringFromFile(ByVal sModule As
String, ByVal idString As Integer) As String
Dim hModule As Integer
Dim nChars As Integer
Dim Buffer As New
Microsoft.VisualBasic.Compatibility.VB6.FixedLengt hString(260)
Dim ReturnValue As String = ""

Try
hModule = LoadLibrary(sModule)
If hModule Then
nChars = LoadString(hModule, idString, Buffer.Value,
260)
If nChars 0 Then
ReturnValue =
Microsoft.VisualBasic.Left(Buffer.Value, nChars)
End If

FreeLibrary(hModule)
End If
Catch ex As Exception
End Try
Return ""
End Function

End Class
Feb 9 '07 #1
19 1889
"yxq" <ga***@163.netschrieb
Hello,
I want to get the string resource from DLL file, the code work well
for Vista x86, but it will not work on Vista x64, why? can anyone
help to view the code below? thank you very much.

//////////////////////////////////////////////////////////////////////////////////

Public Class GetResourceStringFromFile

Private Declare Function LoadLibrary Lib "kernel32" Alias
"LoadLibraryA" (ByVal lpLibFileName As String) As Integer
Private Declare Function LoadString Lib "user32" Alias
"LoadStringA" (ByVal hInstance As Integer, ByVal uID As Integer,
ByVal lpBuffer As String, ByVal nBufferMax As Integer) As Integer
Private Declare Function FreeLibrary Lib "kernel32" (ByVal
hLibModule As Integer) As Integer

Handles must be declared as IntPtr. IntPtr is plattform specific and
automatically the correct size, ie. 32 or 64 bit depending on the plattform.
Whereas Integer = Int32.

Watch the declarations:

HMODULE LoadLibrary(
LPCTSTR lpFileName
);
int LoadString( HINSTANCE hInstance,
UINT uID,
LPTSTR lpBuffer,
int nBufferMax
);

BOOL FreeLibrary(
HMODULE hModule
);

Type translation:

int -IntPtr
UINT = unsigned int -IntPtr
HMODULE = HINSTANCE = HANDLE = PVOID = void* -IntPtr
BOOL = int -IntPtr
Example:

Private Declare Function LoadLibrary Lib "kernel32" Alias
"LoadLibraryA" (ByVal lpLibFileName As String) As IntPtr

See also:
http://msdn2.microsoft.com/en-us/library/ms241064.aspx
http://msdn2.microsoft.com/en-us/library/8ck8e1y2.aspx
To the community: How is "As Boolean" treated? Shouldn't it be IntPtr? I've
always translated BOOL to Boolean, but this seems to be wrong.

Armin

Feb 9 '07 #2
"yxq" <ga***@163.netschrieb

Haven't looked at the rest of the code...

Also, use a Stringbuilder if you get a string back from an unmanaged [API]
function. Note that Strings are "immutable" in .Net. No need to use
VB6.FixedLengthString anyways.
See http://msdn2.microsoft.com/en-us/library/sd10k43k.aspx,
especially http://msdn2.microsoft.com/en-us/library/s9ts558h.aspx (head line
"Fixed-Length String Buffers").
(but don't rely on the declarations there...)
So, in LoadString, declare "ByVal lpBuffer As StringBuilder". Before calling
the function, fill the stringbuilder.

Also exchange the variable types in the function according to the types you
used in the Declares.
Armin

Feb 9 '07 #3
"yxq" <ga***@163.netschrieb:
I want to get the string resource from DLL file, the code work well for
Vista x86, but it will not work on Vista x64, why? can anyone help to view
the code below? thank you very much.
Your function declarations are wrong. I suggest to check out the sample
<URL:http://dotnet.mvps.org/temp/Win32Res.zip>.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Feb 9 '07 #4
yxq
Thank you for your help, but i have changed to the code below, it works well
on x86, but will not work on x64(only get a few dll's string), thank you.

/////////////////////////////////////////////////////////////////////////////////
Private Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA"
(ByVal lpLibFileName As String) As Integer
Private Declare Function LoadString Lib "user32" Alias "LoadStringA"
(ByVal hInstance As IntPtr, ByVal uID As Integer, ByVal lpBuffer As String,
ByVal nBufferMax As Integer) As Integer
Private Declare Function FreeLibrary Lib "kernel32" (ByVal hLibModule As
Integer) As Integer

Public Function GetResourceStringFromFile(ByVal sModule As String, ByVal
idString As Integer) As String

Dim Buffer As String = Space(&H1000)
Dim hModule As Integer

Try
hModule = LoadLibrary(sModule)
If hModule Then
Dim n As Int32 = LoadString(hModule, idString, Buffer,
Buffer.Length)
If n 0 Then
Return Left(Buffer, n)
End If
End If
Catch ex As Exception
End Try
Return ""
End Function

"yxq" <ga***@163.netдÈëÏûÏ¢ÐÂÎÅ:OL****************@TK2M SFTNGP05.phx.gbl...
Hello,
I want to get the string resource from DLL file, the code work well for
Vista x86, but it will not work on Vista x64, why? can anyone help to view
the code below? thank you very much.

//////////////////////////////////////////////////////////////////////////////////

Public Class GetResourceStringFromFile

Private Declare Function LoadLibrary Lib "kernel32" Alias
"LoadLibraryA" (ByVal lpLibFileName As String) As Integer
Private Declare Function LoadString Lib "user32" Alias
"LoadStringA" (ByVal hInstance As Integer, ByVal uID As Integer, ByVal
lpBuffer As String, ByVal nBufferMax As Integer) As Integer
Private Declare Function FreeLibrary Lib "kernel32" (ByVal
hLibModule As Integer) As Integer

Public Shared Function GetResourceStringFromFile(ByVal sModule As
String, ByVal idString As Integer) As String
Dim hModule As Integer
Dim nChars As Integer
Dim Buffer As New
Microsoft.VisualBasic.Compatibility.VB6.FixedLengt hString(260)
Dim ReturnValue As String = ""

Try
hModule = LoadLibrary(sModule)
If hModule Then
nChars = LoadString(hModule, idString, Buffer.Value,
260)
If nChars 0 Then
ReturnValue =
Microsoft.VisualBasic.Left(Buffer.Value, nChars)
End If

FreeLibrary(hModule)
End If
Catch ex As Exception
End Try
Return ""
End Function

End Class


Feb 10 '07 #5
"yxq" <ga***@163.netschrieb
Thank you for your help, but i have changed to the code below, it works
well on x86, but will not work on x64(only get a few dll's string), thank
you.

/////////////////////////////////////////////////////////////////////////////////
Private Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA"
(ByVal lpLibFileName As String) As Integer
Private Declare Function LoadString Lib "user32" Alias "LoadStringA"
(ByVal hInstance As IntPtr, ByVal uID As Integer, ByVal lpBuffer As
String, ByVal nBufferMax As Integer) As Integer
Private Declare Function FreeLibrary Lib "kernel32" (ByVal hLibModule
As Integer) As Integer

You should change not only some types. Correct them all. For example, the
return value of LoadLibrary must be Intptr. As I wrote, handles must be
Intptr.

I was wrong with the type translation table. Correction:

int -Integer/Int32
UINT = unsigned int -VB 2005: UInteger/UInt32, VB 2003: Integer/Int32
HMODULE = HINSTANCE = HANDLE = PVOID = void* -IntPtr
BOOL -Boolean
->

Private Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA"
(ByVal lpLibFileName As String) As IntPtr

Private Declare Function LoadString Lib "user32" Alias "LoadStringA"
(ByVal hInstance As IntPtr, ByVal uID As UInteger, ByVal lpBuffer As
StringBuilder, ByVal nBufferMax As Integer) As Integer

Private Declare Function FreeLibrary Lib "kernel32" (ByVal hLibModule
As IntPtr) As Boolean
Armin

Feb 10 '07 #6
"Armin Zingler" <az*******@freenet.deschrieb:
Private Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA"
(ByVal lpLibFileName As String) As IntPtr

Private Declare Function LoadString Lib "user32" Alias "LoadStringA"
(ByVal hInstance As IntPtr, ByVal uID As UInteger, ByVal lpBuffer As
StringBuilder, ByVal nBufferMax As Integer) As Integer

Private Declare Function FreeLibrary Lib "kernel32" (ByVal hLibModule
As IntPtr) As Boolean
.... and you can even get rid of the alias and declare the function as 'Auto'
('Declare Auto Function...').

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Feb 10 '07 #7
"Herfried K. Wagner [MVP]" <hi***************@gmx.atschrieb
"Armin Zingler" <az*******@freenet.deschrieb:
Private Declare Function LoadLibrary Lib "kernel32" Alias
"LoadLibraryA" (ByVal lpLibFileName As String) As IntPtr

Private Declare Function LoadString Lib "user32" Alias
"LoadStringA" (ByVal hInstance As IntPtr, ByVal uID As UInteger,
ByVal lpBuffer As StringBuilder, ByVal nBufferMax As Integer) As
Integer

Private Declare Function FreeLibrary Lib "kernel32" (ByVal
hLibModule As IntPtr) As Boolean

... and you can even get rid of the alias and declare the function
as 'Auto' ('Declare Auto Function...').

I didn't look at it at all. Had to find out whether "int" is Intptr or
Int32. :-)
Armin

Feb 10 '07 #8
yxq
Thank you, but i tried all your suggestions, but did not work yet.
If add the "Auto" to the API, it will not work on x64(include x86).
Modifid the Integer to Intptr, not effect.

Could you please help me to test on OS-64bit? i want to get the string in
Shell32.dll(ResID is -22985), it can return "Folder Options".
I used the code below. It work well on x86, but will not work on x64.

//////////////////////////////////////////////////////////////////////////
MessageBox.Show(GetResourceStringFromFile("C:\Wind ows\System32\shell32.dll",
22985))

Private Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA"
(ByVal lpLibFileName As String) As IntPtr
Private Declare Function LoadString Lib "user32" Alias "LoadStringA"
(ByVal hInstance As IntPtr, ByVal uID As UInteger, ByVal lpBuffer As String,
ByVal nBufferMax As Integer) As Integer
Private Declare Function FreeLibrary Lib "kernel32" (ByVal hLibModule As
IntPtr) As Integer

Public Function GetResourceStringFromFile(ByVal sModule As String, ByVal
idString As Integer) As String

Dim Buffer As String = Space(&H1000)
Dim hModule As Integer

Try
hModule = LoadLibrary(sModule)
If hModule Then
Dim n As Int32 = LoadString(hModule, idString, Buffer,
Buffer.Length)
If n 0 Then
Return Left(Buffer, n)
End If
End If
Catch ex As Exception
End Try
Return ""
End Function

"Armin Zingler" <az*******@freenet.de>
??????:uw**************@TK2MSFTNGP03.phx.gbl...
"Herfried K. Wagner [MVP]" <hi***************@gmx.atschrieb
>"Armin Zingler" <az*******@freenet.deschrieb:
Private Declare Function LoadLibrary Lib "kernel32" Alias
"LoadLibraryA" (ByVal lpLibFileName As String) As IntPtr

Private Declare Function LoadString Lib "user32" Alias
"LoadStringA" (ByVal hInstance As IntPtr, ByVal uID As UInteger,
ByVal lpBuffer As StringBuilder, ByVal nBufferMax As Integer) As
Integer

Private Declare Function FreeLibrary Lib "kernel32" (ByVal
hLibModule As IntPtr) As Boolean

... and you can even get rid of the alias and declare the function
as 'Auto' ('Declare Auto Function...').


I didn't look at it at all. Had to find out whether "int" is Intptr or
Int32. :-)
Armin

Feb 11 '07 #9
"yxq" <ga***@163.netschrieb
Thank you, but i tried all your suggestions, but did not work yet.
If add the "Auto" to the API, it will not work on x64(include x86).
Modifid the Integer to Intptr, not effect.

Could you please help me to test on OS-64bit?
If you send me one?
i want to get the
string in Shell32.dll(ResID is -22985), it can return "Folder
Options".
I used the code below. It work well on x86, but will not work on
x64.

//////////////////////////////////////////////////////////////////////////
MessageBox.Show(GetResourceStringFromFile("C:\Wind ows\System32\shell32.dll",
22985))

Private Declare Function LoadLibrary Lib "kernel32" Alias
"LoadLibraryA" (ByVal lpLibFileName As String) As IntPtr
Private Declare Function LoadString Lib "user32" Alias
"LoadStringA" (ByVal hInstance As IntPtr, ByVal uID As UInteger,
ByVal lpBuffer As String, ByVal nBufferMax As Integer) As Integer

Still wrong declaration. Use a Stringbuilder for lpBuffer. See this thread
for explanation.
Armin

Feb 11 '07 #10
Armin,

"Armin Zingler" <az*******@freenet.deschrieb:
> Private Declare Function LoadLibrary Lib "kernel32" Alias
"LoadLibraryA" (ByVal lpLibFileName As String) As IntPtr
Private Declare Function LoadString Lib "user32" Alias
"LoadStringA" (ByVal hInstance As IntPtr, ByVal uID As UInteger,
ByVal lpBuffer As String, ByVal nBufferMax As Integer) As Integer

Still wrong declaration. Use a Stringbuilder for lpBuffer. See this thread
for explanation.
Are you sure a 'StringBuilder' is really necessary here? IIRC when using
'Declare' (opposed to 'DllImport') the marshalling is performed
automatically.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Feb 11 '07 #11
yxq
Sorry, i do not know how to use Stringbuilder, could you please give me a
full code?

"Armin Zingler" <az*******@freenet.de>
??????:eE****************@TK2MSFTNGP03.phx.gbl...
"yxq" <ga***@163.netschrieb
>Thank you, but i tried all your suggestions, but did not work yet.
If add the "Auto" to the API, it will not work on x64(include x86).
Modifid the Integer to Intptr, not effect.

Could you please help me to test on OS-64bit?

If you send me one?
>i want to get the
string in Shell32.dll(ResID is -22985), it can return "Folder
Options".
I used the code below. It work well on x86, but will not work on
x64.

//////////////////////////////////////////////////////////////////////////
MessageBox.Show(GetResourceStringFromFile("C:\Win dows\System32\shell32.dll",
22985))

Private Declare Function LoadLibrary Lib "kernel32" Alias
"LoadLibraryA" (ByVal lpLibFileName As String) As IntPtr
Private Declare Function LoadString Lib "user32" Alias
"LoadStringA" (ByVal hInstance As IntPtr, ByVal uID As UInteger,
ByVal lpBuffer As String, ByVal nBufferMax As Integer) As Integer


Still wrong declaration. Use a Stringbuilder for lpBuffer. See this thread
for explanation.
Armin

Feb 11 '07 #12
On 2007-02-11, Herfried K. Wagner [MVP] <hi***************@gmx.atwrote:
Armin,

"Armin Zingler" <az*******@freenet.deschrieb:
>> Private Declare Function LoadLibrary Lib "kernel32" Alias
"LoadLibraryA" (ByVal lpLibFileName As String) As IntPtr
Private Declare Function LoadString Lib "user32" Alias
"LoadStringA" (ByVal hInstance As IntPtr, ByVal uID As UInteger,
ByVal lpBuffer As String, ByVal nBufferMax As Integer) As Integer

Still wrong declaration. Use a Stringbuilder for lpBuffer. See this thread
for explanation.

Are you sure a 'StringBuilder' is really necessary here? IIRC when using
'Declare' (opposed to 'DllImport') the marshalling is performed
automatically.
Yes it is marshalled automatically, and so isn't strictly necessary - but
recommended to reduce the amount of work that the VB marshaller has to do to
accomadate the immutable nature of System.String. In C# it is strictly
necessary, because the marshaller won't do the extra work. Personally, I
think it is just a good habbit to use System.Text.StringBuilder for non-const
buffers to p/invoke calls.

--
Tom Shelton
Feb 11 '07 #13
"yxq" <ga***@163.netschrieb
Sorry, i do not know how to use Stringbuilder, could you please give
me a full code?

C'mon, before doing such things you should read the documentation. That's
where I have the information from, too. I've never written a 64 bit
application, so what do you think I have done?

Main topic about interop:
http://msdn2.microsoft.com/en-us/library/ms172270.aspx

Among these chapters an example using a Stringbuilder:
http://msdn2.microsoft.com/en-us/library/x3txb6xc.aspx

Armin

Feb 11 '07 #14
"Herfried K. Wagner [MVP]" <hi***************@gmx.atschrieb
Armin,

"Armin Zingler" <az*******@freenet.deschrieb:
Private Declare Function LoadLibrary Lib "kernel32" Alias
"LoadLibraryA" (ByVal lpLibFileName As String) As IntPtr
Private Declare Function LoadString Lib "user32" Alias
"LoadStringA" (ByVal hInstance As IntPtr, ByVal uID As UInteger,
ByVal lpBuffer As String, ByVal nBufferMax As Integer) As
Integer
Still wrong declaration. Use a Stringbuilder for lpBuffer. See
this thread for explanation.

Are you sure a 'StringBuilder' is really necessary here? IIRC when
using 'Declare' (opposed to 'DllImport') the marshalling is
performed
automatically.

That's new to me. I have always only heared (and read) that a Stringbuilder
_must_ be used because Strings are immutable - and preached it on my own all
the time without any opposition ever. Never heared of an exception. But you
may be right, I haven't tested it.
Armin

Feb 11 '07 #15
yxq
Have modified the code below, but yet will not work on Vista-x64(most will
not work but a few work well).

/////////////////////////////////////////////////////////////////////
Private Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA"
(ByVal lpLibFileName As String) As Integer
Private Declare Function LoadString Lib "user32" Alias "LoadStringA"
(ByVal hInstance As IntPtr, ByVal uID As Integer, ByVal lpBuffer As
System.Text.StringBuilder, ByVal nBufferMax As Integer) As Integer
Private Declare Function FreeLibrary Lib "kernel32" (ByVal hLibModule As
Integer) As Integer

Public Function GetResourceStringFromFile(ByVal sModule As String, ByVal
idString As Integer) As String
Dim SB As New System.Text.StringBuilder(300)
Dim hModule As Integer

Try
hModule = LoadLibrary(sModule)
If hModule Then
Dim n As Integer = LoadString(hModule, idString, SB,
SB.Capacity)
If n 0 Then
Return SB.ToString
End If
End If
Catch ex As Exception
End Try
Return ""
End Function
Feb 12 '07 #16
"yxq" <ga***@163.netschrieb
Have modified the code below, but yet will not work on
Vista-x64(most will not work but a few work well).

/////////////////////////////////////////////////////////////////////
Private Declare Function LoadLibrary Lib "kernel32" Alias
"LoadLibraryA" (ByVal lpLibFileName As String) As Integer

Hello? *knock* *knock* Why still Integer? :-) You must change it as
suggested (more than once), otherwise it will definitely not work. Ok, once
again:
Private Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA"
(ByVal lpLibFileName As String) As IntPtr

Private Declare Function LoadString Lib "user32" Alias "LoadStringA"
(ByVal hInstance As IntPtr, ByVal uID As UInteger, ByVal lpBuffer As
StringBuilder, ByVal nBufferMax As Integer) As Integer

Private Declare Function FreeLibrary Lib "kernel32" (ByVal hLibModule
As IntPtr) As Boolean

Armin

Feb 12 '07 #17
yxq
Yes, have tested your code, but same result(work well on Vista-x86, will not
work on Vista-x64)

//////////////////////////////////////////////////////////////////////////////////////////////////
Private Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA"
(ByVal lpLibFileName As String) As IntPtr
Private Declare Function LoadString Lib "user32" Alias "LoadStringA"
(ByVal hInstance As IntPtr, ByVal uID As UInteger, ByVal lpBuffer As
System.Text.StringBuilder, ByVal nBufferMax As Integer) As Integer
Private Declare Function FreeLibrary Lib "kernel32" (ByVal hLibModule As
IntPtr) As Boolean
Public Function GetResourceStringFromFile(ByVal sModule As String, ByVal
idString As Integer) As String
Dim SB As New System.Text.StringBuilder(300)
Dim hModule As Integer

Try
hModule = LoadLibrary(sModule)
If hModule Then
Dim n As Integer = LoadString(hModule, idString, SB,
SB.Capacity)
If n 0 Then
Return SB.ToString
End If
End If
Catch ex As Exception
End Try
Return ""
End Function
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
Dim a As String
For i As Integer = 0 To 5000
a = GetResourceStringFromFile("C:\windows\system32\she ll32.dll",
i)
If a <"" Then
l.Items.Add(i & " " & a)
End If
Next
MessageBox.Show("done")
End Sub
Feb 12 '07 #18
"yxq" <ga***@163.netschrieb
Yes, have tested your code, but same result(work well on Vista-x86,
will not work on Vista-x64)

First, you should always switch Option Strict On:
Public Function GetResourceStringFromFile( _
ByVal sModule As String, ByVal idString As UInteger) As String

Dim SB As New System.Text.StringBuilder(300)
Dim hModule As IntPtr

Try
hModule = LoadLibrary(sModule)
If hModule <IntPtr.Zero Then
Dim n As Integer = LoadString(hModule, idString, SB, SB.Capacity)
If n 0 Then
Return SB.ToString
End If
End If
Catch ex As Exception
End Try
Return ""
End Function
Though, I don't know what the problem is. Did you single-step through the
code? What is the value of hModule? If it's zero, what does
GetLastWin32Error return? What is n's value? Do you get an exception?
Armin

Feb 12 '07 #19
yxq
Hello Armin Zingler,
Wow, the code work well on Vista64 now!!!! Thank you thank you very
much.....

//////////////////////////////////////////////////////////////////////////////
Option Strict On

Module Module1

Private Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA"
(ByVal lpLibFileName As String) As IntPtr
Private Declare Function LoadString Lib "user32" Alias "LoadStringA"
(ByVal hInstance As IntPtr, ByVal uID As UInteger, ByVal lpBuffer As
System.Text.StringBuilder, ByVal nBufferMax As Integer) As Integer
Private Declare Function FreeLibrary Lib "kernel32" (ByVal hLibModule As
IntPtr) As Boolean

Public Function GetResourceStringFromFile(ByVal sModule As String, ByVal
idString As UInteger) As String
Dim SB As New System.Text.StringBuilder(300)
Dim hModule As IntPtr

Try
hModule = LoadLibrary(sModule)
If hModule <IntPtr.Zero Then
Dim n As Integer = LoadString(hModule, idString, SB,
SB.Capacity)
If n 0 Then
Return SB.ToString
End If
End If
Catch ex As Exception
End Try
Return ""
End Function

End Module

Feb 12 '07 #20

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
1823
by: Raymond Hettinger | last post by:
Based on the feedback here on comp.lang.python, the pep has been updated: www.python.org/peps/pep-0322.html The key changes are: * reversed() is being preferred to ireverse() as the best...
28
3251
by: stu_gots | last post by:
I have been losing sleep over this puzzle, and I'm convinced my train of thought is heading in the wrong direction. It is difficult to explain my circumstances, so I will present an identical...
0
3314
by: thefirstwml | last post by:
Hi, I cannot view CLOB fields when I use the Sample Contents in the Control Center. When I insert values, I see the CLOB fields as blank. A fellow developer is using the exact same DB2 UDB...
23
3230
by: Jason | last post by:
Hi, I was wondering if any could point me to an example or give me ideas on how to dynamically create a form based on a database table? So, I would have a table designed to tell my application...
4
1150
by: J | last post by:
I am a newbie in vb.net and gdi+, in my windows app, I using System.drawing to display image file, now when user view a multipage tiff file, they moved to 3rd page, then chose a new tiff file, it's...
1
9581
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
7
1480
by: Mickyd1561 | last post by:
Hey everyone I'm new to this groups thing and thought maybe someone can help me. My problem is that I can't view specific images on only one website. www.baseballu.net is my baseball team's...
12
7475
by: Doug | last post by:
Hi, I learned a little about the model view presenter pattern at a conference this last week and am experimenting with it. It's working pretty well but I have a question. I am trying to use...
0
2011
by: raa abdullah | last post by:
Overview A conflict-serializbility\recoverability checker, SCR, is a program that takes in a schedule and outputs 2 decisions: Conflict serialzable or Not confilict serializable AND Recoverable or...
2
2076
by: Dave Ekhaus | last post by:
hi i'm new to javascript. i'm hoping to get some help and find out if what i want to do is possible and - assuming it is, get some tips on how to accomplish the task. ok - assume i have a...
0
7099
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6964
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7123
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6842
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4864
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4559
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3069
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.