The connecttoserver
function must need one or more parameters. Look in in "connecting.h" (or post it here) to see the parameters the method takes. Mike
Mike Beckerleg
Posts
-
function passing problem -
CMap and its key typesIf it was complaining about a compare method it would be "==" not "=". Mike
-
Outlook WorkaroundsIt is possible to turn off the Outlook warnings see http://www.microsoft.com/resources/documentation/office/xp/all/reskit/en-us/appa11.mspx[^] I believe there are also third-party tools available that can do this without requiring access to the Exchange Server. Mike
-
linking static variablesIf in the .h file for your class you have
class MyClass { static int mStatic; }
Then in the .cpp you will need the followingint MyClass::mStatic = 123;
Mike -
Outlook 2003 Object Model ProblemHi Am am trying to automatically open email by using C++ to drive Outlook 2003. I use #import to get the correct libraries and everything is working fine except I cannot read encrypted emails. I have an _ItemsPtr for the inbox which I can use to iterate through all the items I have received and I can read all the non-encrypted ones but I can't access the encrypted ones. When I query the IDispatch for the item to get an _MailItemPtr it says the interface is not supported. The same code (using the appropriate libraries) works fine for Outlook 98, 2000, and 2002, just not for 2003. Any ideas? Is there something extra I need to do for encrypted mails? Mike
-
Hooks (WH_CALLWNDPROC)The constant calls to 'new' the character buffers (which you don't delete) and opening files are going to have a big performance hit. Doing that each time it will be very slow. Mike
-
Simple but need ur response immediatelyHit <Ctrl + Alt>+<Print Screen> to copy an image of the dialog that currently has focus to the clipboard. You can then paste it into your Paint and save it. Mike
-
Should I make namespace std global?My preference is to use individual
using std::string;
type statements instead of bringing the whole std namespace in withusing std;
But of course there is no reason why you have to useusing ...;
at all. You can just use the full names at the appropriate points. egstd::cout << "This is a test" << std::endl;
Instead ofusing std::cout; using std::endl; cout << "This is a test" << endl;
Mike -
What warning level do you build at?Warning level 4. I don't treat warnings as errors but I do make sure I get rid of them before releasing any code. I also use pc-lint to perform further checking. Mike
-
Who gets the Mutex?The queue to get access to the mutex is on a first-in, first-out basis. So the first thread to wait on the mutex will get access to it when it is released, regardless of thread priority. Mike
-
Would you spend one week changing strcpy to lstrcpyn ?If the
strcpy
s are causing the Dr.Watson reports then they should be fixed. It might not be fun but thats life. Mike -
suspend processI expect we will be able to help you if you tell us what the problem is. Mike
-
3D - data in a databaseOctrees do exist. I used to use them in ray-tracing to divide up a scene and calculate which objects are in which node of the Octree. This was used to reduce the number of ray-object intersections to test. Mike
-
Vectors vs ArraysOne thing to do when copying into vectors is use
reserve()
first if you know how many ites you need to copy in. Saves a lot of time spent allocating and copying progressively bigger blocks of memory. Mike -
GDI ObjectsTry posting some code for us to have a look at.
-
GDI ObjectsDoes it leak the GDI objects everytime you open and close the frame or just the first time. If it is just the first time then it is nothing to worry about and is just MFC keeping handle to things that it will reuse. If the GDI count keeps going up with repeated open/closes then you do have a probelm. Mike
-
Residental ApplicationWhat do you mean by a Residential Application? If you clarify that it may be possible to give you a useful answer. Mike
-
The cost of diabetesBodyfat % is a much better measure than BMI (Body Mass Index) for an individual. My BMI puts me as borderline obese, however I do a lot of weights and play rugby and there is no way I am fat. If my memory serves me correctly BMI was first used as a statistical tool in medical studies. So people with a high BMI were found to be statistically more likely to develop certain health problems. That doesn't mean BMI can be usefully applied to an individual. The only problem with bodyfat % is finding a simple, consistent way to measure it. Mike
-
Control Enabled or NotTry
m_myEditx.IsWindowEnabled()
that should return the information you want. Mike -
Regsvr32 writes an errorRassul Yunussov wrote: what is the "release version" - is it options of compilor that i usually use where i can change - debug or release in visual studio? Yes I meant the debug/release options in Visual Studio. These control whether debug information is included in your DLL and also whether your DLL uses the debug or release versions of DLLs. This will affect whether it is using for example msvcrt.dll (release) or msvcrtd.dll (debug). The best thing to do is use the Depends utility that is included with Visual Studio and point it at your COM DLL. It will then show you all the DLLs that your DLL depends on. You then need to ensure that all these DLLs are available and registered on the second machine. Mike