Click here to Skip to main content
15,885,546 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: time counter Pin
FlyingDancer18-Dec-03 3:19
FlyingDancer18-Dec-03 3:19 
GeneralRe: time counter Pin
Anonymous19-Dec-03 3:43
Anonymous19-Dec-03 3:43 
QuestionHow can i Create a Button in the StatusBar???? Pin
tiaozi18-Dec-03 2:23
tiaozi18-Dec-03 2:23 
AnswerRe: How can i Create a Button in the StatusBar???? Pin
tiaozi18-Dec-03 13:22
tiaozi18-Dec-03 13:22 
AnswerRe: How can i Create a Button in the StatusBar???? Pin
Monty218-Dec-03 19:26
Monty218-Dec-03 19:26 
GeneralRe: How can i Create a Button in the StatusBar???? Pin
tiaozi18-Dec-03 19:51
tiaozi18-Dec-03 19:51 
GeneralRe: How can i Create a Button in the StatusBar???? Pin
Robert A. T. Káldy19-Dec-03 5:39
Robert A. T. Káldy19-Dec-03 5:39 
GeneralWin API: GetCommandLine Pin
Paul Riley18-Dec-03 1:44
Paul Riley18-Dec-03 1:44 
And another problem that has me completely floored:

In a Windows Installer DLL, it is necessary for me to get and adjust the commandline, write it into RunOnce and reboot the machine.

I've never used GetCommandLine before because I've always had access to the WinMain arguments, so it has never been necessary but in this case there is no other way to access it.

On Windows 9X, I have no problem. I use _tcscpy( szRunOnce, GetCommandLine() ); and szRunOnce is populated with "C:\WINDOWS\SYSTEM\msiexec.exe" /i "E:\MyFolder\MyInstaller.msi" /l*v C:\msilog.txt. That's exactly what I expect.

On Windows 2000, I get something else entirely - something like: C:\WINNT\System32\MsiExec.exe -Embedding 03E11881F81557A4CAAAA7C7B6ADDFBB

This is no use to me whatsoever, as far as I can see.

Is this Windows Installer doing this to me or GetCommandLine? If the latter then is there a good way of building the string that I'm really looking for?

Paul
GeneralWin API: RegSaveKey / GetShortPathName Pin
Paul Riley18-Dec-03 1:25
Paul Riley18-Dec-03 1:25 
GeneralRe: Win API: RegSaveKey / GetShortPathName Pin
Paul Riley18-Dec-03 5:17
Paul Riley18-Dec-03 5:17 
GeneralThe mysterious CDialogBar Pin
Rowan Seymour17-Dec-03 23:44
Rowan Seymour17-Dec-03 23:44 
GeneralRe: The mysterious CDialogBar Pin
Monty218-Dec-03 0:14
Monty218-Dec-03 0:14 
GeneralRe: The mysterious CDialogBar Pin
Rowan Seymour18-Dec-03 0:30
Rowan Seymour18-Dec-03 0:30 
GeneralRe: The mysterious CDialogBar Pin
Monty218-Dec-03 0:41
Monty218-Dec-03 0:41 
GeneralRe: The mysterious CDialogBar Pin
Rowan Seymour9-Jan-04 1:05
Rowan Seymour9-Jan-04 1:05 
Generalplease help C++ and video.. Pin
ahmed_html17-Dec-03 23:34
ahmed_html17-Dec-03 23:34 
GeneralRe: please help C++ and video.. Pin
Rowan Seymour17-Dec-03 23:51
Rowan Seymour17-Dec-03 23:51 
GeneralRe: please help C++ and video.. Pin
Monty218-Dec-03 0:44
Monty218-Dec-03 0:44 
GeneralRe: please help C++ and video.. Pin
ahmed_html18-Dec-03 7:14
ahmed_html18-Dec-03 7:14 
Generalint limits Pin
Jerome Conus17-Dec-03 23:16
Jerome Conus17-Dec-03 23:16 
GeneralRe: int limits Pin
Prakash Nadar17-Dec-03 23:29
Prakash Nadar17-Dec-03 23:29 
GeneralRe: int limits Pin
Jerome Conus17-Dec-03 23:35
Jerome Conus17-Dec-03 23:35 
GeneralRe: int limits Pin
Prakash Nadar18-Dec-03 16:04
Prakash Nadar18-Dec-03 16:04 
GeneralRe: int limits Pin
Rowan Seymour17-Dec-03 23:53
Rowan Seymour17-Dec-03 23:53 
GeneralRe: int limits Pin
Jerome Conus18-Dec-03 0:05
Jerome Conus18-Dec-03 0:05 

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.