lfLog.DebugMsgStart(" Retrieving Connection String");
csKey = "SOFTWARE\\Kimberly-Clark\\Knowledge Management";
if ( !rReg.GetSZValue(HKEY_LOCAL_MACHINE,csKey, csConnectionStringReference, csConnectionString))
// could not get program name
csMsg.Format("Could not get the ConnectionString from Registry Key = '%s', Value = '%s'", csKey, csConnectionStringReference);
// log the message code
mclLog.ErrorMsg( 0, "ConnectionString");
and i am having the values in registry under the path mentioned in the code
Very interesting, but what is happening when you run this code?
What does rReg.GetSZValue return and where is the class definition for it?
What is contained in csConnectionStringReference and csConnectionString?
What system calls are being used and if they fail what is returned by GetLastError()?
code compilation is success an now i am trying to install and run the service in the production server .
rReg.GetSZValue success if it successfully fetch the value from regtry path or else failed ,now it is returning fail in log .
csConnectionStringReference contained the key name "TeamsConncetionstring" and this value is also ftched from the registry itself.
csConnectionString should be stored with the value of the key "TeamsConncetionstring".
GetLastError() returning 0 here .
And if any error even will log with the error details which i have reported earlier.
I'm sorry but that tells us nothing about what is happening. You need to use your debugger to step through the code and see the exact status values that you are receiving when you try to read this value from the registry. You still have not shown the code that does to do the actual call to get the value from the registry, only rReg.GetSZValue.
It's just character zero, does the SendText method allow that?
You'll never get very far if all you do is follow instructions
Send Text Method does not allow that but the same program was developed by VB6 allows to send a VBNull value using WinSock component. It's not following instructions but the certain problem does need to send a NULL value because it the receiving end is just a circuit with a network port.
Do you have any idea of sending a NULL value? It does not need to be the Send Text method.. Any method that allows to send a data packet with two NULL characters enclose with will do...
The Socket object should be having another method to send raw bytes instead of text.
Using that you should be able to send NULL.
If not, you could try to send the \0 character - "\0MyText\0" whose length will be 8.
«_Superman_» I love work. It gives me something to do between weekends.