Answer Questions
TheDogger How can it be Used a member of CWnd in Static Function?
Hi! what did I wrong! (Debug Assertion Alert again!) I guess it's problem of CClientDC dc(this).isn't it what should I do UINT CMyTest::Thread(LPVOID pParam); //this Function is static. { //code CMyClass* pMyClass=(CMyClass*)pParam; pMyClass->DesignLine(); //code } myClass Like this: "(this class has been built with ClassWizard and base Class is CWnd )" CMyClass : bublic CWnd { . . . public: void DesignLine(); . .//c ...Show All
Mukhtar Omar Interesting problem - Microsoft Word integration with non-MFC application
Hiya. I've been trying to generate a Microsoft Word document for some time and can't seem to figure out how to do it. I have a GUI program that I have not written in MFC and I need to find a way of exporting information into a Word document. Can anyone help me with this problem What I want is to be able to export text and tables into a Word document. Thanks! ~Landale The most easiest way ...Show All
micwazoo need good string object reccomentdation
been using MFC's CString for years. it works great but need something more portable for big new project. seems std::string too clunky. what is a modern powerful string obj with much formatting caps does boost have something that doesn't require downloading the world to use thanks al ACK! And the really most powerful thing is GetBuffer and GetBufferSetLength that allows direct acces to the momory ...Show All
chaillom Help Need Compiler Errors
Hi All, I am having the following error when i try to recompile my source from VC 6.0 to .NET 2003. Any help in resolving the error is appreciated. ------ Build started: Project: dataAccess, Configuration: Debug Win32 ------ Compiling... TemplateBinMonitor.cpp c:\airs6.x\tags\CODE\interface\state\TagsString.h(93) : warning C4018: '<' : signed/unsigned mismatch c:\airs6.x\tags\CODE\implementation\h\dataAccess\TemplateBinMonitor.h(49) : w ...Show All
Jens Stjarna Module handle in C++/CLI library
How can I found current module handle (HMODULE) in C++/CLI Class Library. I need it to load data from Dll resources. My guess is that it is possible to do using Marshal::GetHINSTANCE(Module^) function, so I need to find Module of current Dll. Thanks, using Type class is much better, doesn't require module name: Module^ module = this->GetType()->Module; Hi, I think ...Show All
Kmaure msvcr80.dll Problem
Hi there, can someone possibly tell me why Noton WinDoctor is telling me that 10 executables in the .NET Framework 2.0 cannot access the necessary dll file msvcr80.dll I see that the dll exists in the WinSxS directory and I'm running XP pro. I didn't have this problem until I downloaded the 2.0 framework at windows update. Any advice appreciated. Thanks. Naolin Are you sure that WinDoctor is right Maybe ...Show All
Markchr linking C++ with mySQL
helo all, I don't know if that is the right place to post my comments, since the site is very large anway, how could I link C++ with MYSQL THanks all One big thing, you have the libraries and headers to program mysql come with mysql itself, or at least the older versions had them. So why would you have any problems unless you want to explicitly have ODBC OleDB or ADO. Yes! If you have the correct library! Thanks a lot guys! ...Show All
musbeajag Project options
I'm looking to build an application using C++ in Visual Studio 2005 and I see that I have several options for project types. I'm looking to build a forms application and my choices seem to be CLR, ATL, MFC, or Win32. It's nice to have choices and all, but what's the difference My main criteria is that I do not want to require users to have the .NET framework. Beyond that I would prefer that the program runs as a single executable without ...Show All
ImallocEx CTabCtrl question!
I got MFC CTab control in the dialog. It is inserted using resource editor, and bunch of other controls are pasted onto it. In the OnInitDialog() function tab is extended like this: Well I tried Tab.SetItem(number, "Title") with "number" containing a number of last item, but it didn't work, it just says: cannot convert parameter 2 from 'CString *__w64 ' to 'TCITEMA *' In msdn, under "CTabCtrl" there is no "events" link and a ...Show All
JoelT3 fstream issue in VS 2005
Hi I had a project in VS 6.0 in which I was using fstream to get and put data into a file. After conversion to VS 2005 there is a problem with the fstream functions. I manage to open the stream once and read something from it, and then I close the stream and reopen it in binary mode and now the get operation returns an empty buffer. is.get( szBuf, 10000, '|' ); Maybe I'm doing something wrong and I would really appreciate your help because it's ...Show All
Bovril2006 IntelliSense works intermittently
I understand that c++ intellisense is poor than c#, but sometimes it simply doesn’t work. The scenario is quite simple: Edit a line and type a class object and then the -> operator. Successfully intellisense open the drop-down box and show all available members. Now go to the next line and type de same class object and intellisense is not capable to find any thing. Or at reverse situation. In first line intellisense doe ...Show All
Larry Hunt Unresolved symbols linking dll
I get the following errors trying to link my dll project (non MFC in this case). What am I missing nafxcwd.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in testdll.obj nafxcwd.lib(dllmodul.obj) : warning LNK4006: _DllMain@12 already defined in testdll.obj; second definition ignored Creating library Debug/test.lib and object Debug/test.exp nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symb ...Show All
pic_az compiling vc++ code in VS 2005 error LNK2001: unresolved external symbol
hi While compiling my vc++ application in VS 2005. i faced the link errorsas following. Any help will really help me a lot. 1 file(s) copied. link /NOLOGO /SUBSYSTEM:windows /DLL /INCREMENTAL:no /MAP:FULL /OPT:REF /DEBUGTYPE:CV /IMPLIB:..\DBG\TmtData.LIB /MAP:TmtData.map /OUT:..\DBG\TmtData. DLL @TmtData.files /BASE:@t:\tcomponents\Make\TmtCommon.Lod,TmtData Creating library ..\DBG\TmtData.LIB and object ..\DBG\TmtData.exp tcbs ...Show All
Deion String ^ to void *
I'm building a managed wrapper in C++/CLI for normal native code. Here is a function from this wrapper that I'm having problems with: ERRORS SetOption( int nOption, String ^strSetting) { return (ERRORS) _SetOption(m_Handle, nOption, strSetting); } The native function accepts a "void *" as it's last argument. This could be an integer, string or even a function callback depending on the nOption parameter. How would I wrap this The problem ...Show All
Ammarak Performance difference between IJW and PInvoke
1-What is the cause of the performance difference between PInvoke and the IJW methods to invoke unmanaged code from managed code 2- Is marshaling of inputs and outputs ignored when using IJW 3- Is the performance cost of crossing the boundary between managed and unmanaged code when calling managed code from unmanaged code the same as when calling unmangaed code from mangaed code The mechanism used to call from managed to native code i ...Show All
