Click here to Skip to main content
16,006,475 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionReading a bitmap Pin
Waldermort29-Dec-06 21:46
Waldermort29-Dec-06 21:46 
AnswerRe: Reading a bitmap Pin
CPallini29-Dec-06 23:12
mveCPallini29-Dec-06 23:12 
QuestionHandling the close(X) button Pin
Taruni29-Dec-06 21:11
Taruni29-Dec-06 21:11 
AnswerRe: Handling the close(X) button Pin
Michael Dunn29-Dec-06 21:30
sitebuilderMichael Dunn29-Dec-06 21:30 
QuestionHow to resize client are? Pin
hanlei000000000929-Dec-06 18:22
hanlei000000000929-Dec-06 18:22 
AnswerRe: How to resize client are? Pin
Hadi Dayvary29-Dec-06 18:45
professionalHadi Dayvary29-Dec-06 18:45 
GeneralSetWindowPos(), that OK! Thank you Pin
hanlei000000000930-Dec-06 14:15
hanlei000000000930-Dec-06 14:15 
QuestionIs any body help in DRM(Digital Rights Mgt) ,pDRMWriter->GenerateKeyID(w_KeyID,&d_KeyID); return S_FAIL Pin
amitmistry_petlad 29-Dec-06 17:56
amitmistry_petlad 29-Dec-06 17:56 
Dear all,
is any body help me in DRM?.
Please code Following.

<br />
WCHAR *Encoder::GenerateKeyID()<br />
{<br />
	HRESULT hr;<br />
	IWMWriter *m_pWriter = NULL;<br />
	hr = WMCreateWriter( NULL, &m_pWriter ); //hr=S_OK<br />
	IWMDRMWriter *pDRMWriter = NULL;<br />
hr = m_pWriter->QueryInterface(IID_IWMDRMWriter,(void **) &pDRMWriter); //hr=S_OK<br />
	DWORD d_KeyID = NULL;<br />
	hr = pDRMWriter->GenerateKeyID(NULL,&d_KeyID);//hr=S_OK<br />
	WCHAR *w_KeyID = new WCHAR[d_KeyID];<br />
	//w_KeyID=NULL;<br />
	ZeroMemory(w_KeyID,sizeof(WCHAR)* d_KeyID);<br />
hr = pDRMWriter->GenerateKeyID(w_KeyID,&d_KeyID); //return hr=S_FAIL<br />
	return w_KeyID;<br />
}<br />

i caught this error @ debugging and due to this the file remains un protected.
if this will success then and then the file will be protected.
so please help!!
thank you


amit mistry
QuestionGetDIBits() works incorrectly with printer's DC Pin
Yuriy200329-Dec-06 15:22
Yuriy200329-Dec-06 15:22 
AnswerRe: GetDIBits() works incorrectly with printer's DC Pin
Mark Salsbery30-Dec-06 8:06
Mark Salsbery30-Dec-06 8:06 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Yuriy200330-Dec-06 11:44
Yuriy200330-Dec-06 11:44 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Mark Salsbery30-Dec-06 11:59
Mark Salsbery30-Dec-06 11:59 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Yuriy200330-Dec-06 12:43
Yuriy200330-Dec-06 12:43 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Yuriy20031-Jan-07 10:06
Yuriy20031-Jan-07 10:06 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Mark Salsbery1-Jan-07 15:34
Mark Salsbery1-Jan-07 15:34 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Yuriy20032-Jan-07 11:08
Yuriy20032-Jan-07 11:08 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Mark Salsbery2-Jan-07 11:28
Mark Salsbery2-Jan-07 11:28 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Yuriy20032-Jan-07 12:39
Yuriy20032-Jan-07 12:39 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Mark Salsbery2-Jan-07 12:51
Mark Salsbery2-Jan-07 12:51 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Yuriy20032-Jan-07 13:03
Yuriy20032-Jan-07 13:03 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Mark Salsbery2-Jan-07 13:46
Mark Salsbery2-Jan-07 13:46 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Yuriy20032-Jan-07 15:25
Yuriy20032-Jan-07 15:25 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Mark Salsbery2-Jan-07 15:51
Mark Salsbery2-Jan-07 15:51 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Yuriy20032-Jan-07 18:20
Yuriy20032-Jan-07 18:20 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Mark Salsbery3-Jan-07 4:41
Mark Salsbery3-Jan-07 4:41 

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.