|
Are you using MFC? if so try;
<br />
wndMyRichEditCtrl.SetReadOnly ( TRUE )<br />
or in C;
<br />
SendMessage ( hMyRichEditWnd, EM_SETREADONLY, TRUE, 0L );<br />
Have a good one,
-Ben
"Its funny when you stop doing things not because they’re wrong, but because you might get caught." - Unknown
|
|
|
|
|
CSAPI documentation? SDK?
|
|
|
|
|
Dear ALL:
Recently I develop a installation program of my products. This installation program should
create a directory and register it as a virtual directory in IIS automatically.But I donnot
know how to register.Could you help me and give me a hint? thanks a lot !
|
|
|
|
|
You need to use the IISAdmin interface - CLSID_MSAdminBase
Put the calls to this into a DLL and call the functions int he DLL from your install script.
|
|
|
|
|
Dear everybody,
Do you know how to get information in address book of default email client?
Please, let me know.
Thanks,;P
|
|
|
|
|
Anybody know how to detect default mail client on a computer?
|
|
|
|
|
Should you better have a back learning program for more exprience in program other than selection some tips for hacking and ruining other's computers.
Paul Steigelbigel
|
|
|
|
|
Should you better have a back learning program for more exprience in program other than selection some tips for hacking and ruining other's computers.
Paul Steigelbigel
|
|
|
|
|
Can anyone out there show me an example of how to set the background image of a ListCtrl?
I've been working on it, and I'm not making any progress.
I am most interested in being able to supply the path+filename of a bitmap to use, but I would
be pretty satisfied with an example that used a bitmap in the resources (and therefore used
the resource ID, rather than the path+file or URL).
Thanks in advance. David.
|
|
|
|
|
Hi.
How can I change the component size presented in installshield component dialog?
|
|
|
|
|
Any resources that i can get about technet stuff ?
any info will be appreciated, thank you.
|
|
|
|
|
btw what is technet does ? all the technologies of .NET ?
|
|
|
|
|
I need to write a script/page that detects the client's browser cipher strength in both netscape and IE. I do not know where to begin, I have been researching this for a day and a half. If anyone could help, it would be greatly appreciated.....
Thanx,
Mike
|
|
|
|
|
What i have to do is to limit the amount of users able to access an application over the network at the same time. The application i am talking about ist not a client server app. It's just something like a calculator sitting on a network cd-rom drive.
i have to find out, how many users started this application on their workstation. If the limit of users has been reached, the next user shall not be able to start it.
i have not the slightest idea how to achieve this. Could someone please give me a hint?
|
|
|
|
|
The only way I know of to acheive this without a client server architecture is to have users install some registry entries on their local computer and pay for an individual license.
"Harland Pepper, would you stop naming nuts" - Harland Pepper
|
|
|
|
|
I'm not sure it would work, but you could try this...
Each time the program starts up, have it modify a system registry key to increment how
many instances of the program are running. Each time the program terminates, have it
modify that same system registry key to decrement the number of instances running.
That way, when the program starts, it can check the value of that system registry key. If
it is equal to a cut-off value, the program terminates itself. In that instance, you can either
have the program increment the key and then decrement as usual upon termination, or include
some flag to tell it not to decrement the registry key. I would lean toward having the program
increment the registry key, check its value and if above the cut-off, terminate itself and decrement
the key as usual (a little more consistency in function that way).
Let me know if it works.
|
|
|
|
|
There are commercial products that claim they do this.
Check them at the link given below:
http://dmoz.org/Computers/Programming/Component_Frameworks/COM/Components/Software_Protection/
and
http://vbxtras.com/categories/trail+copyprotectioncomponent+util.asp
I used Crypto32 SDK. It does this. Its api is OK.
Thanks
Puri
|
|
|
|
|
Hi all,
Can anyone tell me where I can get some STL for windows ce.
Thank you
|
|
|
|
|
STL is not currently supported by Windows CE (through version 3.0). I imagine the next version of the OS will support it. It all has to do with the lack of exception handling in the OS. However, this doesn't mean you are completely out of luck. Several people have done their best to tackle this problem. Check out these links:
http://www.stlport.org/
http://www.dinkumware.com/libdace.html
http://www.halcyon.com/ast/swdev.htm
Good luck,
Matt Philmon
|
|
|
|
|
Please provide me a sample for running a DOS batch file in ASP. I am stuck!
Matt
|
|
|
|
|
I would like to see an article/example on using Antialiasing when drawing 2D polygons and other shapes both outline only and filled.
|
|
|
|
|
Hi I have to write a C program to take any number of arguments of any type from the user at runtime.
I dont want to declare arrays of all the data types as that would be wastage of memory.
Is there an efficient way to input any number of arguments from the user of any type?
Please help as this is a part of my college project!!
Thanks
|
|
|
|
|
Try va_list a.k.a. variable-argument list. It's obvious, isn't it ?
HTH,
Thomas
I am a signature virus!
Help me spread and copy me to your sig!
|
|
|
|
|
Can you show me an example?
Thanks
|
|
|
|
|
Here is en example, found at MSDN:
void main( void )
{
printf( "Average is: %d\n", average( 2, 3, 4, -1 ) );
printf( "Average is: %d\n", average( 5, 7, 9, 11, -1 ) );
printf( "Average is: %d\n", average( -1 ) );
}
int average( int first, ... )
{
int count = 0, sum = 0, i = first;
va_list marker;
va_start( marker, first );
while( i != -1 )
{
sum += i;
count++;
i = va_arg( marker, int);
}
va_end( marker );
return( sum ? (sum / count) : 0 );
} HTH,
Thomas
I am a signature virus!
Help me spread and copy me to your sig!
|
|
|
|