|
|
The Jet Number - Integer type should be DBTYPE_I4 in OLE DB........ OleDbType.Integer
|
|
|
|
|
May be is DBTYPE_I2...
Regards...
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
Is this a C# or C++ question?
If C# then:
System.Data.OleDb.OleDbType.Numeric
Cheers,
Simon
"Sign up for a chance to be among the first to experience the wrath of the gods.", Microsoft's home page (24/06/2002)
|
|
|
|
|
Hi all,
I just wanted to know if there is any built in compression in the .Net framework, like zip. I believe Java, has zip (jar) support built in.
Perhaps someone has done a zip library...
Any suggestions?
Thanx in advance
READ MSDN
|
|
|
|
|
There isn't anything built into the framework but you have a couple different options you can use.
ICSharpCode.net has an open source ZIP library you can use
You could also get the J# libraries and use the zip libraries there. I don't know about you, but the first choice seems more plausible
James
"Java is free - and worth every penny." - Christian Graus
|
|
|
|
|
Thanx James
NZipLib does the trick beautifully
READ MSDN
|
|
|
|
|
Hi all,
I have only access to command line C# compiler from .NET Frameworks SDK.
How to run a C# application with the help of this compiler?
I read somewhere that one can use makefile.
Can someone give me a example of how to run this make file?
thanks in advance
regards
/rsasalm
|
|
|
|
|
I suggest you use nant to make build files.
sourceforge.net/projects/nant
|
|
|
|
|
Hi andy,
Thanks for tips.
I searched the site you mentioned but I couldn't succeed to
find the build env for C sharp.
Could you please mention which one should I download?
thanks for your help.
regards
/rsasalm
|
|
|
|
|
Hello resasalm_,
I suggest you use the SharpDevelop IDE its a free C# devlopment envirement and their page is http://www.icsharpcode.net/OpenSource/SD/default.asp I hope that helps you.
|
|
|
|
|
I want to draw a shape by mouse. But I can not find out the way to use XOR mode in C#. Can you show me a sample for this issue?
Thanks
|
|
|
|
|
DrawReversibleFrame
Normski. - Professional Windows Programmer
|
|
|
|
|
Sorry I don't understand your answer. Could you please give me more details?
|
|
|
|
|
There is a class called ControlPaint. It has limted XOR drwaing functions like DrawReversibleFrame etc. Look at that.
|
|
|
|
|
I think ^ is what you want.
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
Mazdak wrote:
I think ^ is what you want.
|
|
|
|
|
I thought he want XOR operator in C# and ^ do it.
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
He wants the XOR mode when drawing.
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
|
|
|
|
|
XOR mode drawing isn't supported in GDI+ because its use was considered a hack since you couldn't control the color that was output from its operation.
The recommended solution is to do your drawing so that you don't need XOR mode; or emulate it.
For instance if you were creating a progress bar control that showed the percentage in the middle (ala most setup programs) you would draw the text twice; once with the clipping set to just the area that is being filled; again with it set to the area not being filled choosing appropriate colors both times.
This is a GOOD thing though; because then font features such as antialising and cleartype will work; where as they won't if you blit to a bitmap then xor the bitmap onto another one.
James
"Java is free - and worth every penny." - Christian Graus
|
|
|
|
|
Hi James,
Do you think that I can use the Region class for this issue? I want to build a drawing application which use mouse to draw a shape. But when I drag the mouse I can't clear the previous shape. Can you show me a solution?
Thanks.
|
|
|
|
|
Check out this link:
http://support.microsoft.com/directory/article.asp?ID=KB;EN-US;Q314945&
This works only with rectangles and lines.
Øyvind
|
|
|
|
|
I am trying to use the new XP ballon-style notification tooltip from C# on a WinForms control. I thought I had a pretty good handle on the interop stuff, but am still having some problems.
I've defined the interop pieces I need as follows:
[ StructLayout( LayoutKind.Sequential )]
public struct EDITBALLOONTIP
{
public int cbStruct;
[MarshalAs(UnmanagedType.LPWStr)]
public string pszTitle;
[MarshalAs(UnmanagedType.LPWStr)]
public string pszText;
public int ttiIcon;
};
public const uint EM_SHOWBALLOONTIP = 0x1500 + 3;
public const uint EM_HIDEBALLOONTIP = 0x1500 + 4;
public const int TTI_NONE = 0;
public const int TTI_INFO = 1;
public const int TTI_WARNING = 2;
public const int TTI_ERROR = 3;
[DllImport
("user32.dll",CharSet=CharSet.Unicode,SetLastError=true)]
private static extern int SendMessage(
IntPtr _WindowHandler,
uint _WM_USER,
int _data,
[In] ref EDITBALLOONTIP _id);
So then I create a textbox and place the following in a button click handler:
EDITBALLOONTIP ebt = new EDITBALLOONTIP();
ebt.cbStruct = Marshal.SizeOf(typeof(EDITBALLOONTIP));
ebt.pszTitle = "TITLE TEXT";
ebt.pszText = "This is the text of the balloon.";
ebt.ttiIcon = TTI_ERROR;
MessageBox.Show(
SendMessage(textBox1.Handle,
EM_SHOWBALLOONTIP,0,ref ebt).ToString());
MessageBox.Show(
Marshal.GetLastWin32Error().ToString());
I've used this basic structure to send some other messages around, but this one gives me errors. The first time I click the button when I run the program, I get error 127 (The specified procedure could not be found.), and every time after that, I get 1421 (Control ID not found.).
Any insights are appreciated!
Joel
|
|
|
|
|
Perhaps a stupid question, but how can I search in the message board?
(The normal search only works for articles)
|
|
|
|
|