|
Thanks for your comments!! Exactly, I am also worried about the thread/process synchronization issues that may come up in the multi core environment. Can anyone have the experience of facing such issues, or atleast have the knowledge about the issues, if so, please reply?
|
|
|
|
|
totally depend on your application architecture, in single core machine, practically each thread on application run on same CPU, means CPU allocate time for Main thread and Workerthread, in that case if program is not correctly syncronize, it can still work.
But on multicore CPU, if every thread utilize service of diffrent CPU, here syncronization should be perfect otherwise be ready for new defect coming your way. "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi all,
i m using this function NetServerEnum.
i have only one option here this function provide random machines.
i mean the serial of machines are not same at each and every time.
is there any other option to find out all machines of workgroup or domain.
thanks in advance.To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
Le@rner wrote: i have only one option here this function provide random machines.
i mean the serial of machines are not same at each and every time.
What's the possibility that you are using it incorrectly?"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
i m using it like this.
LPSERVER_INFO_101 pBuf = NULL;
LPSERVER_INFO_101 pTmpBuf;
DWORD dwLevel = 101;
DWORD dwPrefMaxLen = -1;
DWORD dwEntriesRead = 0;
DWORD dwTotalEntries = 0;
DWORD dwTotalCount = 0;
DWORD dwServerType = SV_TYPE_ALL;
DWORD dwResumeHandle = 0;
NET_API_STATUS nStatus;
LPTSTR pszServerName = NULL;
DWORD i;
nStatus = NetServerEnum(NULL,dwLevel,(LPBYTE *) &pBuf,dwPrefMaxLen,&dwEntriesRead,
&dwTotalEntries,dwServerType,NULL,&dwResumeHandle);
now please tell me where i m going wrong.To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
Since the code you are using comes from here, have you used the debugger to step through the code? Seeing the values of pTmpBuf , dwEntriesRead , and nStatus can be helpful."One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Hi Friends
How to create a program which will run in task bar like Windows Mediaplayer minimized to taskbar.
kk-kk.tvm-
|
|
|
|
|
|
Hi all,
I working on application that is used to monitor Insertion and Removal of USB drives.
here we can also enable or disable usb drives.
with the using of this registry value.
Local_Machine>>System>>CurrentControlSet>>Services>>USBSTOR
here the value os Start decide usb drive is enabled or disabled.
if Start==3
if Start==4
when i set this registry value on client machine its working fine.
but in case of server when i disable the USBSTOR its set the registry value to 4 but usb drive detected by server.
please help me for this.
thanks in advance.To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
There can be CurrentControlSet's for a server .. CurrentControlSet001 ,CurrentControlSet002 and soon so u will have to change values for all of them.
<b><I>Kushagra
|
|
|
|
|
its working fine for client machines without restarting To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
Hello, everybody. I seek the watermark subject in codeproject, although some articles give fact about the watermark, I need further more detail about the information. Sorry for my poor English, non-native English speaker. Thanks!
|
|
|
|
|
Symfund wrote: I seek the watermark subject in codeproject, although some articles give fact about the watermark, I need further more detail about the information.
This one looks promising: "WaterMarker".
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Edit: looks like the cert cant be base-64 encoded
cacert.cer is a X509 base64 encoded certificate
ifstream file ("cacert.cer", ios::in|ios::binary|ios::ate);
char * memblock;
int size;
if (file.is_open())
{
size = file.tellg();
memblock = new char [size+1];
file.seekg (0, ios::beg);
file.read (memblock, size);
memblock[size]=0;
file.close();
cout << "Certificate file has been loaded!\n";
}
byte* byteblock = new byte;
byteblock = (byte*)memblock;
mycert = CertCreateCertificateContext(X509_ASN_ENCODING,byteblock,size);
if (!mycert){
cout << "error: " << GetLastError() << "\n";
}else{
cout << mycert->pbCertEncoded << " encoded cert\n";
}
What am I doing wrong?modified on Sunday, February 7, 2010 6:03 PM
|
|
|
|
|
Hey guys, i am having a problem formatting my text in a file. what i did was to extract some information from a html file and i would like to format it. Currently my information comes out in this way...
Code: Select all
Cast (Cast overview, first billed only), Sam Worthington ... Jake Sully ,Zoe Saldana ... Neytiri ,Sigourney Weaver ... Dr. Grace Augustine ,
what i would like to achieve is for the program to read the "," and then based on then "," paste it to a newline and continue.. for example...
Code: Select all
Cast (Cast overview, first billed only)
Sam Worthington ... Jake Sully ,
Zoe Saldana ... Neytiri ,
Sigourney Weaver ... Dr. Grace Augustine
Anybody can give some clue on how i can format my text according to this way? Hope for some help in this. Thanks!
|
|
|
|
|
I think the first step is to handle
gregarion wrote: Cast (Cast overview, first billed only),
so I'd sugget searching for the bracket ')', adding one more to the character position, then removing that part of the string... then, the rest of what you need can be performed by tokenising (look it up, plenty of info/examples around) on the ',', giving you the sub-strings of cast ...
'g'
|
|
|
|
|
In the book I am following in C++ it has two lines for the bolean operators that signify OR. How do I type those?
|
|
|
|
|
If you cannot find the symbol '|' on your keyboard (for instance, on English keyboard it is -shifted-, close to 'z' key), type ALT+124 (use the numeric keypad to type digits) to insert it.If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
What kind of English keyboard do you have? The '|' key is diagonally opposite the 'z' key on my keyboards. Even on the Dvorak layout, they're on the same side but two rows apart. You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.
|
|
|
|
|
My best guess is Carlo is on this Italian Qwerty dialect[^].
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that. [The QA section does it automatically now, I hope we soon get it on regular forums as well]
|
|
|
|
|
But that't not English. It has letters with all those funky accents. You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.
|
|
|
|
|
I wrote English, not American (do you speak English in the US? ) [^].
As Luc said, I have the Italian one, of course.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: do you speak English in the US?
Yes (American English), and the folks in the UK speak British English."One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Do you understand irony in the US?
Sorry, that was irresistible...If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Yes, and some of us speak excellent English. We were even thoughtful enough to spend the last half of the 20th century exporting it to the world as a common language. You're welcome. You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.
|
|
|
|