Click here to Skip to main content
15,895,667 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: HOWTO: export a string table from a regular Windows DLL? Pin
Michael Dunn18-Dec-06 7:17
sitebuilderMichael Dunn18-Dec-06 7:17 
QuestionCRecordset::Edit(); [modified] Pin
Bravoone_200617-Dec-06 22:23
Bravoone_200617-Dec-06 22:23 
AnswerRe: please help me ! Pin
G Haranadh18-Dec-06 0:22
G Haranadh18-Dec-06 0:22 
AnswerRe: CRecordset::Edit(); Pin
David Crow18-Dec-06 7:21
David Crow18-Dec-06 7:21 
QuestionMulti-language text Pin
himuskanhere17-Dec-06 22:01
himuskanhere17-Dec-06 22:01 
QuestionRegQueryValueEx Problem! Pin
bosfan17-Dec-06 21:59
bosfan17-Dec-06 21:59 
QuestionRe: RegQueryValueEx Problem! Pin
prasad_som17-Dec-06 22:04
prasad_som17-Dec-06 22:04 
AnswerRe: RegQueryValueEx Problem! [modified] Pin
bosfan18-Dec-06 0:57
bosfan18-Dec-06 0:57 
Hello prasad,
they are no errors to shown, nothing, i say, in debug version works, not in release, ok here is my code:

<code>
TCHAR acData[10000];
DWORD type = 0;
DWORD SizeOfBuffer;
if (ERROR_SUCCESS != RegQueryValueEx(hKey, csValueName, NULL, &type, (PUCHAR)acData, &SizeOfBuffer))
{

	RegCloseKey(hKey);
	AfxMessageBox(L"Error reading registry!");
	return ;
}


modify:
i change that code to:

<code>

TCHAR acData[10000];
unsigned char acChar[10000];
DWORD type = 0;
DWORD SizeOfBuffer;
if (ERROR_SUCCESS != RegQueryValueEx(hKey, csValueName, NULL, &type, acChar, &SizeOfBuffer))
{

	RegCloseKey(hKey);
	AfxMessageBox(L"Error reading registry!");
	return ; 
}
wcscpy(acData, ( const TCHAR*) acChar);

and now i have that keyvalue from the registry...
I dont know why that func dont work with TCHAR array, or how to call this func with an TCHAR array?


regards
break;





-- modified at 7:11 Monday 18th December, 2006
AnswerRe: RegQueryValueEx Problem! Pin
prasad_som18-Dec-06 2:17
prasad_som18-Dec-06 2:17 
GeneralRe: RegQueryValueEx Problem! Pin
bosfan18-Dec-06 3:04
bosfan18-Dec-06 3:04 
GeneralRe: RegQueryValueEx Problem! Pin
krmed18-Dec-06 2:53
krmed18-Dec-06 2:53 
AnswerRe: RegQueryValueEx Problem! Pin
Hamid_RT18-Dec-06 0:05
Hamid_RT18-Dec-06 0:05 
AnswerRe: RegQueryValueEx Problem! Pin
kakan18-Dec-06 0:16
professionalkakan18-Dec-06 0:16 
QuestionUnhandled execption in ariel.exe(APIOCX):0xC0000005 :Access violation Pin
With_problem17-Dec-06 21:42
With_problem17-Dec-06 21:42 
Questionconverting unsigned char array to bstr Pin
dekta17-Dec-06 20:54
dekta17-Dec-06 20:54 
AnswerRe: converting unsigned char array to bstr Pin
CPallini17-Dec-06 23:02
mveCPallini17-Dec-06 23:02 
GeneralREpost : converting unsigned char array to bstr Pin
dekta18-Dec-06 16:08
dekta18-Dec-06 16:08 
GeneralRe: REpost : converting unsigned char array to bstr Pin
CPallini18-Dec-06 23:57
mveCPallini18-Dec-06 23:57 
Questiondetecting the FTP connection break down. Pin
vijay_aroli17-Dec-06 20:31
vijay_aroli17-Dec-06 20:31 
GeneralRe: detecting the FTP connection break down. Pin
Mila02517-Dec-06 20:40
Mila02517-Dec-06 20:40 
GeneralRe: detecting the FTP connection break down. Pin
vijay_aroli17-Dec-06 20:52
vijay_aroli17-Dec-06 20:52 
GeneralRe: detecting the FTP connection break down. Pin
Mila02517-Dec-06 21:03
Mila02517-Dec-06 21:03 
GeneralRe: detecting the FTP connection break down. Pin
vijay_aroli17-Dec-06 21:31
vijay_aroli17-Dec-06 21:31 
Questionwhat is best compiler Pin
siaswar17-Dec-06 20:29
siaswar17-Dec-06 20:29 
AnswerRe: what is best compiler Pin
Cedric Moonen17-Dec-06 20:48
Cedric Moonen17-Dec-06 20:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.