Answer Questions
maxithron could you tell me the result of this code?
I hold the idea that the current result of this code is 0,but in vc6 and vc2003,it's result is 10! could you tell me why btw,the result if this code is 0 with java compiler. int main() { int a=0; for(int i=0;i<10;i++) { a =( a++); } cout<<a<<endl; return 0; } This is an interesting one, you're asking for a to be set to a, then for a to be incremented. If Java has different rules re ...Show All
William_Ryan MVP .manifest problems
I have built an exe and number of supporting dll's with VC8, using the make command mt. exe -manifest $@.manifest -outputresource:$@;2 to embed the .manifest's, after which I delete the .manifest's. I can run these applications fine on the computer I built them, but on any other computer, I get the error "The application failed to initialize properly (0xc0150002)". If I run in msdev.exe (VC6), I also get the message "Could not ex ...Show All
Erik Bouvin multi-languages and Doc/View architecture
Hello all, I am trying to internationalize a previously french-only application that uses a Doc/View architecture. I could see how to make language-specific resources but can't find out how to integrate them in my architecture. Could someone give me a hint, please Jean-Marie Epitalon Mourjou France Hi Jean-Marie Here is a link that includes pointers for related issues: htt ...Show All
FabrizioC BUG MFC 8.0 (same in 7.1 and 7.0) CRecordset::GetFieldValue using UNICODE
Hi When using GetFieldValue to get a CString value in UNICODE the CString size is twice the length of the string because the CRecordset uses SqlGetData odbc api that returns the number of bytes copied to buffer and not the number of WCHARs. So when CRecordset issue a CString::ReleaseBuffer(SqlGetDataLen); the CString becomes with twice the size of the real data. Making use of CString += results in bad strings ... PS.: This problem exists in MFC ...Show All
ashk1860 inline function
I have a set of functions that I'd like to make inline using VC++ 2003. The functions are compiled sparately from the calling function. I've attempted by placing inline before the function name and in the prototype statement but the function is not found. Do I need to use IMPORT, extern or something like that I can't seem to find an example anywhere to emulate. Thanks, RON C FUNCTION: inline int index_4 ( int jstr, int ks ...Show All
WilsonY required libraries for 64 bit applications
Hi, We have been developing 64 bit apps (straight C++/MFC, no .NET) for some time and now need to distribute executables to non-developers who do not have VS2005 installed. What libraries need to be installed on client machines and how do they get installed Thanks John Avis John, could you let us know how you created the set up project. Also what are the architectures for your development/host machine and your ...Show All
MAtkins Simplest way of doing this
Hi All, I have to create a file named (Test.xml) with the following contents in XML Format. < xml version="1.0" > <MyProfile xmlns=" http://xyz.com "> <Root> <Name>Harry</Name> <Place>New York</Place> <Country>USA</Country> </Root> <VehicleType>CAR</VehicleType> <MaritalStatus>SINGLE</MaritalStatus> <Personal> <Age>23< ...Show All
Pintag Problem running program in release mode. Please help.
Project was created using old beta version of VS2005. Everything work fine using April CTP Team Suite. After upgrading to August CTP Team Suite, program runs fine under win2K (both debug & release). But under winXP, only debug version runs, while release version gives errors and exits. Below are the messages that I got in the output window. The program exits even before going inside Main() function. I tried to ...Show All
ACS Use methods as Callback
Hi all, I’m asking for help. I’m developing a user interface for a cross platform simulation that is using glut. I would like to create a C++ wrapper for the initialization of glut. I’ve created the following objects: Class CApp { public: CApp(); virtual void __cdecl displayFn(void); virtual void __cdecl keyFn(unsigned char, int, int); ... private: virtual void __init(); ... } ...Show All
Sternman CDialog
i create an MFC program with database and some of them of the data is inserted by dialogs how can i move from one dialog to another dialog without closing the first dialog and work with two dialog in the same time like the MFC MDI documents As Martin said, use modeless dialogs. I've got an article on using modeless dialogs, including how to manage multiple dialogs : http://www.codeproject.com/dialog/gettingmodeless.asp You have ...Show All
hero281 link error: LNK1104
I am trying to use a c++ library which I downloaded from the internet tiger.la.asu.edu/C_lib.htm. I was getting a error regrding LIBCD.lib and libcid.lib. When I ignore these libraries I get this error : LINK : fatal error LNK1104: cannot open file 'and.obj' How do I fix this error I don't know what 'and.obj' is or where to find it.It is nowhere on my computer.Im using Visual c++ 2005 Express Edition. Thank you for your ...Show All
kevinspace 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: Should I use TCITEM structure instead of string If so, I guess it is more complicated way, isn't it You can obmit the delete. This adds the new entry in front of the last one: if (selectedTab == numberO ...Show All
AliTavakol Problem with generic class declaration on C++/CLI
Hi all, A couple of days ago I saw the following C# declaration for a generic class. Which is a very helpful construct in some situations. namespace ns { public class Base { public int data; } public class GenericBase<T> : Base where T : GenericBase<T> { public int data2; } } I’ve tried to convert the above declaration into C++/CLI but ...Show All
muko error C2143: syntax error : missing ';' before '^'
<Amitoj@discussions.microsoft.com> wrote in message news:c34e795e-45b4-4682-884e-b4cf9e47f5de@discussions.microsoft.com > I am writing a VC++ .NET + DirectX9 App using VS 2005 Beta 2. > > I am getting following error - > 1>c:\dojo2\mc++dx.net\mc++dx.net\StingRay3D.h(19) : error C2143: > syntax error : missing ';' before '^' > 1>c:\dojo2\mc++dx.net\mc++dx.net\StingRay3D.h(19) : erro ...Show All
MARViN2003 On adjacent ">"s in a parameterized declaration
Hello, There is a syntax erron in the following code -- adjacent ">"s need a delimiter (it is marked AAAA) template <class T> class A {}; template <class T> class B {}; int main() { A<B<int>>(); // AAAA } But VC8 can compile it. It seems to be a error but on the other hand Mr. Stroustrup have being dreaming on such a syntax for ages and he promotes it pretty vigorously now, as far as know. So, I a ...Show All
