|
|
I'm getting the following error message:
the DB2OLEDB provider is not registered on the local machine.
from where can I download this driver on the web?
Jassim Rahma
|
|
|
|
|
You've got to download[^] the IBM client software.
|
|
|
|
|
I am having a problem with one event consuming two other events. I.e. I have a ListView with a DoubleClick event and a ContextMenu . When I add a mouseDown event for drag and drop operations, the DoubleClick event no longer fires and the ContextMenu opens only on occasion.
Any Ideas?
|
|
|
|
|
Provide implementation for the OnItemDrag event handler instead.
|
|
|
|
|
Thanks
|
|
|
|
|
Is there a standard or common way to make a serial number type protection on my windows app? I mean I could just whip something up, a text box and "please enter the serial number" and then save it to the registry, but there's probably more to it I should be aware of. Any articles on this out there?
I also will need to make an installer which I've never done before, where should I start?
thanks as always
"Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read."
-Groucho Marx
|
|
|
|
|
Bog wrote:
Is there a standard or common way to make a serial number type protection on my windows app? I mean I could just whip something up, a text box and "please enter the serial number" and then save it to the registry, but there's probably more to it I should be aware of. Any articles on this out there?
From what I know, there are only useful code templates from installer IDEs. The reason for it is that licensing is not a one point blocker, it often tells what components a customer can install and use. This involves knowledge about the target product itself.
If you need a ready-to-use template, browse the InstallShield devzone.
Bog wrote:
I also will need to make an installer which I've never done before, where should I start?
VisualStudio.NET comes with Setup And Deployment project wizards, which produce .msi setups. As long as you don't need strong custom install rules, the GUI has all you need to create a setup with a few drag&drops.
|
|
|
|
|
Bog wrote:
I also will need to make an installer which I've never done before, where should I start?
Possibly http://www.installsite.com[^]
This place saved my life when I was learning about installers. Look at anything involving Windows Installer.
Bob Baker's book[^] is great if you ever need a really in-depth guide. Even though it's based around InstallShield Developer, the first half of the book is solely about Windows Installer.
Paul
Pleasently caving in, I come undone - Queens of the Stone Age, No One Knows
|
|
|
|
|
It's very difficult producing a good level of protection on a piece of software. If you want to know more about it just do a search on Google for reverse engineering, in particular there used to be an excellent website with loads of essays on how people cracked various software programs -- do a search for Fravia on Google to see more.
In the end, you may either want to just purchase something from another Company (stronger than just knocking something up in 2 mins, but a generic protection system will have a generic patch that works across anything protected with it!) or alternatively just accept that people will copy it and try to figure out a way to encourage people to purchase full licenses to it.
--
Paul
"If you can keep your head when all around you have lost theirs, then you probably haven't understood the seriousness of the situation."
- David Brent, from "The Office"
MS Messenger: paul@oobaloo.co.uk
Sonork: 100.22446
|
|
|
|
|
inno setup is a good (free installer) i would recommend a program called (my inno setup exstentions) it supports registry entrys from the install (i.e it will write a key if told that tells you were the selected directory is.
its probally innosetup.com or run a search at altavista for innosetup.
|
|
|
|
|
whats the easyiest way to add images too a context menu ?
jesse M
|
|
|
|
|
jtmtv18 wrote:
whats the easyiest way to add images too a context menu ?
The easiest way is probably to look up on the left CodeProject navigation bar, click on C# Windows Forms / Menu & Toolbars, and see that several articles about owner drawn menus are waiting for you.
|
|
|
|
|
How to set focus to control when form init ? control.Focus dont work :/
W.
|
|
|
|
|
.Focus() does nothing if this.CanFocus returns false. In order for .CanFocus to return true, the Form must be created (this.Handle!=IntPtr.Zero), must be visible and must be enabled.
Obviously, after initialisation you could set the keyboard focus on it after you call .Show()
Good luck!
|
|
|
|
|
this is what i have:
private void button1_Click(object sender, System.EventArgs e)
{
IntPtr hdc=GDI.GetDC (this.listBox1.Handle);
GDI.FONTENUMPROC callback=new GDI.FONTENUMPROC (this.CallbackFunc);
GDI.EnumFontFamilies (hdc,null,callback,0);
GDI.ReleaseDC (this.listBox1.Handle ,hdc);
}
private int CallbackFunc (GDI.GDILogFont f , GDI.GDITextMetric t,Int64 DWType,Int64 LParam)
{
listBox1.Items.Add(f.lfFaceName);
return 1;
}
the api calls and logfont/textmetrics structs are also done.
but what happends when i run this code is that i only get ONE font , called "System"
why cant i enumerate all the fonts?
i know i can use the installedfonts collection in system.drawing.text , but that will not return any bitmap fonts (which i use in my app since im wrapping lots of gdi32 crap)
any ideas why this dont work correctly?
//Roger
|
|
|
|
|
Why do you pass NULL as second param in EnumFontFamilies ?
MSDN says this about that NULL value : "lpszFamily = Pointer to a null-terminated string that specifies the family name of the desired fonts. If lpszFamily is NULL, EnumFontFamilies selects and enumerates one font of each available type family.
"
|
|
|
|
|
yes , and it also says:
.S.Rod. wrote:
one font of each available type family.
its working now... it was my textmetric struct that was incorrect...
|
|
|
|
|
I am currently working on an application that recieves an undefinite size of byte array from any source. I used the BeginRecievedFrom method of the socket class and used a size of 256 bytes for the buffer. At first there was no problem because all the data being recieved was less than 256 bytes, until I tried to recieved more. An error was thrown by at the EndRecieveFrom statement; it says SocketExceptionError: More data is Available. Is there a way to know if there is still data left? So that I could recieved the Bulk in small chunks of 256 bytes each?
Thnaks for any help...
|
|
|
|
|
Use BeginReceive instead of BeginReceiveFrom (it does a WIN32 Winsocks2 WSARecv call instead of WSARecvFrom, while WSARecvFrom should be used a connectionless socket only).
|
|
|
|
|
But you need to specify the address of the remote host in a call to BeginRecieive as oppose to the other.
I am required to use UDP and should recieve data from any computer without knowing their addresses in advance. My real problem is how to get all the data using a constant buffer size. For example, if a data of size 500 bytes is sent to me and I have a 256 byte buffer size then I need to recieved the data 1 chunk at a time. I'd look at the samples in MSDN and saw a possible solution but it did not work for me.
|
|
|
|
|
I need code/function that retrieve all the computers IP in the local domain/workgroup.
|
|
|
|
|
Does it have to be .NET? This is really easy using the Net API. You could P/Invoke all this, but there's a lot of structs and functions involved, as well as a lot of constants you'd have to dig through countless headers to find. Just another example where it's good to use the right tool for the right job.
In any case, start by checking MSDN or the Platform SDK for this method: NetServerEnum using SV_TYPE_ALL (or a combination of other flags depending on your requirements).
Hope that helps.
"Well, I wouldn't say I've been missing it, Bob." - Peter Gibbons
|
|
|
|
|
It is not .NET i use the visual studio 6
|
|
|
|
|
Okay, this is the C# forum (a .NET-only language). Visual C++ is a better forum. My suggestion still applies, however. Start with the method I mentioned.
"Well, I wouldn't say I've been missing it, Bob." - Peter Gibbons
|
|
|
|