|
Well, I think so too. But look, the main thread of COM object is also one of the threads of IIS (inetinfo.exe), but there I can't access files over network. And user settings for IIS are usual, IUSR_ComputerName, which has rights like Guest account (e.g. - no rights ). But a simple thread, opened from this COM object, looks like it has much more permissions... Dunno why. All I want to know right now, if I can use this feature, or maybe it will be fixed as security hole, lol
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
Need Web-based database administrator? You already have it!
|
|
|
|
|
I have been having problems with visual studio being unable to save files correctly (keeps coming up with 'Another application is using the file') and have found the problem seems to be due to having Norton Utilities installed.
I have tried disabling NAVs auto protect, but nothing short of uninstalling Norton Utilities seems to help.
Has anyone got any ideas how to resolve this?
(I'm running Windows 2000, VS6 and Norton Systemworks 2002, on my WinXP system this seems to be less of a problem, but still occurs occasionally).
Thanks...
Blade[DMS]
|
|
|
|
|
I have had compatibility problems between VS .NET and Zone Alarm firewall on an XP professional. And while I was searching the web for similar issues, I found that a lot of people have trouble with VS .NET and Norton Anti-Virus. I guess in your case it's VS 6 rather than VS .NET, but still the incopatibility might exist.
Regards
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
Same here, but I don't much care. I can Ctrl-S again
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
Need Web-based database administrator? You already have it!
|
|
|
|
|
Unfortunatly, on some occasions visual studio loses files when doing classwizard operations... (you have to dig into the temp directory to recover them)
and I get rather ...annoyed... when every time I hit build I get a requester saying 'unable to save file'...
(And our system admin is a little reluctant to allow us to run without a virus checker installed...)
Thanks for replying tho...
Blade[DMS]
|
|
|
|
|
I can't run Norton Or McAfee on my Visual Studio 6 PC. Norton keeps me from saving files all the time and blows up MSDev often. McAfee makes compiled so slow I can't stand it.
However, disabling the auto-protect works for me.
|
|
|
|
|
Matt Gullett wrote:
McAfee makes compiled so slow I can't stand it.
You might try to exclude your development directories from checking completely. That should (and back in NT4 and VC4.2/VC5 did for me) reduce the McAffe overhead to not noticable.
|
|
|
|
|
no solution, but... same here.
-c
ABSURDITY:
A statement or belief manifestly inconsistent with one's own opinion.
|
|
|
|
|
can anyone help me on how to use the stl qsort and if possible give me examples. i am try to use qsort so that i can sort out values from smaller value to higher values. how do i do that? anyways, thank you very much...
Thank you very much,
John
Aloha from Hawaii
|
|
|
|
|
int MySort( const void *arg1, const void *arg2 )
{
return *(char*)arg1 - *(char*)arg2;
}
void main()
{
char sText[10];
strcpy(sText, "ASDFGHJKL");
qsort(sText, strlen(sText), sizeof(char), MySort);
printf(sText);
printf("\n");
}
Maxwell Chen
People say "No news is good news". Then, no bug is good bug!?
|
|
|
|
|
// Next time just use msdn.
Example
/* QSORT.C: This program reads the command-line
* parameters and uses qsort to sort them. It
* then displays the sorted arguments.
*/
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
int compare( const void *arg1, const void *arg2 );
void main( int argc, char **argv )
{
int i;
/* Eliminate argv[0] from sort: */
argv++;
argc--;
/* Sort remaining args using Quicksort algorithm: */
qsort( (void *)argv, (size_t)argc, sizeof( char * ), compare );
/* Output sorted list: */
for( i = 0; i < argc; ++i )
printf( "%s ", argv[i] );
printf( "\n" );
}
int compare( const void *arg1, const void *arg2 )
{
/* Compare all of both strings: */
return _stricmp( * ( char** ) arg1, * ( char** ) arg2 );
}
Output
[C:\code]qsort every good boy deserves favor
boy deserves every favor good
Aizik Yair
Software Engineer
|
|
|
|
|
thank you very much for you guys help. i really appreciate it. i dont have a MSDN library so i couldnt do this problem. thank you very much again.
Thank you very much,
John
Aloha from Hawaii
|
|
|
|
|
John Cruz wrote:
i dont have a MSDN library
Have you seen http://msdn.microsoft.com/library ?
Kind regards to Hawaii.
|
|
|
|
|
I have created an Edit control dynamically with the help of CEdit class using the CreateEx member funtion...How to add a message handler funtion for that control. For example KeyPress event i want to handle. I would be greatfull if anybody let me know the answer for this question.
Reg
Guru
|
|
|
|
|
try using class wizard
Aizik Yair
Software Engineer
|
|
|
|
|
Copy the code, generated for edit events in a dialog by classWizard, to your project. Note, that you must specify unique ID for the edit for correct message handling.
|
|
|
|
|
Hi,
In my application, I have a given process (I get its identifier as a DWORD, a pseudo HANDLE and its name) and a given mutex name and I have to know if this given mutex belongs to the given process.
Does anybody know how to proceed ?
Thanks,
Robin.
|
|
|
|
|
Can you describe situation with more details?
For what purpose you want to check is mutex belong to given process?
Maybe you can create a table of pair mutex-PID in shared memory and when needed check is mutex belong to Process. (??? MapViewOfFile function can help with memory sharing ???)
|
|
|
|
|
Please, if somebody has ready solution (function for counting of words in a string), write it here. I just want to obtain number of words in LPSTR string.
Thanks!
|
|
|
|
|
You can use strtok. First define a string of separators and then use strtok to find all matching tokens and count them.
Best regards,
Alexandru Savescu
|
|
|
|
|
Thanks! Here was example:
* STRTOK.C: In this program, a loop uses strtok
* to print all the tokens (separated by commas
* or blanks) in the string named "string".
*/
#include <string.h>
#include <stdio.h>
char string[] = "A string\tof ,,tokens\nand some more tokens";
char seps[] = " ,\t\n";
char *token;
void main( void )
{
printf( "%s\n\nTokens:\n", string );
/* Establish string and get the first token: */
token = strtok( string, seps );
while( token != NULL )
{
/* While there are tokens in "string" */
printf( " %s\n", token );
/* Get next token: */
token = strtok( NULL, seps );
}
}
Output
A string of ,,tokens
and some more tokens
Tokens:
A
string
of
tokens
and
some
more
tokens
|
|
|
|
|
Who can point me to sample or article about using LPSECURITY_ATTRIBUTES in AfxBeginThread function?
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
Need Web-based database administrator? You already have it!
|
|
|
|
|
What's the difference between COM and COM+?
If I create a COM DLL using VS.NET on XP, does this automatically mean it's a COM+ component?
Regards
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
|
Thanks Michael
So basically COM+ is COM plus some extra stuff
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|