|
Hadi Dayvary wrote: How I can draw animation on the desktop window (like Sheep or snow or MSAgent program)?
http://www.codeproject.com/com/msagent.asp[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Thank you
I don't wanna use MSAgent, I want to write same program, an Agent editor and a dialog for showing it.
|
|
|
|
|
hi,
i have a CTreeCtrl derived class CTreeCtrlEx. in it i have the OnSelchanged().
My Msg loop:
ON_NOTIFY_REFLECT(TVN_SELCHANGED, OnSelchanged)
my problem is that the OnSelchanged doesnt fire sometimes!!
What is causing this? Any ideas? Thnx in advance...
|
|
|
|
|
Hi
I have a _bstr_t object and I need to convert it into a string and use it as an argument for cout. How do I convert it?? Please provide me some example for this conversion
-- modified at 8:21 Tuesday 23rd May, 2006
|
|
|
|
|
koumodaki wrote: I have a _bstr_t object and I need to convert it into a string and use it as an argument for cout. How do I convert it?? Please provide me some example for this conversion
cast _bstr_t object to char*
_bstr_t g("alok");
std::cout<<(char*)g;
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
|
C++
Hi i have a function FTPcommand(CString command)
FTP
i want to give the command "put filename"
but because the filename got spaces (An Example.mp3)
i have to give the command "put "An Example.mp3""
C++
(Variable CString Filetitle = "An Example.mp3")
I type FTPcommand("put """+Filetitle);
I think i am wrong.If i am how i can type it so it would be correct?
|
|
|
|
|
|
Immunity18 wrote: I type FTPcommand("put """+Filetitle);
CString cmd;
cmd.Format("put \"%s\"",Filetitle);
FTPCommand(cmd)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
I didn't clearly understood your question but if you want to use a " character inside a string, you can use '\"' as an escape sequence:
char* szString = "A string with a \" in it";
This will give you that if you print it:
A string with a " in it
Cédric Moonen
Software developer
Charting control
|
|
|
|
|
Cedric Moonen wrote: didn't clearly understood your question but if you want to use a " character inside a string, you can use '\"' as an escape sequence:
You lose the race today; don't strain your nose much
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
ThatsAlok wrote: You lose the race today; don't strain your nose much
I have a cold, so it's sticking to the keyboard
Cédric Moonen
Software developer
Charting control
|
|
|
|
|
Cédric Moonen wrote: I have a cold, so it's sticking to the keyboard
Be careful cedric;)
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
|
toxcct wrote: you lost it too
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
I have the following code in MFC but it says type cant be converted from Varitant to Class1
void VRMControl::SetVariant(VARIANT VariantParam)
{
Cls::Class1 *obj = (Cls::Class1) VariantParam;
}
Class1 is an user defined class; how can i convert this type and i need access the members of Class1 thro VariantParam. While calling im sending the object as Cls::Class1 type.
|
|
|
|
|
sivaprakashshanmugam wrote: void VRMControl::SetVariant(VARIANT VariantParam){Cls::Class1 *obj = (Cls::Class1) VariantParam;}
Cls::Class1 *obj = (Cls::Class1*)& VariantParam;
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
A VARIANT is a big struct, casting the VARIANT itself is meaningless (even if you fix the cast/assignment to obj ). You need to know which field of the VARIANT the caller set and read that field.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|
|
HiAll,
Can anyone tell me how to remove the "Create Shortcut" context menu from a particular Desktop icon?
Thanks and Regards,
Anil
|
|
|
|
|
|
how to get user name from kerberos ticket obtained from server using SSPI API
|
|
|
|
|
i would like to find a free source code in c# language for detecting hidden messages of EZstego algorithm
|
|
|
|
|
nailahazem wrote: i would like to find a free source code in c# language for detecting hidden messages of EZstego algorithm
For C# go HERE[^], any way whydon't you try googling on same subject!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
|
How can i load bitmap in InitInstance() function?i am trying to create a window that looks like a bit map useing setwindorrgn() but in InitInsatnce function LoadImage,LoadBitmap are not working?give me some suggestions to do this
BOOL CFlyWndApp::InitInstance()
{
CMainFrame* pFrame = new CMainFrame;
m_pMainWnd = pFrame;
pFrame->LoadFrame(IDR_MAINFRAME,
WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE, NULL,
NULL);
HBITMAP hBmp=(HBITMAP)LoadImage(m_hInstance,"BFLY1.bmp",IMAGE_BITMAP,0,0,LR_DEFAULTSIZE|LR_LOADFROMFILE|LR_CREATEDIBSECTION);
if(hBmp==NULL)
return TRUE;
/*here bitmap is not loading*/
CBitmap bmp;
bmp.Attach(hBmp);
BITMAP bm;
bmp.GetBitmap(&bm);
int bh=bm.bmHeight;
int bw=bm.bmWidth;
CDC dcMem;
CRgn rgnA;CBrush br;
br.CreatePatternBrush(&bmp);
rgnA.CreateRectRgn(0,0,bh,bw);
dcMem.FillRgn(&rgnA,&br);
pFrame->SetWindowRgn(rgnA,TRUE);
pFrame->ShowWindow(SW_SHOW);
pFrame->UpdateWindow();
return TRUE;
}
E-Ramu
|
|
|
|