Just a follow up to comment #44, teh above warning is thrown on the line
iIndex2 += strlen(params[iIndex1])+ 1;
Type: Posts; User: zmfcat
Just a follow up to comment #44, teh above warning is thrown on the line
iIndex2 += strlen(params[iIndex1])+ 1;
Hi Bob
I used the createMultiString snippet posted in comment #34, I have no issues on 32-bit compilation, but it throws me some warnings on 64-bit compilation, I see the below. Is there a...
Hi all,
Thanks for your help, I was able to get things working. Posting the code snippet, which might help someone.
count is the number of data values found in the registry string.
int...
Hi all, reposting because of some typos
I have a string array with the following data
AAA BBB CCC DDD
and I want to copy all the above data except BBB to another string array. I have the below....
Hi all, another follow up question
I have a string array with the following data
AAA BBB CCC DDD
and I want to copy all the above data expect BB to another string array. I have the below....
Sorry, below is what I have.
int remBBB(char *inputarray[], char *outputarr[], int count)
{
printf ("In remBBB\n");
int x=0;
int count1=0;
char value[MAX_PATH]={NULL};
Hi
I have a string array with the following data
AAA BBB CCC DDD
and I want to copy all the above data expect BB to another string array. I have the below. inputarray is my source string array...
Hi all
Just a follow up to my earlier post, this is how tmp2 is being passed to RegSetValueEx
sprintf(value11, "ValueName");...
Hii all,
Below are the latest modifications to my code, I believe the data has be written to tmp2
using ptr1, but not sure whether I am returning things right, when I print the value of tmp2 its...
iMalc,
I actually tried the approach that you suggested. But when I used RegSetValueEx to write to the registry, it writes just the first data value, not sure why. Thanks.
Actually I was able to use the code snippet in comment #2, to retrieve data from the registry without the null terminators and have written it to params.
>>You may want to consider possibly using...
Hi all
Thanks for all your replies, RegSetValueEx requires that we have the multi string in the right format before writing it out, i.e. AAA\0BBB\0CCC\0\0 and I am having issues doing this.
...
Thanks mat, I will try it out.
Yes it was a cross posting. Sorry, But still do not understand the maxstrings part. In the below
lpData is the data value and lpcbData is the size of the buffer. We do not know the number of actual...
what does the above "for" statement mean, also what is maxstrings? Thanks buddy!
I meant for(;;)
Couple of questions on the above snippet. What does
"for(;;) " mean, Also whats should i pass in for maxstrings? Thanks.
Thanks for the quick reply
I have something like this, my registry value is AAA and its data values are XXX BBB
so it the registry it is like
AAA REG_MULTI_SZ XXX BBB
I believe when...
Hi
I need some help on how to read data values from a REG_MULTI_SZ windows registry string. I understand that each data value is null terminated and there is a another terminator in the end. Thanks.