Click here to Skip to main content
15,912,069 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionUrgent : Dialog box size? Pin
sam_psycho11-Feb-09 1:42
sam_psycho11-Feb-09 1:42 
AnswerRe: Urgent : Dialog box size? Pin
Stuart Dootson11-Feb-09 2:02
professionalStuart Dootson11-Feb-09 2:02 
GeneralRe: Urgent ? Pin
CPallini11-Feb-09 2:20
mveCPallini11-Feb-09 2:20 
GeneralRe: Urgent ? Pin
sam_psycho11-Feb-09 3:24
sam_psycho11-Feb-09 3:24 
JokeRe: Urgent ? Pin
«_Superman_»11-Feb-09 15:43
professional«_Superman_»11-Feb-09 15:43 
QuestionServer/Client Development Pin
raghu valluri11-Feb-09 0:30
raghu valluri11-Feb-09 0:30 
AnswerRe: Server/Client Development Pin
Stuart Dootson11-Feb-09 0:59
professionalStuart Dootson11-Feb-09 0:59 
QuestionChecking ActiveX registration programmatically! Pin
Mohammad Khodaea11-Feb-09 0:27
Mohammad Khodaea11-Feb-09 0:27 
Hi friends,
I would like to check whether my Active-X is registered or not.
If it isn't registered, so I'll register it; else I play my flash file.
But once I personally unregister the Active-X through "regsvr32 /u ....", CoCreateInstance function returns "S_OK" and it means it has registered successfully.
I would like to know is my way to recognize Active-X registration is correct or not and why it never
returns false when it hasn't registered before?

This is my code:

CLSID clsid;
LPUNKNOWN pUnkCtrl;
HRESULT hr = CLSIDFromString(OLESTR("{D27CDB6E-AE6D-11cf-96B8-444553540000}"), &clsid);
hr = CoCreateInstance(clsid, NULL, CLSCTX_ALL, IID_IUnknown, (void**)&pUnkCtrl);

if (SUCCEEDED(hr))
{
// The Active-X has been registered already.
AfxMessageBox("The Active-X has been registered already!");

// Play the Flash-File
}
// The Active-X does not register yet. It must be registered first.
else
{
//AfxMessageBox("The Active-X hasn't been registered yet!");
}
AnswerRe: Checking ActiveX registration programmatically! Pin
_AnsHUMAN_ 11-Feb-09 0:44
_AnsHUMAN_ 11-Feb-09 0:44 
AnswerRe: Checking ActiveX registration programmatically! Pin
Stuart Dootson11-Feb-09 0:53
professionalStuart Dootson11-Feb-09 0:53 
QuestionChild window problem Pin
Abhijit D. Babar11-Feb-09 0:12
Abhijit D. Babar11-Feb-09 0:12 
QuestionHow to build the application in release mode Pin
Member 465174110-Feb-09 23:29
Member 465174110-Feb-09 23:29 
AnswerRe: How to build the application in release mode Pin
Cedric Moonen10-Feb-09 23:54
Cedric Moonen10-Feb-09 23:54 
QuestionHow to find if a process has active UI ? Pin
dharani10-Feb-09 23:25
dharani10-Feb-09 23:25 
AnswerRe: How to find if a process has active UI ? Pin
«_Superman_»10-Feb-09 23:41
professional«_Superman_»10-Feb-09 23:41 
GeneralRe: How to find if a process has active UI ? Pin
dharani10-Feb-09 23:58
dharani10-Feb-09 23:58 
GeneralRe: How to find if a process has active UI ? Pin
«_Superman_»10-Feb-09 23:59
professional«_Superman_»10-Feb-09 23:59 
GeneralRe: How to find if a process has active UI ? Pin
David Crow11-Feb-09 4:34
David Crow11-Feb-09 4:34 
AnswerRe: How to find if a process has active UI ? Pin
Stuart Dootson11-Feb-09 0:43
professionalStuart Dootson11-Feb-09 0:43 
QuestionKilling exe after running Pin
pooja_friends10-Feb-09 20:47
pooja_friends10-Feb-09 20:47 
AnswerRe: Killing exe after running Pin
«_Superman_»10-Feb-09 20:52
professional«_Superman_»10-Feb-09 20:52 
GeneralRe: Killing exe after running Pin
pooja_friends10-Feb-09 23:33
pooja_friends10-Feb-09 23:33 
GeneralRe: Killing exe after running Pin
«_Superman_»10-Feb-09 23:43
professional«_Superman_»10-Feb-09 23:43 
GeneralRe: Killing exe after running Pin
David Crow11-Feb-09 4:37
David Crow11-Feb-09 4:37 
AnswerRe: Killing exe after running [modified] Pin
Sarath C10-Feb-09 22:42
Sarath C10-Feb-09 22:42 

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.