Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
B

Bangerman

@Bangerman
About
Posts
100
Topics
21
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Multithreading in PocketPC
    B Bangerman

    Thank you, and of course.


    Hell I thought it was funny .....

    Mobile com tutorial

  • Multithreading in PocketPC
    B Bangerman

    I have a multithreaded COM object I want to convert to Pocket PC. I have added the build type and appropriate build options but I find that there is no _beginthread function. Does the pocketPC support multiple threads and if so, can you point me to an example.


    Hell I thought it was funny .....

    Mobile com tutorial

  • try catch not working
    B Bangerman

    So I made the changes and it made no difference to the problem. However, I managed to connect the debugger and what I've found is frightening. The problem is ocurring because I'm passing an invalid parameter to localtime_s but rather than reporting any error or throwing an exception it is directly calling: _invoke_watson(pszExpression, pszFunction, pszFile, nLine, pReserved); So msvcrt80.dll directly invokes DrWatson rather than throwing an error for you to catch. Now looking at their code I can see that in order to catch invald parameters in my code I'm going to have to add an invalid parameter handler into it. This seems strange to me, surly rather than calling DrWatson, it should throw an exception or even return the error that the docs say it will return for an invalid value.


    Hell I thought it was funny .....

    C / C++ / MFC sales help

  • try catch not working
    B Bangerman

    Thank you, that explains why it all worked fine under the old compiler. Your reply is much appreciated.


    Hell I thought it was funny .....

    C / C++ / MFC sales help

  • try catch not working
    B Bangerman

    My very large app was shipped to a customer and as you might guess it failed. My code has lots of try catches in it and I though it strange that it failed with no exception traps shown in the log. After trying to insert some deliberate exceptions I found that the exception traps are not working at all. To test what was going on I created a console app: int _tmain(int argc, _TCHAR* argv[]) { printf("Start\n"); try { int *pWord=NULL; *pWord=999; } catch(...) { printf("Error was caught\n"); } printf("Stop\n"); return 0; } This should display Start Error was caught Stop But it actually displays Start .. the the MS crash dialog pops up. Does anyone know why my exception traps have been disabled. Richard.


    Hell I thought it was funny .....

    C / C++ / MFC sales help

  • Outlook C++ com addin
    B Bangerman

    Hi, I'm having a problem when iterating through the contacts in Outlook. I can create contacts ok and access all the properties of them, but when I try to iterate through them I get an exception. Can anyone see what I'm doing wrong :confused:

    \_NameSpacePtr pNamespace;
    \_ItemsPtr pItems;
    \_FoldersPtr pFolders;
    MAPIFolderPtr pFolder;
    \_ContactItemPtr pContact;
    CComVariant vIndex;
    
    m\_spApp->GetNamespace(\_bstr\_t("MAPI"),&pNamespace);
    // select the default outlook contacts folder
    pNamespace->GetDefaultFolder(olFolderContacts,&pFolder);
    pFolder->get\_Items(&pItems);
    Outlook::OlObjectClass Class;
    CComBSTR EntryId;
    pItems->get\_Class(&Class);
    // iterate the list
    hr=pItems->GetFirst((IDispatch\*\*)&pContact);
    while ((hr==S\_OK) && (pContact!=NULL))
    {
    	pContact->get\_Class(&Class);
    	if (Class==olContact)
    	{
    		pContact->get\_EntryID(&EntryId); // exception thrown on this line
    		hr=pItems->GetNext((IDispatch\*\*)&pContact);
    	}
    }
    

    Any help you can offer would be greatly appreciated.;P

    COM help c++ com

  • dll build is missing lib file (VS2003)
    B Bangerman

    Why is it that right after writing a post, the post makes you think of something else to check and tadaa you find the problem. :-O The problem was, I had forgotton to actually export the function that the DLL was supplying. No exports means no lib. Although a compiler message to that end would have saved me considerable time, after all why would I create a dll with no exported functions !


    Hell I thought it was funny .....

    Visual Studio question

  • dll build is missing lib file (VS2003)
    B Bangerman

    I have a solution with a large number of dll's in it. I just added a new one using the wizard and everything builds nicely. However, even though there is a specified output .lib file included the file is never generated and there are no warnings. I have checked the properties of the failing dll with one for a good dll and everything (apart from the dll/lib name) is identical, yet, still no lib. The dll,ilk,pdb is built but not the exp or lib. I have searched the entire PC drives for the file and yet still nothing. :mad: Has anyone else seen this and if so how did you solve it ?!? TIA Richard


    Hell I thought it was funny .....

    Visual Studio question

  • What I hate about VS.NET
    B Bangerman

    YEa I know I'm replying to mny own post. But has anyone else abandoned using VS.NET for adding functions to classes. I used to use the really neat dialog, type in the return type and functoin definition and hit enter. The new system is so bad I've gone back to editing the header and body by hand. Which idiots did they user test this junk on.


    Hell I thought it was funny .....

    The Lounge csharp visual-studio beta-testing json code-review

  • What alias are you?
    B Bangerman

    Bangerman :-)


    Hell I thought it was funny .....

    The Lounge career hardware question

  • What I hate about VS.NET
    B Bangerman

    For the past 5-6 years I have been editing my files and when the file is checked in I type the first character, it bleeped, threw up the checkout box, I hit enter and typed the rest in. Now, I start typing and all the damn text goes into their checkout edit box, including the CR. I would like to shoot the idiot who thought of that. Its Ok if you realise the file is checked out, but if you have a whole load of files open you cant tell which are checked out and which are not. Why didnt they give any feedback, this is VISUAL Studio, maybe a red LH window border or something so I can at least see that a dialog is going to pop up...


    Hell I thought it was funny .....

    The Lounge csharp visual-studio beta-testing json code-review

  • Do women have a brain to program?
    B Bangerman

    Male and Female brains are quite different and this has been the basis of experimental evidence that our brains work in difefrent manners See the following link http://www.genderweb.org/general/whycant.phtml[^]


    Hell I thought it was funny .....

    The Lounge question

  • Is CP starting to spam???
    B Bangerman

    My anti-spam system got it :-)


    Hell I thought it was funny .....

    The Lounge question help

  • Ureka
    B Bangerman

    They do if they have dictionaries. But how about other things. For example, I installed the new RayMan 3 for my son. It had English (Usited States) but not English(anything else). In fact I cant think of a single game I have installed that had any English other than English (United States). Surly It should just be "English" in this case. Hence, my original statement about the yanks not kinowing the language thay speak :-)


    Hell I thought it was funny .....

    The Lounge help

  • Ureka
    B Bangerman

    I've never seen any of these. When you get shipments of things like MSDN is it the standard US pack (which is what we get in the UK) or is it an international variety?


    Hell I thought it was funny .....

    The Lounge help

  • Ureka
    B Bangerman

    You just had to take the bait didnt you ;P


    Hell I thought it was funny .....

    The Lounge help

  • Ureka
    B Bangerman

    I'm sorry. I didnt realise that there was a minimum intellectual content requirement in the lounge. :((


    Hell I thought it was funny .....

    The Lounge help

  • Ureka
    B Bangerman

    Well shoot me im dyslexic.....


    Hell I thought it was funny .....

    The Lounge help

  • Ureka
    B Bangerman

    I have often wondered why installers have amongst their set of install languages "English (United States)" but no "English (British)". I think I finally figured it out. The yanks arent smart enough to know the language they speak, so they put the "United States" on there to help the poor fellows out. ;P Now I'[ll stand well back and wait for the flames :suss:


    Hell I thought it was funny .....

    The Lounge help

  • Administrator
    B Bangerman

    In general this is a good idea and if done correctly its fine. For example "Joe Soap (administrator)" is great but "admin" is not. ;)


    Hell I thought it was funny .....

    The Lounge sysadmin
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups