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
J

Jonnster

@Jonnster
About
Posts
3
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Call DLL in WinForms App Fails But Works In MFC App
    J Jonnster

    I have a DLL written in Visual C++ 6.0. I have a MFC test application which calls this DLL and it works fine. I also have a .NET C# WinForms test app which calls this DLL. I am importing the DLL and calling it successfully. I can see that the DLL is called correctly and all parameters are passed successfully. The DLL works for a time and then fails when trying to create a COM component by calling CoCreateInstance. This fails with an Access Violation. This doesn't happen when called from the MFC app. Why does this happen in the .NET app and how do I solve it?

    .NET (Core and Framework) csharp c++ question winforms com

  • vector<string> and find
    J Jonnster

    I have a vector of strings which I want to search for a particular string. I am using: vector::iterator it = find( vecStrings.begin(), vecStrings.end(), sMax ); sMax is a std::string When I compile this (and it is specifically this line causing the problem) I get the following: c:\program files\microsoft visual studio\vc98\include\algorithm(43) : error C2784: 'bool __cdecl std::operator ==(const class std::vector<_Ty,_A> &,const class std::vector<_Ty,_A> &)' : could not deduce template argument for 'const class std::vector <_Ty,_A> &' from 'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' C:\test\test.cpp(6846) : see reference to function template instantiation 'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > *__cdecl std::find(class std::basic_string<char,struct std::char_trai ts<char>,class std::allocator<char> > *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > *,const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)' being compiled c:\program files\microsoft visual studio\vc98\include\algorithm(43) : error C2784: 'bool __cdecl std::operator ==(const class std::allocator<_Ty> &,const class std::allocator<_U> &)' : could not deduce template argument for 'const class std::allocat or<_Ty> &' from 'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' C:\test\test.cpp(6846) : see reference to function template instantiation 'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > *__cdecl std::find(class std::basic_string<char,struct std::char_trai ts<char>,class std::allocator<char> > *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > *,const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)' being compiled c:\program files\microsoft visual studio\vc98\include\algorithm(43) : error C2784: 'bool __cdecl std::operator ==(const class std::istream_iterator<_U,_E,_Tr> &,const class std::istream_iterator<_U,_E,_Tr> &)' : could not deduce template argument fo r 'const class std::istream_iterator<_U,_E,_Tr

    ATL / WTL / STL help csharp c++ visual-studio graphics

  • File List
    J Jonnster

    I need a MFC app which I can give a directory and it will create a list of all files within that directory and sub directories. From this list it will then check the last time each file was modified. What would be the best way of going about this? I think of several ways of doing it but would like an opinion on what other people think would be the best way forward. Thanks.

    C / C++ / MFC c++ question
  • Login

  • Don't have an account? Register

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