Answer Questions
LazerBeam Manifest issues with VC2005
Hi I'm trying to build a production application in debug using Visual Studio 2005. The application builds, but when I go to run it in debug, I get an error that it can't find the Release versions of the run-time libraries. I've looked at a lot of documentation and discussion groups regarding manifests and have not found out what to do. It looks like the manifest (as near as I can tell) has the debug versions of the libraries included, but not th ...Show All
ScottStamper How to create nou-existing folder in simple consloe project in VC++ .NET 2003?
How to create nou-existing folder in simple consloe project in VC++ .NET 2003 To finish my homework,I need to create folder under the current directoruy that hold the files.I tried for days and i give up.Please help! #include <iostream> #include <fstream> #include <string> using namespace std; int main() { ofstream fout("./1/abc.txt"); //folder "1" cannot be created fout <& ...Show All
Pete Baron Why CFileDialog crashed with _WIN32_WINNT defined ahead in platform SDK 2003??
I ever used CFileDialog in a VC6 MFC application, found if define _WIN32_WINNT a new value, such as 0x500, then compiled with platform2003 SDK libraries and header files, this application will get crash after executed CFileDiag.DoModal() method, but it will ocurr in other platformSDKs, how come ps, try my test cods if interest, #define _WIN32_WINNT 0x0500 // defined in StdAfx.h somewhere CFileDialog fd(FALSE,NULL, "disk.i ...Show All
poletnik Candidate function(s) not accessible strange case
When trying to call a __gc class static function in an assembly which has CLR and non-CLR types in its signature, I get a Candidate function(s) not accessible error. In an assembly, using /clr:oldSyntax: TSEShared.h -------------- // TSEShared.h #pragma once #include <string> using namespace System; namespace TSEShared { public __gc class Global { public: static std::string ToCppString(System::String *); }; } TSEShared.cpp ------- ...Show All
Muhammad Adel CFileDialog.DoModal() Crashes When Hint box is about to appear.
I have a strange crashing problem in an application developed on Visual Studio 2005 Standard Edition. The crash comes during a function call to CFileDialog.DoModal(). The problem seems to relate to the "hint" box that appears if you let the mouse pointer linger over a file. If the mouse pointer registers over a file with an unregistered file type, then a hint box appears indicating the file type (e.g. ".slg file"). You the ...Show All
F&#225;bio Lima console application Migration to VS 2005 from VS 6.0
I have a console application developed in Visual Studio 6.0. I can compile and execute from Visual Studio 6.0. I am trying to migrate to Visual Studio 2005. But I get lots of compilation errors like below. Give me some hints on settings for Visual Studio 2005. Thanks, Raj C:\Program Files\Microsoft Visual Studio\VC98\Include\utility(81) : warning C4346: '_It::iterator_category' : dependent name is not a type prefix with 'typename ...Show All
Desolator911 Retrieving CObArray from method
Hi, I need to manage a CObArray object in a class, but this object must be retrieved from another class. How can I implement the method of this class to get retrieved the object in the first class Yeah, that works. Thanks You can try using friend class declaration like below in unmanaged stuff. class ObjArrClass { friend class NeedObjArrClass; // Declare a friend class ...Show All
Bigpoint _beginthread() issues...
I am having trouble sending parameters to a thread via the _beginthread(void(*)(void*),unsigned int,void *); call. I just want to send a single integer... this is how I do it now: void main(){ int x; _beginthread(threadMain,NULL,x); } void threadMain(void* x){ //blah }; I have tried every form of casting that I can think of, in both the parameter sent and the parameter received. ...Show All
sxd Error including queue.h
When I include queue.h I get the following compiler errors in list.h c:\program files\microsoft visual studio\vc98\include\list.h(37) : error C2146: syntax error : missing ';' before identifier 'Length' c:\program files\microsoft visual studio\vc98\include\list.h(37) : error C2501: 'DWORD' : missing storage-class or type specifiers c:\program files\microsoft visual studio\vc98\include\list.h(37) : error C2501: 'Length' : missing storage-class or ...Show All
DonovanDicodemy C4533 warning, "initialization skipped by goto"
Is this warning buggy in MSVC 7.1 or is it just a stupid warning In the example given here: http://msdn2.microsoft.com/library/f7687yks.aspx It makes sense because the condition, (1) will always be true and the goto will always skip the initialization. But the following code gives me the same C4533 warning and it makes absolutely no sense why it should. #include <iostream> using namespace std; struct TOILET { &n ...Show All
khan121 DirList ActiveX usage problem on localized VS .NET
Hi, As I know, VS uses DirList ActiveX component for showing some properies (see VC++ Linker's "Additional Directories" for example). In our integration we used the same approach. We crteated a dialog with DirList ActiveX on it. Here is the fragment from rc-file (part of DIALOGEX section ): CONTROL "",IDC_SLE_PATHLIST, "{442502BA-D873-4a37-9F19-3E38C42A3DDB}",NOT WS_VISIBLE | WS_TABSTOP,6,68,190,59 Gui ...Show All
Henry Hahn - MSFT File open errors returned when trying to open a file for appending
I am trying to open a file for appending. ie. if the file exists, open it for appending, if not, create it. I am getting back a NULL pointer, and do not know why. Here is my code excerpt. It is a C file. FILE *pFile; char *cFileName; cFileName=argv[++i]; pFile = fopen(cFileName,"a"); cFileName has a valid filename ('apm.dbg'), and I have full write permissions in the directory. I can step into fopen and when the file is opened, ...Show All
Marco Alonso Registry editing
I'm having trouble creating the code for a button to change a couple of registry keys. I've searched google for hours and hours now, but all the code I can find about registry editing doesn't work in my version (2005 beta 1). I can't even get the code from MSDN to work So my question is simple (I hope): Let's say I want that button to change the value from Username in the map HKEY_CURRENT_USER\Software\Blasoft\3dgame\ to Savarage, how woul ...Show All
LittleNew Tracking Reference (%), value, ref??
For a while now I have been reading the documentation, for Visual C++ 2005, in an attempt to migrate from native code to managed. I find it hard to understand how to use the different types, and what the equvivalent in native code is. Look at this code: ref class rc{}; value class vc{}; f1(rc^ c1){} f2(rc^% c1){} is rc^ myrc = gcnew rc; equvivalent to rc * myrcN = new rc; in native code And is " Handle to Object on Managed Hea ...Show All
sonali1754 EETypeLoadException
Hi I’ll migrate a VC++ 6.0 MFC solution to VC++ 2005 (managed c++). My solution consists of one exe-file which call’s some MFC extension DLL’s and some MFC extension DLL’s. After I compile the code with "/clr" I get the "Loader Lock" Error on some DLL Main function’s. I have fixed the Loader Lock" Error by the manuals of MSDN library, but now I get these errors when I debug the code: … ' myprogramm.exe' (Managed): Loaded 'C:\WINDOWS\WinSxS\x8 ...Show All
