Answer Questions
AmatuerCoder Dialog Resizing in Japanese XP
In an 8-year old MFC/MDI project under Visual C++ 6.0, I use the default 8-Pt. MS San Serif. For the first time I have heard from a Japanese XP customer that the dialog is being resized and labels are being shifted and/or truncated. Experimentation showed that I could easily reproduce the behavior just by changing font dialog. I assumed that XP was replacing an unknown font with some more universal font. However, 8-Pt. MS ...Show All
_ _ About the extension of properties file
Hi All, I am a beginner in VC++ and I would like to ask a question here. As I had migrated a VC++ project from VC6 to VC7. The program can be built successfully but the program fails to execute. The logic of the program requires to load a properties file and perform some library initialization. (e.g. abc.properties). The program fails to run because the program has some memory allocation problem when I execute it in debug mode. However, when ...Show All
Glenn Burnside Error: LNK2019
Hi I am using MS VC++ .Net (2003) and MS DirectX 9.0 SDK (December 2004). I am getting the following error :- GDPass error LNK2019: unresolved external symbol "public: void __thiscall bullet::gunshot(void)" ( gunshot@bullet@@QAEXXZ ) referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" ( WndProc@@YGJPAUHWND__@@IIJ@Z ) "gunshot()" is a function which is declared in a header file, as a public funct ...Show All
Anthony King How to link to the correct STL library when a third party dll is based on VC6?
I have a third party dll targeted for VC6 and .net 2003. It worked well with my old MFC application. After it was migrated to VC 2005, it throws an exception of access violation whenever the stl string information in the object is accessed. Accessing other members of the object is OK. I guess it might be linked to the stl.net library instead of the old stl library that the dll is based on. Anyone knows what is the problem and how it c ...Show All
easyjiggle build error
after downloading VC beta 2 and spending hours trying to get the header files to be recognized and figuring out how to build a hello world file, i decided to move on to chapter 1 of tricks of the windows game programming gurus and run the sample game called freakout, i recieve this error 1>------ Build started: Project: freak1, Configuration: Debug Win32 ------ 1>Compiling... 1>blackbox.cpp 1>c:\program files\microsoft visual studio ...Show All
doobey Release object code seems now incompatible with debug object code
Prior to Visual Studio 2005, it was possible to link together C and C++ .obj files which were a mix of release (compiled using /MT) and debug (compiled using /MTd) builds. I'm finding with Visual Studio 2005, that the size and layout of C++ class objects which have STL container data members now varies between the debug and release builds, such that this linking of mixed build objects no longer works. Is there a way I can compile my releas ...Show All
TimSpencer Err: Attempted to read or write protected memory - only in VS2005, works fine in VS2003
Hi all I am wrapping an unmanaged c++ win32 dll functions ( export naming decration is c++ ) into a managed c++ dll using IJW. While calling the managed wrapper from C#, it crashes at line where I call the unmanaged function and saying the error "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." If i compile the same managed c++ wrapper code in VS2003 (framework 1.1) and exe ...Show All
grogmaster Repedative Syntax error : missing '=' and ')' and ';'
I wrote this section of code here today and everything went bad and i dont have a flipin clue why! More than likely i am simply missing a very minuet error probably from staring at the same lines of code for the past 7 hours. these are the error messages i get ONLY in the section that i just wrote: in_camera.cpp(453) : error C2143: syntax error : missing ';' before ')' in_camera.cpp(454) : error C2143: syntax error : missing ';' be ...Show All
Elina_anilE checking menu items
How do you check a menu item in Visual Studio.Net 2003 using MFC Lookup SetMenuItemInfo, MENUITEMINFO, and MFS_CHECKED on MSDN. Nathan87 wrote: How do you check a menu item in Visual Studio.Net 2003 using MFC The MFC way is not to manipulate the menu directly. There is a so called OnCommand Handler and OnUpdateCommand handelr technique. In the OnUpdate Handler of your command just use pC ...Show All
Julien Dialog boxes... Can't work it out... Plz help me???
I have been working with MVS6.0 and few days ago i bought MSV2005... i really can't make a dialog box to aapear .... even when i try to adapt a sample code from MSDN Library... plz tell me what to do or send me a sample working program that is using dialog boxes... Thanks for the help... mailto:6pilko@gmail.com Please check http://msdn2.microsoft.com/default.aspx to samples or examples that are spec ...Show All
vedat sivri Please HELP~~~fatal error C1083
I downloaded and installed the Visual C++ 2005 Beta 2. I tried to compile this simple program which is fully compile in Visual C++6 but it bring up this error: "fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory" *********************************************** #include "stdafx.h" #include <iostream.h> int main(int argc, char* argv[]) { char name[20]; cout << " ...Show All
Floorcookie Why does my EXE file fails to run on certain Ms XP and Ms 2000 platforms?
I am using Visual Studio 6 to create my simple dialog-based program. In the setting, I have selected to "use MFC as a static library". After building, I get my Released version of my EXE program. This executiable file does run well on the PC on which I developed the program. However, for the PC without Visual Studio, I found the following problems : 1. The EXE does not run at all on many Win XP or Win 2000 platforms where Visual Studio ha ...Show All
osj function return more than one value
Hi Guys This is just a general question. I am not sure whether this is the right place to ask(as I am new to this forums). Well my doubt is, "can a function return more than one value(other than array)" for example: return result1,result2; if so how would the function be called (supposing "value1,value2=function_()" ) It would be great if anybody can help me with this Well, the term 'function' has a mathematical background, and it m ...Show All
BradFarris Debugging with MSDEV2005
I have converted a c++ dll from MSDEV2003 to MSDEV2005 and than when i try to debug this dll throw many exceptions referring to some files of MFC 7 into a strange "F:\\..." directory that isn't present on my PC. What can i do to redirect debugging (& compilation/link) to Framework 2.0 and latest MFC8 Thanks You are not alone! I watched the same behaviour several times (not with a dll, bu ...Show All
Shlomi Meoded Visual C++ Integral Promotion
For a project of mine I have developed metafunctions for determining standard promoted integral types (4.5) as well as determining usual arithmetic conversions (5p9) based off of passed template arguments, however, I would now like to also take into account Visual C++'s integral types provided as extensions (I.E. __int64, __int8, etc.). That way, my current project and future projects can use these metafunctions with Visual C++'s type extensions ...Show All
