hi,
we have to make our system highly scalable and it has been developed for windows platform using VC++. Say initially, we would like to process 100 requests(from msmq) simultaneously. what would be the best approach. single process with 100 threads or 2 processes with 50-50 threads. What is the gain apart from process memory in case o...
Hi all,
I am accessing network drive (Z:\stream) on windows. Now the permission set on stream folder is like chmod -R 777 streams/ means all the files inside stream is at 777 but now i am copying some files from windows to this streams folder but permission on those files are not 777 ,i would like to have permission 777 on those files t...
I have a project to create a high traffic search engine similar to altavista.com. The windows .NET C# will be used for the project. I am looking for a good search engine database that can handle a very high load. I have taken a look at lucene and sql server 2008. I have read that lucene tends to get corrupt when the load is very high. So...
I have as many as ten Perl scripts to run on a Windows server. Is there something better than opening a new prompt for each script and having ten windows open on your server?
...
Hello,
I have both EASEUS Partition Master and Paragon Partition Manager, but both do not let me alter my Linux partition. I cannot increase the size from the Linux partition itself since it is mounted. I currently do not have a free USB drive handy, so I cannot run Linux from it and open up gparted. How can I go about increasing the siz...
How can I use windows.h in Qt application? After including it several errors like
"c:\Qt\4.4.3\include/QtCore/../../src/corelib/arch/qatomic_windows.h:387: error:
declaration of C function 'long int InterlockedCompareExchange(long int*, long int,
long int)' conflicts with
d:\old\mingw\bin../lib/gcc/mingw32/4.3.3/../../../../include/winb...
In my batch file I have the script:
set myVar=/someLabel:"%1"
I want to write the if command for the above script that have the same meaning as below.
if <%1 not null> {
myVar=/someLabel:"%1"
}
else
{
myVar=""
}
How can I do this? Please help!
[Edit]
The answer from user hfs works for me.
The full details of the if and set ...
We have recently installed Bugzilla on IIS6.0 in windows 2003 Server. Everything is working fine except sending email. We have configured SMTP email configuration. We provided the smtp server, user name and password. Still Bugzilla is not able to send an emila and reports "Could not authenticate the user". When the same details are provi...
I am in Windows 7 x64, and trying to use the same Event object between 2 processes, one is an vb application, and the other is a C++ application, but seems the event created in one process can't be recognized in another one:
VB
Option Explicit
Private Type SECURITY_ATTRIBUTES
nLength As Long
lpSecurityDescriptor As Long
bI...
I have created a Shell Extension using ATL COM Object . But during creation I haven't added MFC support. Can I change the setting now to add MFC support
...
I am coding on my laptop, and watching online video on an windows pc. the suck video site can't turn to fullscreen mode back after goto next video, so I want to use laptop(linux) to remote control the windows.
But... when I using rdesktop login to the windows, the current session was logout, ...
So , what can I do, is there any client...
I want to read a value from registry using the following method:
char* cDriveStatus=ReadFromRegistry(HKEY_CURRENT_USER,_T(NDSPATH),m_szDriveName);
I tried converting using GetBuffer,m_szDriveName.GetBuffer(0) but this again shows error:
error C2664: cannot convert parameter 3 from 'wchar_t *' to 'LPSTR'
Edit:
Declaration of Met...
I have two applications: a Java server and a .net client. The Java server hosts a web service (JAX-WS / Metro) and the client application calls the web service (WCF). The first web service call that returns a value is always slow. It takes about 30 seconds. Calls that don't return a value or subsequent calls on the same operation are lig...
My system has findstr.exe but when I try to execute it, it gives me the following error
FINDSTR: Bad command line
Tried so many things but unable to fix.
I need to use regex in my batch script.
Any other suggestion?
...
My development team are having a problem having snippets of text shown for search results in windows 7 for our own custom files (note we are NOT talking about the preview pane that uses the IPreviewHandler interface). An example of what I mean for .txt files is shown below:
The text snippet shown here with the highlighted result is no...
I'm writing a simple Perl script (on Windows) to download the response of a get request to a url to a file. Pretty straight-forward. Except when it writes to the output file, I get extra line breaks. So like instead of:
<head>
<title>title</title>
<link .../>
</head>
I get
<head>
<title>title</title>
<link .../>
</head>
...
I have a text in some file like
<Variable name="URL" value="http://url:port"/>
I want the url in the value tag( http://url:port ).
The command and regex I'm using are
FindStr /R /C:"\"URL\" *value=*\"*\"" <filename>
The above regex matches the line in the file but fails to extract that url string
any suggestion?
...
Hi,
How to get the longest files names in a directory using C#?
...
Hey guys
Just Randomly got this question in my head! Whats the difference between API , Framework and middleware? Essentially all of them provide abstract low level services to apps. In that case why is dot net called framework and windows API called well.. API?
...
Is there a way (in C++ & windows XP) to detect if one process spawns any other processes?
for example,
write.exe in system32 spawns wordpad.exe then disappears, is there a function that tells me if the process is about to do this?
for those interested i solved the problem using this section of msdn:
http://msdn.microsoft.com/en-us/lib...