|
Hi,
I tested several MAPI engines which are available on CodeGuru.com and CodeProject.com but no one doesn't work for me
Can you tell me how do you use MAPI in your app ?
Best Regards,
|
|
|
|
|
Hi,
May be you think it's just a joke, But when i removed Outlook XP from my system, all engines works fine !!!
Regards,
Hadi
|
|
|
|
|
I need some help please.
I am working on an application in which a DLL starts up a dialog box. This dialog box is started with a CWinThread I spawn specifically. After DoModal() returns the thread exits. The problem is that my application also uses an Ocx which does some image processing. Anytime the OCX blts something to the screen, the dialog box exits nad so does the thread.
I am not sure what is going on, Can anyone help please ?
|
|
|
|
|
Override OnClose() and determine what triggers the event.
Kuphryn
|
|
|
|
|
hi
i have been trying for bout 2 hrs to change mosu espeed with the floowing code and just doesnt work. Im using windows xp.
long speed[3], new_speed[3];
// Get current mouse speed
SystemParametersInfo(SPI_GETMOUSE, NULL, speed, NULL);
new_speed[0] = speed[0];
new_speed[1] = speed[1];
new_speed[2] = speed[2] * 2;
// Set the mouse speed two times faster
SystemParametersInfo(SPI_SETMOUSE, NULL, new_speed, NULL);
When i debug i can see that new_speed[2] is changing but it has no visual effect on the cursor. It just doesnt make any sense. When i go into control panel the speed is always the same!!
I could rerally use some help here.
Cheers Guys
|
|
|
|
|
Try using SPI_SETMOUSESPEED instead. SPI_SETMOUSE only sets the acceleration thresholds, not the actual speed.
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
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"
|
|
|
|
|
Hello
I want to create a brush for painting the chess-like background for my button with the 1-pixel step. Do I need to use CreatePatternBrush and create appropriate bitmap, or there is another solution.
|
|
|
|
|
Hi all,
i want to change the default file name that will be produced after the compilation. i.e , if i have an *.exe project and the name of the project is MyProj then the name of the output file will be MyProj.exe
i want to change the default name, but i am using code (I can't change it via project-->settings-->link-->general)....
i know there are interfaces of Object Model called IBuildProject, and IApplication and IConfiguration.......
can any1 tell me how to use these interfaces and change the default output file name????
thanks
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
I use simple code, assuming that the only configurations will be debug and release
1/ Remove the old tool settings (I think you've got the basic idea, from the info in the question)
2/ Add the new tool settings to replace the ones you've removed.
_variant_t varj = j;
BOOL bDebug = (BOOL) _tcsstr((const char*)outOpts, _T("Debug"));</br>
pConfig->RemoveToolSettings(linker, "/out:", varj);</br>
_bstr_t outPath = bDebug ? "/out:Debug\\" : "/out:Release\\";
outPath += "foo.exe";
pConfig->AddToolSettings(linker, outPath, varj);
[edit] Sorry, again this is a VC6 Solution [:edit]
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
Hi,
thanks for the help,
i have a question: how do i know it is Debug mode, i saw in your code:
// work out if this is a debub build
BOOL bDebug = (BOOL) _tcsstr((const char*)outOpts, _T("Debug"));
where do you get the outOpts???
thanks
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
Sorry, that's the problem with cut and paste from bigger projects.
BSTR outOpts1;
pConfig->get_Name(&outOpts1);
_bstr_t outOpts(outOpts1,true);
BOOL bDebug = (BOOL) _tcsstr((const char*)outOpts, _T("Debug"));
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
Thanks man! you are my guru in AppWizards
i want to ask you an other question, maybe you can help:
now that my appwizard is finished, i want by right click on one of my classes to do something (same as i right click on the project and i have a popup menu with the item 'New Class'....) what i want to do is to add my own entry to the popup menu......
can u show me sample code on how to do that please?
thanks again man
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
Not sure exactly - it's not something I've needed to do, but perhaps rather than AppWizard functionality you could you use a Developer Studio Add-in.
The link below is a new article, it's slightly different to what you want but it might get you going with Add-ins.
VCGenie[^]
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
thanks again man!
i am reading this site now as i write this reply.....
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
Hi,
well, it turned out it wasn't exactly what i needed.
it adds a tool-bar add-in........ i am looking for right click item menu add-in....
can you help?
thanks again
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
Hi all,
I've created my own custome appwizard, the wizard produces a COM dll.i've placed all the template files propely.
now when i use the wizard, all the files are being generated.
when i compile my new created project, it compiles it as if it was an exe project and not a dll project.....
can any1 help me? what do i need to change in the project-->settings so it would become a COM dll project and would compile as one...?
thanks in advanced,
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
in VC6 make sure that in the InitCustomAppWiz() method in the <yourProject>Aw.cpp file that the correct project type is specified. If a DLL is not being built you may need to change PROJTYPE_CON (or similar) to PROJTYPE_DLL.
m_Dictionary[_T("PROJTYPE_DLL")] = _T("1");
This is one of those annoying little problems that I have trouble with every time I have to write a custom AppWizard, hope I've helped
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
Thanks man for the help, it works!
damn, not much good help around the MSDN for the custom app wizard......
thanks again
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
Hey,
How can i change the background color of CEditBox and any other CDialog and is title color?
Thanks
Yaniv
|
|
|
|
|
Have a look at the WM_CTLCOLOR message. You'll have to handle it in your dialog class and return a brush to draw the background of the edit control with.
You can also use WM_CTLCOLOR to change the background of the dialog - have a look at the docs as I can't remember exactly how to.
To change the title bar colour, have a look at one of the (many) articles here on CP about drawing custom title bars, as it's too involved to put here.
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
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"
|
|
|
|
|
You need to handle CTLCOLOR messages. I have a CColourEdit box class I wrote a while back. I can email it to you tomorrow if you want [I'm not in work now].
It has all the SetBkColour(), SetTxtBkColour(), SetTxtColour() methods and a few more. If your interested let me know [drop me an email - click the email button at the bottom of this post] and I'll email it on to you.
Regards,
Brian Dela
|
|
|
|
|
how can i dynamic control net connection login/shutdown by code!
ZHANGYIFEI
|
|
|
|
|
try InternetCheckConnection and InternetDial
Yaniv
|
|
|
|
|
how about LAN ?
ZHANGYIFEI
|
|
|
|
|
I need help with adding a view(s) to the document view list.
I know that CDocument::AddView() will add the view to the view list. The CView::OnCreate() is suppose to call the AddView(), but I don't have an OnCreate, I have Create() in my SecondView class. My FirstView does get adding to the view list. There is a difference in my second view (SecondView) than in my first view (FirstView). FirstView uses a PreCreateWindow(cs) method and my SecondView uses a Create(...) method. In the PreCreateWindow(cs) method, CListView::PreCreateWindow(cs) is called. In my Create method the first few lines of code is
if (!CWnd::Create(lpszClassName, lpszWindowName, dwStyle | WS_CLIPCHILDREN,
rect, pParentWnd, nID, pContext))
{
return FALSE;
}
it does not call the base class CFormView::Create(...), I have tried that and got an error.
In my CWinApp derived class I have the method
LoadFrames(){
m_pSecondView->OpenDocumentFile(NULL);
m_pFirstView->OpenDocumentFile(NULL);
}
m_pSecondView and m_pFirstView are CMultiDocTemplate* type.
When I use the following in another method in my CWinApp derived class
pos = m_pSecondView->GetFirstDocPosition();
pDoc = m_pSeconView->GetNextDoc(pos);
pDoc will equal the correct class (CMyDoc)
However, in my CMyDoc file
pos = pDoc->GetFirstViewPosition();
CView* prog;
while(pos != NULL)
{
prog = pDoc->GetNextView(pos);
if(prog->IsKindOf(RUNTIME_CLASS(CSecondView)))
((CSecondView*)prog)->Method(m_nVar);
}
The only view prog ever get populated with is CFirstView.
Also in my CWinApp derived class, I use the line
CDocument* pDoc = pChild->GetActiveDocument();
and found out (when pChild = CSecondFrame [see next paragraph]) pDoc will be set to NULL 0x000000.
If it is important I have defined the CMultiDocTemplate pointers as such
m_pFirstView = new CMultiDocTemplate(IDR_FIRSTTYPE,
RUNTIME_CLASS(CMyDoc),
RUNTIME_CLASS(CChildFrame),
RUNTIME_CLASS(CFirstView));
AddDocTemplate(m_pFirstView);
m_pSecondView = new CMultiDocTemplate(IDR_SECONDTYPE,
RUNTIME_CLASS(CMYDoc),
RUNTIME_CLASS(CSecondFrame),
RUNTIME_CLASS(CSecondView));
AddDocTemplate(m_pSecondView);
as you will notice, two different frames and IDRs are used. I don't believe that should make a difference in regards to the CMyDoc class, but I am writing all that could be revelant.
The information that I need is, how do I get my SecondView associated in the view list of my MyDoc class.
Thank you for any help.
|
|
|
|