|
I think so, because there is no single one recycle bin. IIRC, there's a recycle bin on each drive. The one you see on the deskop is just a "union" of all the individual recycle bins.
--
Talk to the hand!
|
|
|
|
|
Hi. I am trying to connect to a remote module by TCPIP. It keeps failing at gethostbyaddr. THe error is WSANO_DATA. MSDN says that this means "Valid name, no data record of requested type." What does this mean? What do I need to change or do for this. From hyperterminal, it will connect correctly so there must be something simple to do to take care of this I think.
THanks!!
|
|
|
|
|
i have been able to successfully create a RAS connection using visual C++, what i'm looking for now is how to set a shortcut on the desktop for this connection, i could do that to a file ok, but to a dialup networking you don't have an actual (path) to it, any help is appreciated
|
|
|
|
|
Hi,
I found this article about catching outlook events:
http://www.codeproject.com/internet/outlookxpevents.asp?target=NewMail%7Cevent#xx635951xx
With this code you can catch the event, when a new mail is in the inbox.
It works fine !
I would like to catch an events when a new contact is saved or when a new appointment was created.
Theres´s no way for me to do this !
The problem is, that the FindConnectionPoint returns an error for the ItemEvents ConnectionPoint.
This is my code, which is same as in the article but only changed to the ContactItem.
//In the dialog class
1. ItemEvents m_OutlookContact;
2. //Add an event handler for the Application object.
m_pAppEventListener = new CAppEventListener();
m_pAppEventListener->AddRef();
m_pAppEventListener->AttachToSource
( m_OutlookContact.m_lpDispatch );
//In the cpp class where the EventListener is defined
STDMETHODIMP CAppEventListener::AttachToSource
( IUnknown* pEventSource )
HRESULT hr = S_OK;
IConnectionPointContainer* pCPC = NULL;
hr = pEventSource->QueryInterface( IID_IConnectionPointContainer,
(void**)&pCPC );
if (SUCCEEDED(hr)){
hr = pCPC->FindConnectionPoint( IID_ItemEvents,&m_pConnectionPoint);
if (SUCCEEDED(hr)){
hr = m_pConnectionPoint->Advise( this, &m_dwConnection );
}
pCPC->Release();
}
return hr;
}
//In the header class of the event listener I defined the item events from
the outlook typ libraries (OLE/COM Object Viewer)
const IID IID_ItemEvents=
{0x0006303A,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}};
Why is &m_pConnectionPoint : 0x00000000 ?
Only when I change the IID_ItemEvents to the IID_ApplicationEvents, which is
{0x0006304E,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}
the function returns OK.
Can someone help me please ?
|
|
|
|
|
Hello Everyone,
I need your sincere help in finding the suitable header file
for the wsnprintf() method. For finding the Domain Users in
Microsoft Active Directory Services(ADSI), i called the ADSI API i.e. FindUsers() to fetch the list of user objects
from a container or directory tree. For that the FindUser()
API code has used the method i.e. wsnprintf() for adding the filter.
RESULT FindUsers(IDirectorySearch *pContainerToSearch, // IDirectorySearch pointer to the container to search.
LPOLESTR szFilter, // Filter for finding specific users LPOLESTR *pszPropertiesToReturn, // Properties to return user objects found.
BOOL bIsVerbose)
This FindUsers() is the API where the definition of the ADSI API calls the wsnprintf() method like as below : DWORD
#define MAX_PATH 520
dwLength = MAX_PATH*2;
// Create search filter.
LPOLESTR pszSearchFilter = new OLECHAR[dwLength];
// Add the filter.
wsnprintf(pszSearchFilter, dwLength, L"(&(objectClass=user)(objectCategory=person)%s)",szFilter);
Please help me out in giving me the details about the header file and the .lib file to make the code compilable.
Thanks,
Derik
|
|
|
|
|
derik_konark wrote:
wsnprintf()
Are you sure you don't mean _snwprintf() that is declared in stdio.h?
Sonork 100.11743 Chicken Little
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
Within you lies the power for good - Use it!
|
|
|
|
|
Hello Everyone,
I am from CG Maersk, Chennai, India.I have problem while
compiling wsnprintf() function in one of my piece of COM code. I use this function to add the filter.
#define MAX_PATH 520
LPOLESTR pszSearchFilter = new OLECHAR[dwLength];
LPOLESTR szFilter; // Filter for finding specific users.
// NULL returns all user objects.
LPOLESTR *pszPropertiesToReturn;
DWORD dwLength = MAX_PATH * 2;
wsnprintf(pszSearchFilter, dwLength, L"(&(objectClass=user)(objectCategory=person)%s)",szFilter);
I need a help in finding the suitable header file for the wsnprintf() signature.
|
|
|
|
|
Hi!
I have a mdb file created by Access 2002 and I am using ado. (and no mfc)
pSet is my recordet pointer. I connect and open the database like this:
<br />
try{<br />
CREATEiNSTANCE(pDb,Connection);<br />
pDb->ConnectionString = L"driver={sql server};SERVER=(local);Database=pubs;" L"UID=sa; PWD=;"; <br />
pDb->ConnectionString = constr;<br />
pDb->Open( "", "", "", -1 );<br />
CREATEiNSTANCE(pSet,Recordset) <br />
pSet->PutRefActiveConnection( pDb );<br />
pSet->Open("SELECT TEST1 FROM TABLE1", constr, adOpenDynamic, adLockBatchOptimistic, -1);<br />
pSet->MoveFirst();<br />
} <br />
catch(_com_error &e)<br />
{<br />
......<br />
}<br />
This works fine until I call MoveLast or MovePrevious. When I call these it gives an abnormal program termination error. On the net I found some information about it and it tells me that MovePrevious and MoveLast will generate and error if there is no support for bookmarks or no support for backward cursors... I think I managed to integrate backward cursors by specifying adOpenDynamic ( right???). How can I integrate bookmarks or check if my database supports bookmarks?
Thank you very much for your future answers!
Well... I am a beginner ...
|
|
|
|
|
I use this set of C++ wrapper classes for use with ADO. I use these and I must say they work great! So give em a try...
http://www.codeproject.com/database/caaadoclass1.asp
|
|
|
|
|
I would like some help in implementing a very large integer for the RSA.
|
|
|
|
|
Here's a library which'll handle it for you: GMP[^]. I've used it myself to successfully implement the encode and decode functions of RSA. I also wrote a (very inefficient) keygenerator for RSA with it as well. It works.
--
Talk to the hand!
|
|
|
|
|
Has anyone found a way to delete email off servers that works?
P.J. shows the following in CPop3Connection:
BOOL CPop3Connection::Delete(int nMsg)
{
BOOL bSuccess = TRUE;
//Must be connected to perform a delete
ASSERT(m_bConnected);
//if we haven't executed the LIST command then do it now
if (!m_bListRetrieved)
bSuccess = List();
//Handle the error if necessary
if (!bSuccess)
return FALSE;
//Send the DELE command along with the message ID
char sBuf[20];
sprintf(sBuf, "DELE %d\r\n", nMsg);
int nCmdLength = strlen(sBuf);
if (!m_Pop.Send(sBuf, nCmdLength))
{
TRACE(_T("CPop3Connection::Delete, Failed to send the DELE command to the POP3 server\n"));
return FALSE;
}
return ReadCommandResponse();
}
It does NOT clear the server of the message.
I emailed the folks at apache and they suggested their is a know issue, and to send along a flush.
So....
// Send the flush command to server
char sbuff_f[20];
sprintf(sBuf_f, "FLUSH\r\n");
int nCmdLength = strlen(sBuf_f);
if (!m_Pop.Send(sBuf_f, nCmdLength))
No joy after flush.
Please help!
Best Wishes and Happy Holiday's,
ez_way
|
|
|
|
|
Hi guys,
I am quite new to Windows programming and am trying to make a dialog based program.
I started it with the MCF Application wizard and created a dialog based program. For this parent dialog, initially I found no trouble adding buttons and double click on them to create their BnClicked codes (it automatically switched to its class files, say CMy.cpp). But after I've gone further to manually add status bar and child dialogs and come back to it, I then have a problem on this parent dialog. For some reasons, the parent dialog does not seem to recognise its class files (e.g. CMy.cpp, CMy.h) any more. Now if I add a button to the dialog and double click on that button, the MFC Class Wizard will come up and ask me to create a class for the dialog.
Without much knowledge on Windows programming, I am having a hard time to figure out how to "link" the dialog back with its class files. Can anyone help?
Thanks alot
|
|
|
|
|
Hi
Ok it does not only ask you if you want to add a new class but to select an existing one.
Chances are you may have a screwed up dsp file. so relink you class and all will be well.
Best Wishes and Happy Holiday's,
ez_way
|
|
|
|
|
Hi BaldwinMartin,
Thanks for your kind reply. Yes, I just relink the class by typing in the same class name in the MCF Class Wizard, but when I clicked ok, it gave me "Object 'CMy' already exists" error message.
Anything I am missing here?
thanks again
|
|
|
|
|
Hi what version of VC are you working with please?
Best Wishes and Happy Holiday's,
ez_way
|
|
|
|
|
|
Sorry over my head I am still on 6 and never plan to switch.
Best Wishes and Happy Holiday's,
ez_way
|
|
|
|
|
You might want to check out the .net forum instead.
The fourth law of robotics states that if you cannot find and any reconciliation between the fisrt three laws - go on a killing rampage
My neighbours think I am crazy - but they don't know that I have a trampoline. All they see my head bobbing up and down over the fence every five seconds
|
|
|
|
|
Ok guys,
thanks for the help. I will try there now.
|
|
|
|
|
I made a client application (dialog based) with automation support and when i try to use AtlAdvice or AfxConnectionAdvice the compiler cries.
where am i going wroung please help. Do i need to include some header file,
I thought AfxXXXX are global functions of MFC
Regards
Prakash.
The World is getting smaller and so are the people.
|
|
|
|
|
Is is possible to color the inside/background of a slider control? (trackbar)
|
|
|
|
|
Yes look at http://www.codeproject.com/miscctrl/roundsliderctrl.asp?target=subclass%7Cslider
note only how he changes the bg color.
Best Wishes and Happy Holiday's,
ez_way
|
|
|
|
|
Hello
I have been working on a program and been getting some good help from everyone thank you
well i am back again with another question like i have said before i am still new to this.
i am trying to add a dialog to my program so that when i click on a button it will bring up a new dialog box with buttons and stuff on it. i have been searching tutorials but i might have over looked it
so if anyone knows of tutorials that would be great
thank you for you time
nate
"Effort within the mind further limits the mind, because effort implies struggle towards a goal and when you have a goal, a purpose, an end in view, you have placed a limit on the mind"
|
|
|
|
|
Hi
OK bring up your project and click on the resource view tab.
Expand the resources +
right click on the dialog folder
select insert dialog
right click on the dialog and select properties
Name the dialog something like IDD_MYDIALOG
right click on the dialog and select class wizard
Add a class dlg appears
select create a new class
call the new class something like CMyDialog
Alway start your classes with the capital C (it does not have to be this way but it will help later)
Select the base class as CDialog
select OK
If your project is a sdi or mdi select mainframe or view class
If you project is a dialog select the maindlg class
Select the cpp of the main class and at the top among the other #include statements insert the following
#include "MyDialog.h"
Note with left the C off the include statement.
Now put a button on your main dialog and right click and change the properties to IDC_MYBUTTON
double click on the button and add a handler
it will look like this
void MyMainClass::OnMybutton()
{
// TODO: Add your control notification handler code here
}
now add the follow code to the OnMyButton handler
CMyDialog dlg;
if(dlg.DoModal() == IDOK){
AfxMessageBox("We are back in the main class and you selected OK in the child dialog MyDialog");
}
So the button handler should look like this
void MyMainClass::OnMybutton()
{
CMyDialog dlg;
if(dlg.DoModal() == IDOK){
AfxMessageBox("We are back in the main class and you selected OK in the child dialog MyDialog");
}
}
compile and run
So what you have done is:
1. insert a new resource MyDialog
2. created a new class based on CDialog
3. Added a include statement to the class you wish to call the dialog from
4. added a button
5. created a handler for the button
6. added the code to call the button
7. returned to the calling class.
good luck and keep up the good work!
Best Wishes and Happy Holiday's,
ez_way
|
|
|
|