Click here to Skip to main content
15,906,766 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: When to use Dialog for app and when to use normal Window ? Pin
JudyL_MD7-Mar-08 1:54
JudyL_MD7-Mar-08 1:54 
QuestionHow does RtlpNumberOf work? Pin
Glenn Sandoval6-Mar-08 12:29
Glenn Sandoval6-Mar-08 12:29 
GeneralRe: How does RtlpNumberOf work? Pin
Randor 6-Mar-08 12:48
professional Randor 6-Mar-08 12:48 
GeneralRe: How does RtlpNumberOf work? Pin
Mark Salsbery6-Mar-08 12:52
Mark Salsbery6-Mar-08 12:52 
GeneralRe: How does RtlpNumberOf work? Pin
Mark Salsbery6-Mar-08 13:14
Mark Salsbery6-Mar-08 13:14 
AnswerRe: How does RtlpNumberOf work? [modified] Pin
Rajkumar R7-Mar-08 3:24
Rajkumar R7-Mar-08 3:24 
GeneralRe: How does RtlpNumberOf work? Pin
Glenn Sandoval7-Mar-08 4:59
Glenn Sandoval7-Mar-08 4:59 
GeneralCustom action DLL for Windows Installer Pin
act_x6-Mar-08 11:15
act_x6-Mar-08 11:15 
I am trying to invoke a Win32 DLL from the Windows Installer to perform certain custom actions.

For this purpose I have exposed 1 API
MY_DLL_API UINT MyCustomActionLaunch(MSIHANDLE hMsiModule)
{
	
    MessageBoxW (NULL, L"MyCustomAction launch", L"MyCustomAction", MB_OK);	
    WCHAR msg [500] = {0};
    WCHAR vbuff [1024] = {0};
    DWORD vlen = 1024;
    UINT gp = MsiGetPropertyW(hMsiModule, L"ProgramFilesFolder", vbuff, &vlen);
	
	if(gp == ERROR_SUCCESS )
	{
		 if (wcslen(vbuff) <= 0)
		 {
			<big> MessageBoxW(NULL , L"Zero Bytes",L"MyCustomAction" , MB_OK);</big>		 }
		
		MessageBoxW(NULL, vbuff, L"MyCustomAction", MB_OK);    		

	}	else
	{
		MessageBoxW (NULL, L"Failure", L"MyCustomAction", MB_OK);
    
	}

	return -1;
}


I find that no bytes are being copied, where I am querying for a standard property .
This DLL is being developed in VC6.

Does anyone see anything wrong here ?

Engineering is the effort !

GeneralCrypto++ & FileSink newbie question Pin
soul7106-Mar-08 11:14
soul7106-Mar-08 11:14 
GeneralActiveX question Pin
AbbyIndian6-Mar-08 7:15
AbbyIndian6-Mar-08 7:15 
GeneralRe: ActiveX question Pin
Ernest Laurentin6-Mar-08 7:18
Ernest Laurentin6-Mar-08 7:18 
QuestionHow to place an ActiveX control on a dialog box of a DLL Pin
Deelip6-Mar-08 6:32
Deelip6-Mar-08 6:32 
AnswerRe: How to place an ActiveX control on a dialog box of a DLL Pin
Ernest Laurentin6-Mar-08 7:16
Ernest Laurentin6-Mar-08 7:16 
GeneralRe: How to place an ActiveX control on a dialog box of a DLL Pin
Deelip6-Mar-08 18:19
Deelip6-Mar-08 18:19 
GeneralDLL persistent storage "new" operator Pin
ForNow6-Mar-08 6:23
ForNow6-Mar-08 6:23 
QuestionRe: DLL persistent storage "new" operator Pin
CPallini6-Mar-08 21:32
mveCPallini6-Mar-08 21:32 
GeneralRe: DLL persistent storage "new" operator Pin
ForNow6-Mar-08 23:03
ForNow6-Mar-08 23:03 
GeneralRe: DLL persistent storage "new" operator Pin
CPallini6-Mar-08 23:11
mveCPallini6-Mar-08 23:11 
GeneralRe: DLL persistent storage "new" operator Pin
ForNow7-Mar-08 6:22
ForNow7-Mar-08 6:22 
GeneralObjects outside/free of the form Pin
codeinelogic6-Mar-08 5:43
codeinelogic6-Mar-08 5:43 
GeneralRe: Objects outside/free of the form Pin
led mike6-Mar-08 5:52
led mike6-Mar-08 5:52 
GeneralRe: Objects outside/free of the form Pin
CPallini6-Mar-08 5:52
mveCPallini6-Mar-08 5:52 
QuestionHow do I prevent multiple instances of my program Pin
cgb1436-Mar-08 5:28
cgb1436-Mar-08 5:28 
AnswerRe: How do I prevent multiple instances of my program Pin
Michael Schubert6-Mar-08 5:37
Michael Schubert6-Mar-08 5:37 
GeneralRe: How do I prevent multiple instances of my program Pin
cgb1436-Mar-08 5:59
cgb1436-Mar-08 5:59 

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.