|
Hi Dears
I've created a VC++/ATL Com Add-in for MS Outlook, to delete mail attachments.
Now please guide me how to make Installation Program to load ATL Com Add-in(.dll) with MS Outlook ? so that the user with no Visual Studio can also use the add-in.
Please guide me ..............
I'll be very grateful.
Kind Regards
Atif (abqau@hotmail.com - abqau@yahoo.com)
Watch Your Thoughts for they will become your actions.
Watch Your Actions for they will become your habits.
Watch Your Habits for they will become your beliefs.
Watch Your Beliefs for they will determine your destiny.
|
|
|
|
|
How do I write
<br />
ActiveChart.SeriesCollection(1).XValues = "={""Date <br />
08102003"","" Date 08102003""}"<br />
in MFC?
Here is my code for the chartwiz..
<br />
this->m_xlChart->ChartWizard(var,
COleVariant((short)3),
COleVariant((short)2),
COleVariant((short)2),
COleVariant((short)0),
COleVariant((short)1),
COleVariant((short)TRUE),
COleVariant("MyChart"),
COleVariant("Date"),
COleVariant("UNITS"),
covOptional<br />
);<br />
Basically I want to change Category (X) axis labels to something other then 1, 2, 3... etc.
Sincerely,
Mardigin
|
|
|
|
|
Disregard, I just solved this problem. Silly me.
Here is the solution if anyone is interested.
<br />
<br />
xlSeries = this->m_xlChart->SeriesCollection(COleVariant((short)1));<br />
<br />
VARIANT vResult;
VARTYPE vType;<br />
<br />
DISPID dispID;
unsigned short *ucPtr;
ucPtr = L"XValues";<br />
HRESULT hr = xlSeries.m_lpDispatch->GetIDsOfNames(<br />
IID_NULL, &ucPtr, 1, ACCESS_PROPERTY_GUID, &dispID<br />
);<br />
<br />
CString lpszNewValue= "={""Label1"",""Label2""}";<br />
<br />
if(hr == S_OK)<br />
{<br />
xlSeries.SetXValues(COleVariant(lpszNewValue));<br />
}<br />
Sincerely,
Mardigin
|
|
|
|
|
Mardigin wrote:
CString lpszNewValue= "={""Label1"",""Label2""}";
In C++, to insert a "" " character you have to use "\" ", not """ " like in VB.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Hi,
How can I export a Func ,object and so on in Dlls .I want to create a Dll for PB .i think it's very easy to you,but it's very hard to me ,because i come from china ,my mother lauguage is chinese .
can anybody help me ? give me an example .
Thanks
Hellin
|
|
|
|
|
Could anyone help me ? I really really come from china.
|
|
|
|
|
Try something like...
(This comes from a wrapper around the NetUserAdd function)
Declare your function / routine like this...
extern "C" int __declspec(dllexport) AddUserAccount( LPSTR domain, const char *acct, const char *pass, const char * comment)
|
|
|
|
|
Hi ,Judd
Thanks a lot .What is the "__stdcall" different from the "__declspec" .I am trying ...I think my enlish is very bad .are you American?
Good luck
Hellin
|
|
|
|
|
No problem,
"__stdcall" and "__declspec" are calling conventions, and effect how argumetns are passed (e.g. by ref or by val) and also how they are 'decorated' when externalised.
You might find some use reading here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/html/_core_adjusting_naming_conventions.asp
(I'm actually English and since you are talking about __stdcall are you doing mixed language with FORTRAN by any chance?)
|
|
|
|
|
Hi, buddy
That all right .a Func of DLLs for PB must be de Declared like this "__stdcall" .Others don't work .do you understand me ? My craft brother.
Thank you very much .
Hellin
|
|
|
|
|
Hi,buddy
Sorry ,i will go to the class.I must leave .
see you
bye
hellin
|
|
|
|
|
hi
i need some information related to indigo press devicess , the factors on which the efficency of these devices depends (w.r.t development point of view)
regards
ab
|
|
|
|
|
Ok since VS2003 i have a new References folder in every of my (Native-) C++ solutions.
Now frankly i have no idea what this is for. I'm familar with references in the managed envirement and for web services, however two oddities :
1) If i have a multi project solution it offeres me to add one project as reference of another. Nice but what does that do.
2) If i select browse it lets be browse for "Component files". What the hack is a component file.
I dreamed for a long time for some sort of component system in c++ where i can pack my different mini projects in a zip file including all source and a make file like xml and than just drag drop them on the project i'm working on and it will be included in the build process. Is this new reference folder anything which comes close to my wish ?
|
|
|
|
|
I may be starting an application before long which will receive digital audio streams, and then run these streams through an algorithm before passing the streams back out of the application (sort of a filter). I've not really processed digital audio streams before, and I'd like a reference to begin with. I am best with C++, but I'm not against using some other language like BASIC if it is necessary, but I'd prefer to stick with what I am the most comfortable with. If anybody has experience with receiving and processing digital audio streams, could you please guide me with a book or two that would be a good starting point to learn from? I'd greatly appreciate it. Thank you!!!
Douglas A. Wright
dawrigh3@kent.edu
|
|
|
|
|
If you are doing this on a Win32 platform. You should probably look at DirectX DirectShow. If you download the SDK there are a bunch of Audio Filter Examples. DirectX has a comprehensive framework for encoding, decoding and transcoding media streams.
|
|
|
|
|
I am trying to write a Win32 WinSock app and nothing is working! winsock2.h by itself gives me 70 errors (and i linked the lib file). winsock 1 refuses to let me use SOCKADDR_IN, so what is going on?
-- Steve
|
|
|
|
|
Include ws2tcpip.h.
Kuphryn
|
|
|
|
|
Hi,
In my program I keep getting this error whenever I move my dialog or, OnOK and OnCancel.
It says:
Debug Assertion Failed.
File: winctrl2.cpp
Line: 1202
In winctrl2.cpp I have gone to the line 1202:
BOOL CImageList::Attach(HIMAGELIST hImageList)
{
1202: ASSERT(m_hImageList == NULL); // only attach once, detach on destroy
ASSERT(FromHandlePermanent(hImageList) == NULL);
if (hImageList == NULL)
return FALSE;
CHandleMap* pMap = afxMapHIMAGELIST(TRUE);
ASSERT(pMap != NULL);
pMap->SetPermanent(m_hImageList = hImageList, this);
return TRUE;
}
It has something to do with the ImgaeList that I added to the Tree control in my program.
I added the tree control like this:
m_nTree.SetImageList(&m_ImageList, TVSIL_NORMAL);
In ONOK and OnCancel I even added following line:
m_ImageList.Detach();
Still I keep getting the assertion error.
Can anybody help please?
Thanks,
Binayak
|
|
|
|
|
You attach the Imagelist to the tree control more than once.
if you attach a imagelist to the tree ,the m_HImageList will not be NULL, if you attach again ,the ASSERT(m_HImageList==NULL) will break, so you should init the tree imagelist in the OnInitDialog() and don't init again.
I think is it.
|
|
|
|
|
Hi,
I'm sure I attached to the tree control only once and that is in the onInitDialog().
Still this is not working. Any other suggestions?
Thanks,
Binayak
|
|
|
|
|
You could try to protect the adding of the image list with a bool variable:
In your dialog, add a bool variable firstTime , set to true in constructor.
Modify the part where you add the imagelist to look like this:
if (firstTime)
{
m_Tree.SetImageList(&m_TreeImageList, TVSIL_NORMAL);
firstTime = false;
} Additionally, I think you can drop the calls to detach(), as this will be done automagically when the tree goes away.
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
Hi,
Thanks for your reply.
I tried doing what you said.
But, in this case also if I try to move my dialog box, I keep getting the same error (debug assertions failed)
I'm including call stack and part of code with this:
Call stack: shows line 140 which is shown in the code.
L! 77f9180c()
_CrtDbgReport(int 2, const char * 0x5f4cd0c0 THIS_FILE, int 1202, const char * 0x00000000, const char * 0x00000000) line 353
AfxAssertFailedLine(const char * 0x5f4cd0c0 THIS_FILE, int 1202) line 39 + 20 bytes
CImageList::Attach(_IMAGELIST * 0x00141e70) line 1202 + 24 bytes
CImageList::Create(unsigned int 131, int 13, int 1, unsigned long 16777215) line 1183
CMfcTree::OnInitDialog() line 140
AfxDlgProc(HWND__ * 0x01f31c2e, unsigned int 272, unsigned int 18619602, unsigned int 18619602) line 35 + 14 bytes
USER32! 77e3a244()
USER32! 77e28b4b()
USER32! 77e2d2b2()
USER32! 77e16b21()
USER32! 77e16b44()
CWnd::DefWindowProcA(unsigned int 272, unsigned int 18619602, long 0) line 1000 + 32 bytes
CWnd::Default() line 249
CDialog::HandleInitDialog(unsigned int 18619602, unsigned int 18619602) line 624 + 8 bytes
CWnd::OnWndMsg(unsigned int 272, unsigned int 18619602, long 0, long * 0x001294b4) line 1815 + 17 bytes
CWnd::WindowProc(unsigned int 272, unsigned int 18619602, long 0) line 1585 + 30 bytes
AfxCallWndProc(CWnd * 0x00129838, HWND__ * 0x01f31c2e, unsigned int 272, unsigned int 18619602, long 0) line 215 + 26 bytes
AfxWndProc(HWND__ * 0x01f31c2e, unsigned int 272, unsigned int 18619602, long 0) line 368
AfxWndProcBase(HWND__ * 0x01f31c2e, unsigned int 272, unsigned int 18619602, long 0) line 220 + 21 bytes
USER32! 77e3a244()
USER32! 77e16362()
USER32! 77e29c20()
USER32! 77e2caa8()
USER32! 77e2ca6b()
CWnd::CreateDlgIndirect(const DLGTEMPLATE * 0x00437c30, CWnd * 0x002f70e8 {CTempWnd hWnd=0x03541c1c}, HINSTANCE__ * 0x00400000) line 327 + 36 bytes
CDialog::DoModal() line 531 + 32 bytes
CMyTreeView::OnDraw(CDC * 0x00129b30) line 61 + 11 bytes
CView::OnPaint() line 185
CWnd::OnWndMsg(unsigned int 15, unsigned int 0, long 0, long * 0x00129ca4) line 1825
CWnd::WindowProc(unsigned int 15, unsigned int 0, long 0) line 1585 + 30 bytes
AfxCallWndProc(CWnd * 0x002f4fc8, HWND__ * 0x09c71a58, unsigned int 15, unsigned int 0, long 0) line 215 + 26 bytes
AfxWndProc(HWND__ * 0x09c71a58, unsigned int 15, unsigned int 0, long 0) line 368
AfxWndProcBase(HWND__ * 0x09c71a58, unsigned int 15, unsigned int 0, long 0) line 220 + 21 bytes
USER32! 77e3a244()
USER32! 77e14730()
USER32! 77e1558a()
NTDLL! 77f91a7f()
USER32! 77e1a792()
USER32! 77e43ed5()
USER32! 77e33f6a()
USER32! 77e34306()
USER32! 77e337fb()
USER32! 77e34091()
USER32! 77e3322c()
__crtMessageBoxA(const char * 0x0012a3ec, const char * 0x102579a0 `string', unsigned int 73746) line 65
CrtMessageWindow(int 2, const char * 0x5f4cd0c0 THIS_FILE, const char * 0x0012b520, const char * 0x00000000, const char * 0x0012d544) line 520 + 22 bytes
_CrtDbgReport(int 2, const char * 0x5f4cd0c0 THIS_FILE, int 1202, const char * 0x00000000, const char * 0x00000000) line 419 + 76 bytes
AfxAssertFailedLine(const char * 0x5f4cd0c0 THIS_FILE, int 1202) line 39 + 20 bytes
CImageList::Attach(_IMAGELIST * 0x0013f750) line 1202 + 24 bytes
CImageList::Create(unsigned int 131, int 13, int 1, unsigned long 16777215) line 1183
CMfcTree::OnInitDialog() line 140
AfxDlgProc(HWND__ * 0x00da1d1e, unsigned int 272, unsigned int 15998044, unsigned int 15998044) line 35 + 14 bytes
USER32! 77e3a244()
USER32! 77e28b4b()
USER32! 77e2d2b2()
USER32! 77e16b21()
USER32! 77e16b44()
CWnd::DefWindowProcA(unsigned int 272, unsigned int 15998044, long 0) line 1000 + 32 bytes
CWnd::Default() line 249
CDialog::HandleInitDialog(unsigned int 15998044, unsigned int 15998044) line 624 + 8 bytes
CWnd::OnWndMsg(unsigned int 272, unsigned int 15998044, long 0, long * 0x0012e894) line 1815 + 17 bytes
CWnd::WindowProc(unsigned int 272, unsigned int 15998044, long 0) line 1585 + 30 bytes
AfxCallWndProc(CWnd * 0x0012ec18, HWND__ * 0x00da1d1e, unsigned int 272, unsigned int 15998044, long 0) line 215 + 26 bytes
AfxWndProc(HWND__ * 0x00da1d1e, unsigned int 272, unsigned int 15998044, long 0) line 368
AfxWndProcBase(HWND__ * 0x00da1d1e, unsigned int 272, unsigned int 15998044, long 0) line 220 + 21 bytes
USER32! 77e3a244()
USER32! 77e16362()
USER32! 77e29c20()
USER32! 77e2caa8()
USER32! 77e2ca6b()
CWnd::CreateDlgIndirect(const DLGTEMPLATE * 0x00437c30, CWnd * 0x0012f858, HINSTANCE__ * 0x00400000) line 327 + 36 bytes
CDialog::DoModal() line 531 + 32 bytes
CMyTreeView::OnDraw(CDC * 0x0012ef10) line 61 + 11 bytes
CView::OnPaint() line 185
CWnd::OnWndMsg(unsigned int 15, unsigned int 0, long 0, long * 0x0012f084) line 1825
CWnd::WindowProc(unsigned int 15, unsigned int 0, long 0) line 1585 + 30 bytes
AfxCallWndProc(CWnd * 0x002f4fc8, HWND__ * 0x09c71a58, unsigned int 15, unsigned int 0, long 0) line 215 + 26 bytes
AfxWndProc(HWND__ * 0x09c71a58, unsigned int 15, unsigned int 0, long 0) line 368
AfxWndProcBase(HWND__ * 0x09c71a58, unsigned int 15, unsigned int 0, long 0) line 220 + 21 bytes
USER32! 77e3a244()
USER32! 77e14730()
USER32! 77e1558a()
NTDLL! 77f91a7f()
USER32! 77e2917a()
USER32! 77e2d2b2()
USER32! 77e16b21()
USER32! 77e16b44()
CWnd::DefWindowProcA(unsigned int 274, unsigned int 61458, long 328197) line 1000 + 32 bytes
CWnd::WindowProc(unsigned int 274, unsigned int 61458, long 328197) line 1586 + 26 bytes
AfxCallWndProc(CWnd * 0x0012f858, HWND__ * 0x01d519fa, unsigned int 274, unsigned int 61458, long 328197) line 215 + 26 bytes
AfxWndProc(HWND__ * 0x01d519fa, unsigned int 274, unsigned int 61458, long 328197) line 368
AfxWndProcBase(HWND__ * 0x01d519fa, unsigned int 274, unsigned int 61458, long 328197) line 220 + 21 bytes
USER32! 77e3a244()
USER32! 77e14730()
USER32! 77e1558a()
NTDLL! 77f91a7f()
USER32! 77e2917a()
USER32! 77e2d2b2()
USER32! 77e16b21()
USER32! 77e16b44()
CWnd::DefWindowProcA(unsigned int 161, unsigned int 2, long 328197) line 1000 + 32 bytes
CWnd::WindowProc(unsigned int 161, unsigned int 2, long 328197) line 1586 + 26 bytes
AfxCallWndProc(CWnd * 0x0012f858, HWND__ * 0x01d519fa, unsigned int 161, unsigned int 2, long 328197) line 215 + 26 bytes
AfxWndProc(HWND__ * 0x01d519fa, unsigned int 161, unsigned int 2, long 328197) line 368
AfxWndProcBase(HWND__ * 0x01d519fa, unsigned int 161, unsigned int 2, long 328197) line 220 + 21 bytes
USER32! 77e3a244()
USER32! 77e145e5()
USER32! 77e15b51()
CWnd::RunModalLoop(unsigned long 4) line 3478 + 19 bytes
CDialog::DoModal() line 539 + 12 bytes
CMyTreeView::OnDraw(CDC * 0x0012fb50) line 61 + 11 bytes
CView::OnPaint() line 185
CWnd::OnWndMsg(unsigned int 15, unsigned int 0, long 0, long * 0x0012fcc4) line 1825
CWnd::WindowProc(unsigned int 15, unsigned int 0, long 0) line 1585 + 30 bytes
AfxCallWndProc(CWnd * 0x002f4fc8, HWND__ * 0x09c71a58, unsigned int 15, unsigned int 0, long 0) line 215 + 26 bytes
AfxWndProc(HWND__ * 0x09c71a58, unsigned int 15, unsigned int 0, long 0) line 368
AfxWndProcBase(HWND__ * 0x09c71a58, unsigned int 15, unsigned int 0, long 0) line 220 + 21 bytes
USER32! 77e3a244()
USER32! 77e14730()
USER32! 77e1558a()
NTDLL! 77f91a7f()
CTreeApp::InitInstance() line 96
AfxWinMain(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, char * 0x00132a08, int 1) line 39 + 11 bytes
WinMain(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, char * 0x00132a08, int 1) line 30
WinMainCRTStartup() line 330 + 54 bytes
KERNEL32! 77ea847c()
code:
BOOL CMfcTree::OnInitDialog()
{
CDialog::OnInitDialog();
m_ImageList.Create(IDB_BITMAP1, 13, 1, RGB(255,255,255));
if ( firstTime ) //line 140
{
m_nTree.SetImageList(&m_ImageList, TVSIL_NORMAL);
firstTime = false;
}
HTREEITEM hItem = m_nTree.InsertItem( "Root", 0,2,TVI_ROOT );
m_nTree.SelectItem (hItem);
for (int count =0 ; count <15 ; count ++)
{
OnBUTTONAddA() ;
m_nTree.SelectItem (hItem);
}
m_nTree.SelectItem (hItem);
showRoot();
m_nAddA.ShowWindow ( SW_HIDE );
//XML
//XML
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
Binayak Bhattacharyya
|
|
|
|
|
Hmm.
Seems like your imagelist creation is failing?
Please check the return value of m_ImageList.Create(..) .
Nonzero is signaling an error.
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
I have checked the return value of Create(...)
It's true.
any other suggestions?
|
|
|
|
|
Hello,
Sorry for my c++ stupid question but i really forgot to get the size of an array in a func
typedef struct<br />
{<br />
char *item;<br />
int top;<br />
int bottom;<br />
} Item;<br />
<br />
<br />
void Draw( Item* item )<br />
{<br />
<br />
int nSize = sizeof(*item) / sizeof(Item);<br />
<br />
}<br />
<br />
main()<br />
{<br />
Item array[] = { ... };<br />
Draw( array );<br />
}
Any idea ?
Best Regards,
Hadi
|
|
|
|
|