How to register an app to the scanner events using VB.NET or C#
Mon, 14 Apr 2008 10:28:00 -0700
Does someone know about a piece of code in VB.NET or C# to register an app to
scanner events using Still Image (sti.dll) API?
I don't understend how to implement the API correctly using the provided
documentation
Or else another way to do that? ...
|
WM_GETTEXTLENGTH
Sun, 13 Apr 2008 23:29:17 -0600
I have a need to enumerate all the windows found by the external method
GetWindows() and retrieve the various caption text from each window. As I
enumerate each window I call GetWindowTextLength to retreive the length of
the text before calling GetWindowText. I am faced with catch 22:
1) If I use SendMess ...
|
Converting a HBRUSH to a managed System.Drawing.Brush
Sun, 13 Apr 2008 06:52:51 -0700 (PDT)
Hi,
for my programm I need to use some gdi objects in C#. Converting a
HBITMAP hasn't been so hard, but right now I'm trying to retain a
System.Drawing.Brush from a HBRUSH. This seems to be not quite easy,
as there is no FromHBrush - Method or something like that nor didn't
Marshal.PtrToStructure work, e.g.
...
|
Line ending from tom.ITextRange different from RichTextBox1.Text ??
Sun, 13 Apr 2008 06:29:35 -0400
I have a rich textbox containing text.
If I use QuickFind to display the Text property I see a string with spaces
where there are lines end.
If instead of the Text property I use the text from this range:
Public Function TxtRangeAll() As tom.ITextRange
Dim iDocument As tom.ITextDocument = GetOLEInterface ...
|
COM Visible base class properties
Sat, 12 Apr 2008 14:51:06 -0700 (PDT)
Is there any way to expose a base property to COM without overriding
or shadowing? Here's what I'd like to do:
<ComClass()> _
Public Class A
<ComVisible(True)> _
Public ReadOnly Property One() As Integer
Get
Return 1
End Get
End Property
End Class
<ComClass()> ...
|
MarshalDirectiveException: marshaling fixed array
Sat, 12 Apr 2008 12:07:31 -0700 (PDT)
Hi!
I have IDL-file:
const byte DataStrLen = 255;
#pragma pack(1)
typedef struct
{
wchar_t fDataStr[DataStrLen];
} tSomeData;
#pragma pack()
[
object,
uuid(...),
pointer_default(unique),
local
]
interface ISomeData : IUnknown
{
tSomeData* getDataPtr();
};
I tr ...
|
Can not load 'ssleay32.dll' using DLLImport
Fri, 11 Apr 2008 03:47:00 -0700
Hi,
I am trying to call the unmanaged APIs defined in 'ssleay32.dll' through
C#.Net Application. I have downloaded this file and placed it in
C:\Windows\System32 folder. But when I try to call any of the fucntions from
this dll I get following error.
Unable to load DLL 'ssleay32.dll': The specified modul ...
|
|
|
Repost from "microsoft.public.dotnet.languages.csharp" question about
char * as a parameter
Thu, 10 Apr 2008 15:04:34 -0700 (PDT)
Hi -
I know that this is most likely a Microsoft-ism, but none the less...
I have a C++ class
namespace JELLO {
public ref class DEMO
{
public:
DEMO() {;}
~DEMO() {;}
bool DoStuff(const char *s1, char *s2)
{
...
|
PerformanceCounterCategory.Create() takes 3 minutes to add a new category!! How come? What can cause this?
Thu, 10 Apr 2008 12:25:39 -0700
PerformanceCounterCategory.Create() takes 3 minutes to add a new category!!
How come? What can cause this?
...
|
COM registration problems
Thu, 10 Apr 2008 07:23:44 -0700 (PDT)
I've got a ATL C++ COM server that I need to put into the C:\Windows
\system32\spool\driver\x64\3 folder and /regserver it there.
I can copy the .exe into the folder and run /regserver using an admin
mode command prompt. The problem occurs when I try to build my test
VB application. Orginally I was building ...
|