Click here to Skip to main content
15,890,282 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: ATL/WTL vs MFC Pin
Tim Smith19-Mar-03 2:32
Tim Smith19-Mar-03 2:32 
QuestionHow to create a new HTML Doc (from scratch). Pin
Joan M13-Mar-03 4:28
professionalJoan M13-Mar-03 4:28 
AnswerRe: How to create a new HTML Doc (from scratch). Pin
Neville Franks15-Mar-03 0:51
Neville Franks15-Mar-03 0:51 
GeneralRe: How to create a new HTML Doc (from scratch). Pin
Nitron25-Mar-03 13:26
Nitron25-Mar-03 13:26 
GeneralRe: How to create a new HTML Doc (from scratch). Pin
Neville Franks25-Mar-03 13:57
Neville Franks25-Mar-03 13:57 
GeneralActive Scripting Question Pin
Brian van der Beek9-Mar-03 4:19
Brian van der Beek9-Mar-03 4:19 
GeneralRe: Active Scripting Question Pin
Brian Shifrin10-Mar-03 9:25
Brian Shifrin10-Mar-03 9:25 
GeneralRegistry with WIN32_WINNT 0x0501 Pin
Tommy2k8-Mar-03 13:56
Tommy2k8-Mar-03 13:56 
When i compile my app for non XP systems, my registry functions all work fine. When i compilthem with WIN32_WINNT 0x0501 and ATLtheme.h included, it messes up. The only real difference i note is that the paths in the non-xp version are MS-DOS like (C:\win~1).In the XP version nothing get's written to the register at all. What should i do to make it work for both versions of my app?

this is the code i use:
<br />
char tFileName[MAX_PATH];<br />
CAtlString  tAtlFileName,tAtlFileName2;<br />
<br />
HKEY hKey;<br />
RegOpenKeyEx(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Run",0 , KEY_QUERY_VALUE, &hKey);<br />
	<br />
HMODULE modhandle = GetModuleHandle(NULL);<br />
GetModuleFileName(modhandle,tFileName,MAX_PATH);<br />
tAtlFileName = tFileName;<br />
tAtlFileName2 = "\"" + tAtlFileName + "\"" + " /background";<br />
strcpy(tFileName,tAtlFileName2);<br />
	<br />
RegSetValueEx(hKey, "Tim", 0, REG_SZ, (CONST BYTE *) tFileName, (int)strlen(tFileName));<br />
<br />
MessageBox(0,tFileName,"aan",0);<br />

Questionhow to pass a pointer in com? Pin
logo2age6-Mar-03 19:00
logo2age6-Mar-03 19:00 
AnswerRe: how to pass a pointer in com? Pin
Christian Graus6-Mar-03 19:14
protectorChristian Graus6-Mar-03 19:14 
AnswerRe: how to pass a pointer in com? Pin
Anders Molin7-Mar-03 13:37
professionalAnders Molin7-Mar-03 13:37 
AnswerRe: how to pass a pointer in com? Pin
Jörgen Sigvardsson16-Mar-03 9:35
Jörgen Sigvardsson16-Mar-03 9:35 
GeneralTransparent setting problem Pin
Jared McIntyre6-Mar-03 17:31
Jared McIntyre6-Mar-03 17:31 
GeneralRe: Transparent setting problem Pin
Michael Dunn6-Mar-03 17:45
sitebuilderMichael Dunn6-Mar-03 17:45 
GeneralRe: Transparent setting problem Pin
Jared McIntyre6-Mar-03 17:58
Jared McIntyre6-Mar-03 17:58 
GeneralATL7 control versioning Pin
Rob Caldecott5-Mar-03 7:33
Rob Caldecott5-Mar-03 7:33 
GeneralRe: ATL7 control versioning Pin
Joseph Dempsey5-Mar-03 9:09
Joseph Dempsey5-Mar-03 9:09 
GeneralATL7 download Pin
Rob Caldecott4-Mar-03 6:23
Rob Caldecott4-Mar-03 6:23 
GeneralRe: ATL7 download Pin
Tim Smith4-Mar-03 6:55
Tim Smith4-Mar-03 6:55 
Generalclipboard and CImage Pin
luedi3-Mar-03 22:39
luedi3-Mar-03 22:39 
GeneralProperty Sheets in WTL Pin
Tommy2k2-Mar-03 23:51
Tommy2k2-Mar-03 23:51 
GeneralRe: Property Sheets in WTL Pin
Tim Smith3-Mar-03 2:28
Tim Smith3-Mar-03 2:28 
GeneralHide/Show SplitPanes in WTL Pin
Tommy2k28-Feb-03 8:14
Tommy2k28-Feb-03 8:14 
GeneralRe: Hide/Show SplitPanes in WTL Pin
Michael Dunn28-Feb-03 9:57
sitebuilderMichael Dunn28-Feb-03 9:57 
GeneralVectors and arrays Pin
lpvoid27-Feb-03 11:07
lpvoid27-Feb-03 11:07 

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.