Click here to Skip to main content
15,894,405 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to find tab order dynamically. Pin
Rajkumar R1-May-08 1:27
Rajkumar R1-May-08 1:27 
AnswerRe: How to find tab order dynamically. Pin
Blake Miller1-May-08 12:01
Blake Miller1-May-08 12:01 
QuestionHow can I know if a 3rd party unmanaged (e.g. cpp )dll is in debug or release ? Pin
Berlus30-Apr-08 23:38
Berlus30-Apr-08 23:38 
AnswerRe: How can I know if a 3rd party unmanaged (e.g. cpp )dll is in debug or release ? Pin
Chris Meech1-May-08 4:24
Chris Meech1-May-08 4:24 
Questionneed little help Pin
Asmo'a30-Apr-08 20:13
Asmo'a30-Apr-08 20:13 
AnswerRe: need little help Pin
Christian Graus30-Apr-08 20:19
protectorChristian Graus30-Apr-08 20:19 
QuestionIEToolbar related question? Pin
ritz123430-Apr-08 19:08
ritz123430-Apr-08 19:08 
QuestionRegQueryValueExNULL,RegSetValueExString,egQueryValueExString Pin
lahom30-Apr-08 18:59
lahom30-Apr-08 18:59 
hi i have an error link saying that :
Linking...
File_Commands.obj : error LNK2001: unresolved external symbol "int __cdecl RegSetValueExString(struct HKEY__ *,class CString,int,int,class CString,int)" (?RegSetValueExString@@YAHPAUHKEY__@@VCString@@HH1H@Z)
File_Commands.obj : error LNK2001: unresolved external symbol "int __cdecl RegQueryValueExString(struct HKEY__ *,class CString,int,int &,class CString,int &)" (?RegQueryValueExString@@YAHPAUHKEY__@@VCString@@HAAH12@Z)
File_Commands.obj : error LNK2001: unresolved external symbol "int __cdecl RegQueryValueExNULL(struct HKEY__ *,class CString,int,int &,int,int &)" (?RegQueryValueExNULL@@YAHPAUHKEY__@@VCString@@HAAHH2@Z)

//***************************************************************//
knowing that those functions are declared int header file like that:

// Registry API To Query A String Value.<br />
int RegQueryValueExString /* RegQueryValueExA */ (HKEY hKey, CString lpValueName, int lpReserved, int& lpType, CString lpData, int& lpcbData);	// "advapi32.dll"<br />
// Registry API To Query A NULL Value.<br />
int RegQueryValueExNULL /* RegQueryValueExA */ (HKEY hKey, CString lpValueName, int lpReserved, int& lpType, int lpData, int& lpcbData);	// "advapi32.dll"<br />
// Registry API To Set A String Value.<br />
int RegSetValueExString /* RegSetValueExA */ (HKEY hKey, CString lpValueName, int Reserved, int dwType, CString lpValue, int cbData);	// "advapi32.dll"<br />
<br />
//*************************************************************//<br />
and they are declared in the .cpp file as the following:<br />
<br />
// Query Registry Key For Value Type.<br />
	lRtn = RegQueryValueExNULL(hKey, "", 0, lRtype, 0, lCdata);<br />
sValue = CString(lCdata,0);<br />
<br />
	// Get Registry String Value.<br />
	lRtn = RegQueryValueExString(hKey, "", 0, lRtype, sValue, lCdata);<br />
<br />
// Set String Value.<br />
	lRtn = RegSetValueExString(hKey, "", 0, REG_SZ, sValue, lsize);

//**********************************************//
when i compile ......0 errors
but when runing 3errors
what should i do ?
thanks in advance


lahom
AnswerRe: RegQueryValueExNULL,RegSetValueExString,egQueryValueExString Pin
Rajkumar R30-Apr-08 20:57
Rajkumar R30-Apr-08 20:57 
QuestionRe: RegQueryValueExNULL,RegSetValueExString,egQueryValueExString Pin
David Crow1-May-08 3:00
David Crow1-May-08 3:00 
AnswerRe: RegQueryValueExNULL,RegSetValueExString,egQueryValueExString Pin
Rajkumar R1-May-08 3:42
Rajkumar R1-May-08 3:42 
AnswerRe: RegQueryValueExNULL,RegSetValueExString,egQueryValueExString Pin
Rajkumar R1-May-08 7:12
Rajkumar R1-May-08 7:12 
QuestionAnother question on "Good Practices" involving code file size... Pin
x87Bliss30-Apr-08 15:39
x87Bliss30-Apr-08 15:39 
AnswerRe: Another question on "Good Practices" involving code file size... Pin
Steve Echols30-Apr-08 18:49
Steve Echols30-Apr-08 18:49 
AnswerRe: Another question on "Good Practices" involving code file size... Pin
Nelek1-May-08 22:12
protectorNelek1-May-08 22:12 
GeneralRe: Another question on "Good Practices" involving code file size... Pin
x87Bliss2-May-08 0:00
x87Bliss2-May-08 0:00 
GeneralRe: Another question on "Good Practices" involving code file size... Pin
Rajkumar R2-May-08 1:24
Rajkumar R2-May-08 1:24 
GeneralRe: Another question on "Good Practices" involving code file size... Pin
x87Bliss2-May-08 13:37
x87Bliss2-May-08 13:37 
Questionsome pointers Pin
johnzfrebbies@30-Apr-08 11:43
johnzfrebbies@30-Apr-08 11:43 
AnswerRe: some pointers Pin
Christian Graus30-Apr-08 12:10
protectorChristian Graus30-Apr-08 12:10 
AnswerRe: some pointers Pin
Maximilien30-Apr-08 14:50
Maximilien30-Apr-08 14:50 
GeneralRe: some pointers Pin
johnzfrebbies@1-May-08 19:02
johnzfrebbies@1-May-08 19:02 
QuestionMoving CDaoRecordset to something else ??? for conversion From MS Jet to SQL Server Pin
Stevej30-Apr-08 3:53
Stevej30-Apr-08 3:53 
AnswerRe: Moving CDaoRecordset to something else ??? for conversion From MS Jet to SQL Server Pin
led mike30-Apr-08 4:16
led mike30-Apr-08 4:16 
GeneralRe: Moving CDaoRecordset to something else ??? for conversion From MS Jet to SQL Server Pin
Stevej30-Apr-08 5:22
Stevej30-Apr-08 5:22 

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.