|
I don't use CArray in the cpp file.I used it in some other class,and I include the header file.But there is no error when i compile that class.
dix
|
|
|
|
|
Its seems that the Object the CArray stores gaves the errors. Has it an sizeof-Operator?
The memcpy call you find as described "afxtempl.h" (373).
Or show little bit of code.
Try this @ home. (B&B)
|
|
|
|
|
Thank you for your reply.
The CArray is used in another class and I have used that class many times,no problem.
Could it be the problem of VC,or the settings of my project,
or "stdafx.h",or namespace?
I really need your help.
|
|
|
|
|
My experience is reading the error message carefully is 80% of resolving the problem.
Memcpy (ofCArray) has a problem with copying the data->
What is in your Array?
Try this @ home. (B&B)
|
|
|
|
|
I don't use the Array.It is used in some other class.I don't know what's in it.
But that class has been compiles , and no error.
|
|
|
|
|
Now read that you use different namespaces. Have a lot of fun.
Avoid this.
Try this @ home. (B&B)
|
|
|
|
|
Anybody Knows how to hide an application From Task Manager?
VikramS
|
|
|
|
|
you can register your app as services in win9x
I am seeking...
For what?
Why did you ask me for what? I don't know!
|
|
|
|
|
I have played a little bit with compiling my program and found out, that
unused functions are regardles if i am using them or not included in output. That is strange, i thought that everything that is not used in program is excluded from output. Anyone knows why and (if possible) how to fix that?
|
|
|
|
|
|
plz some one help me out,
the two methods that set up information abt a button on a toolbar (CToolBarCtrl) are not working properly.
1) GetButtonInfo
2) SetButtonInfo
i am using the following code and these functions are returning false always.
bool MYToolbar::Create(CRect rcClientParent, CWnd *pWndParent)
{
if (!CToolBarCtrl::Create(DEFAULT_TOOLBAR_STYLE , rcClientParent, pWndParent, IDR_IETOOLBAR))
return false;
SetExtendedStyle(TBSTYLE_EX_DRAWDDARROWS | TBSTYLE_EX_MIXEDBUTTONS);
BOOL res;
SendMessage(TB_SETEXTENDEDSTYLE, 0,TBSTYLE_EX_DRAWDDARROWS); // set style to draw arrows for drop down buttons
SendMessage(TB_SETEXTENDEDSTYLE, 0,TBSTYLE_EX_MIXEDBUTTONS);
CSize size;
size.cx=200;
size.cy= 20;
res = SetButtonSize(size);
if(!res)
{
MessageBox("no sizing of buttons");
}
if (AddBitmap(4, IDR_IETOOLBAR) == -1)
{
DWORD dwError = ::GetLastError();
return false;
}
TBBUTTON tbs[/*NUM_TOOLBAR_BUTTONS*/4];
for (int i = 0; i < /*NUM_TOOLBAR_BUTTONS*/4; i++)
{
tbs[i].dwData = 0;
tbs[i].fsState = TBSTATE_ENABLED;
tbs[i].fsStyle = TBSTYLE_BUTTON;
tbs[i].iBitmap = i;//i;
tbs[i].idCommand = ID_BTN_MSGTYPE + i;
tbs[i].iString = i;
}
tbs[0].fsStyle = TBSTYLE_AUTOSIZE|BTNS_WHOLEDROPDOWN|TBSTYLE_BUTTON|TBSTATE_ENABLED;
tbs[1].fsStyle = TBSTYLE_AUTOSIZE|TBSTYLE_DROPDOWN|TBSTYLE_BUTTON|TBSTATE_ENABLED;
if (!AddButtons(4, tbs))
return false;
LPTBBUTTONINFO tbi= new TBBUTTONINFO;
int res=GetButtonInfo(0,tbi);
tbi->cbSize = sizeof(TBBUTTONINFO);
tbi->dwMask = TBIF_SIZE;
tbi->cx = 20;
res=mytb.SetButtonInfo(0,tbi);
return true;
}
ur help will make my day.
Farrukh
|
|
|
|
|
Farrukh4u wrote:
nt res=GetButtonInfo(0,tbi);
The 0 should be your Button ID number, or a ID_MYBUTTONSOMETHING .
Are you sure that 0 is the correct ID of your button ?
Farrukh4u wrote:
tbi->dwMask = TBIF_SIZE
Instead of this, try :
tbi->dwMask |= TBIF_SIZE
because maybe you're missing some flags (by doing this, you just add the TBIF_SIZE flag to the ones retrievd by calling GetButtonInfo .
~RaGE();
|
|
|
|
|
I want to create a interface like EXCEL.
But I donnot know How to create : | | 1 | 2 | 3 | 4
| a |
| b | <---This row?
| c |
Sorry For My Poor English
Thank YOU
|
|
|
|
|
|
Hello!
I have a COM (ATL) object IDataProvider which used to provide data to some services. This object can be used from other processes.
Also I have a C++ object which contains data and I need to attach this object to IDataProvider object somehow.
eg:
class CDataContainer
{
...
};
class ATL_NO_VTABLE CDataProvider :
public CComObjectRootEx<ccommultithreadmodel>,
public CComCoClass<ctestdataprovider, &clsid_dataprovider="">,
public IDataProvider
{
...
}
I need something like this:
void CDataContainer::DoDataExchange(pDX)
{
CComPtr<idataprovider> pDataProvider;
pDataProvider.CoCreateInstance(CLSID_DataProvider);
pDataProvider->SetDataContainer(this);
// pDX object can be located in another process
pDX->DoDataExchange(pDataProvider);
}
========================================================
IDataProvider object can be created only from DLL which contains CDataContainer code. Can I use it like this:
class CDataContainer
{
...
};
class CDataProvider : public IDataProvider
{
...
}
void CDataContainer::DoDataExchange(pDX)
{
CDataProvider* pDataProvider = new CDataProvider(this);
// pDX object can be located in another process
pDX->DoDataExchange(pDataProvider);
}
With regards,
Pavel Krupets
|
|
|
|
|
How can I make an application to fetch emails from the
web based mail servers(hotmail,yahoo or aol account) ?
Atleast any one has some clues?
Some application like AOL2POP and izymail etc. already
doing such things.
Thanks in advance.
|
|
|
|
|
hotmail u can get stuff from
check out webwasher (examine the exe and you'll find the url to use)
Bryce
|
|
|
|
|
i couldn't find any way...
and i wanted to have some standard way to get access to all these web based server.
|
|
|
|
|
well thats just it
each portal has a different method for access the email
bryce
|
|
|
|
|
thats possible only if u have the POP3 server access,
CodeTheDreams();
|
|
|
|
|
Even i was beleiving that but then how many
application have access to AOL,YAHOO and
Hotmail web servers.
As i mentioned application like
AOL2POP(name indicates it converts AOL mails some how to POP ),ePrompter,
IZYMail etc. doing such stuffs.
So there must be some way.
By the way thankx
|
|
|
|
|
Even i was beleiving that but then how many
application have access to AOL,YAHOO and
Hotmail web servers.
As i mentioned application like
AOL2POP(name indicates it converts AOL mails some how to POP ),ePrompter,
IZYMail etc. doing such stuffs.
So there must be some way.
By the way thankx
|
|
|
|
|
because each has its own method for transferring data
as i indictaed earlier, hotmail uses an asp page
take alook at the exe file for mailwasher (here is a section i just copied and pated
http://oe.msn.msnmail.hotmail.com/cgi-bin/hmdataÿÿÿÿ1http://services.msn.com/svcs/hotmail/httpmail.aspSVèiêóÿ‹Ú‹ðºX‹Æè†èÚœ
there WONT be a single way to get data off each of the mail services
without resorting to pop3 and guess wot...they don't supply it
so you will have to implement each seperately
not the news you wanted to hear...but thats life
Bryce
|
|
|
|
|
Thanks for the link u copy/paste from the mailwasher(is it the same as webwasher u wrote in first message?).
I got the direct url from Outlook Express account property box
which is http://services.msn.com/svcs/hotmail/httpmail.asp.When we run this url in browser it asks for username and password ,but when we supply it,it is
not authenticating.It might be using some encryption which seems obvious from your link specified.
Yea i know there will be different ways for all these web servers.
But there are ways
Thanks Bryce
|
|
|
|
|
Hi,
I am using class derived from CTreeCtrl. Tree Nodes hold string values. I want to associate a value (hidden) with every Node, so whenever I click on a Node I want to get that value also.
Anybody knows how to do that.
Regards
The Phantom is Tracking Bullets. ™
|
|
|
|