|
nah1337 wrote: classfunction(pParam->crypto_buf);
Have you tried:
classfunction(((random_class *) pParam)->crypto_buf); "One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
wow now i can compile it thnx for your help, i hadnt tryed it and this shows my knowledge of c++ is still weak much to learn.
|
|
|
|
|
How to check if flash Active x is already installed in my xp and win7 machine?
I want c/cpp/mfc code to check it.
Is it possible to check it in non-admin account ?
Thanks,
Rahul
|
|
|
|
|
In MFC application . right click of dialog insert activex Control then all list of activex control will show.
|
|
|
|
|
I want to check it through some code
If it is not there then I will register it.
|
|
|
|
|
Hi I give some code it return all list of installed Active X control. You can put condition what u want to check ActiveX control.
CoInitialize (NULL);
ICatInformation *pCatInfo=NULL;
HRESULT hr=CoCreateInstance (CLSID_StdComponentCategoriesMgr ,
NULL,
CLSCTX_INPROC_SERVER,
IID_ICatInformation ,
(void **)&pCatInfo);
pCatInfo->AddRef ();
IEnumGUID *pEnumGUID=NULL;
CATID pcatidImpl[1];
CATID pcatidReqd[1];
pcatidImpl[0]=CATID_Control;
pCatInfo->EnumClassesOfCategories (1,
pcatidImpl,
0,
pcatidReqd ,
&pEnumGUID);
CLSID clsid;
while( (hr= pEnumGUID->Next( 1, &clsid, NULL ))==S_OK )
{
BSTR bstrClassName;
OleRegGetUserType (clsid,USERCLASSTYPE_FULL,&bstrClassName);
CString strControlName(bstrClassName);
m_list1.AddString (strControlName);
}
pCatInfo->Release ();
CoUninitialize ();
|
|
|
|
|
Thanks That will help me in future work.
|
|
|
|
|
if you want to check then you can used two option.
1. regsrvr32.exe Path of Activexcontrol trough command line.
or
2. Firstly use load library function after that getprocaddress function.
|
|
|
|
|
You could check if the following registry key exists -
HKEY_CLASSES_ROOT\CLSID\{D27CDB6E-AE6D-11cf-96B8-444553540000}
|
|
|
|
|
Thanks! That worked.
|
|
|
|
|
Is there any way to change the width of CMFCRibbonButton or CMFCRibbonLabel
|
|
|
|
|
I am new in socket programming . I made a simple chat client server in sdk(not mfc) . but my GUI hangs
.how can I solve my problem .Trioum
|
|
|
|
|
There can be many reasons. How can we assume things without knowing the details of it?!
This guide might help you if you're starting out with Network programming: http://beej.us/guide/bgnet/[^]
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
You probably have some blocking socket calls in your UI thread.
Some of the blocking socket calls are accept , recv etc.
You will need to create separate threads in which you can put these blocking calls.
|
|
|
|
|
Hi all,
I want to change colour of my edit box on button click ...... how can i do this...
Thanks in advance
|
|
|
|
|
Try this...
SendMessage(m_hWnd, EM_SETBKGNDCOLOR, 0, RGB(0, 255, 255)
|
|
|
|
|
Handle the WM_CTLCOLOREDIT message in the parent dialog and return the necessary colored brush.
Since you want to do this on a button click, in the button click event handler, set a flag and then call UpdateWindow for the edit control. In the WM_CTLCOLOREDIT message handler you can check this flag before returning the colored brush.
|
|
|
|
|
Hi
How we code for combination of keys like SHIFT+F3#sanroop#
|
|
|
|
|
Depends on the program. Are you using a window? If so, then when you get key up/down (which ever is more appropriate) event for F3, use the following code to test if the shift key is up or down:
if (GetKeyState(VK_SHIFT) < 0) ;
Notes:
VK_SHIFT is equal to 16.
The test is to see if the high order bit is set.
There are other ways of doing this, but you need to give more information so that we can determine what would work best.
|
|
|
|
|
If it were to be done system-wide, you'll need to install a keyboard hook. But you *do* have to provide more details. Please read the how to get an answer to your question sticky on top of the first page of this forum.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
For a system wide hot key he can also use RegisterHotKey[^]. > The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
Thanks, but I'm not the one who needs to know it. It may have helped if you had replied to the OP.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
Oups, sorry, yeah, i even wanted to do that but by the time i submitted it to you i completely forgot about it. Thanks for reminding me. > The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
For a system-wide hotkey you can use RegisterHotKey[^]. > The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
I have a problem in my program that I don't know how to even begin to track down. Please help!
It's an MFC program compiled in Visual Studio 2008 for WinXP and above (WinVer=0x0501). It runs fine for everyone who has tested it except one person who is running WinXP SP3. He's tried it on two different computers running WinXP SP3 and it crashes on both. I'm pretty sure he's the only one with SP3. I have XP SP2 here and it runs fine.
It crashes at the Windows entry point - the call to _tWinMain in crt0.c (which I know through the crash.dmp file he sent me):
mainret = _tWinMain( (HINSTANCE)&__ImageBase,<br />
NULL,<br />
lpszCommandLine,<br />
StartupInfo.dwFlags & STARTF_USESHOWWINDOW<br />
? StartupInfo.wShowWindow<br />
: SW_SHOWDEFAULT<br />
);<br />
<br />
<br />
The error message says: "Unhandled exception at 0x0041505e (myprog.exe) in CRASH.DMP: 0xC0000005: Access violation reading location 0x00000004."
I don't know how to even begin to track down a problem like this, especially when it appears to be platform-specific. Could someone give me some guidance on how to go about this?
Thanks!!!!
|
|
|
|