Answer Questions
Bronco Billy Help ?
If i read some of the other post i came ot the conclusion that this was somewhat gonna be the dummest question on the forum i guess... but here it goes anyway When i use the Visual C++ compiler / environment ... the free downloadable one. and i write this sourcecode #include <iostream> #include <iomanip> using namespace std; main() { cout >> "Hello world!" ; cin.get(); } it would run and compile great ...Show All
BruceVik Retrieving specific digits of a variable value
Hi guys, I just had a quick question. Say I have the user enter a value for a variable, x. How would i pull a specific digit from it So if the value put in by the user is 23, it will assign 3 to the variable. Or if he enters 234619 it will take the 9 and assign it to x. Thanks in advance. <SoheilsX@discussions.microsoft.com> wrote in message news:d5285a95-130a-4d67-a41d-a69b12f92463@discussions.micros ...Show All
btb73 whats wrong with declarign a pointer?!?!?!?!
hey guys, this is dead simple, i have an mfc application with shared dll. i declare a pointer as follows: int* t = new int [2]; and its exceptioning saying out of memory! wahats wrong with that i know that i can do it using int t[2]; but i want this as a breif explaination of another problem i have. i cant spot why it doesnt like it at run time! ok well the code is abit too much but here is the section where ...Show All
peterko REBUILD
Hi, I am trying to build my solution but I am getting the following errors. Does anyone have a solution to this ------ Rebuild All started: Project: Misc, Configuration: Debug Win32 ------ Deleting intermediate and output files for project 'Misc', configuration 'Debug|Win32' Compiling... StdAfx.cpp c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxv_w32.h(228) : error C2065: 'DWORD_PTR' : undeclared identifier c:\program ...Show All
Ramon Casha Mixing Templates and Generics
I think I've raised this questions a couple of times and the first time some three years ago - and have never got a real answer. Why does the language disallow mixing templates and generics. What's wrong with: template < typename T > value struct outer { generic < typename U > void foo(); }; or generic < typename T > ref struct outer { template < typename U > void foo(); }; ...Show All
GregBowie SxS Issue? R6034.
Hello, I've been having a problem for nearly 3 hours where I've spent my time looking through manifest examples, reading forums, running through configuration and still to no avail, my program blows up. It's giving me the, as I have seen, common error: R6034, "The application has attempted to load the runtime library incorrectly. Contact support for more information". This happens when it attempts to load my ...Show All
Yogita Manghnani - MSFT 'cli::array<Type> ^' to 'void *'
Hello Everyone, thats how it looks cli:: array < unsigned char > ^passwordHash how can I convert to void *, I'm passing to a function which looks like this... int sha_hash( const void * init_data_ptr, int data_length, void * buffer_ptr, int buffer_length, void * prefix_ptr, int prefix_length ) Its gonna get sent as (void * buffer_ptr) Any help really appreciated... Thanks, Ha ...Show All
Kapadia Shalin Shouldn't this generate a warning? (const, non-const)
class foo{ void bar( const long var_name); }; void foo::bar(long var_name){ } Since it's declared const in the class, shouldn't the member definition need to be const as well I understand that from a code generation point of view it may be irrelevant, but it strikes me that seeing this would mean that the coder made a mistake since and would have intended for them to agree. ...Show All
Stefaan Clement 'Long' using 12 bytes rather than 4?
I am new to Visual Studio/ C++, so have been working through a book. As with other text books, it suggests checking that long variables take 4 bytes and that consecutive variables are separated by 4 bytes. Using 'sizeof' on two variables gives 4 bytes each, but looking at their addresses shows a separation of 12 bytes. (I am using Visual Studio 2005 version 8.0.50727.42.) Using my Borland compiler, on the same code, gives 4 bytes seperation. ...Show All
Kelvin Tse Intrinsic available for reading CPU flags
Hi. I'm looking for intrinsics that allow me to read CPU flags, especially the carry flag would be important to me. I'm writng x64 application so I have no possibility to use the inline assembler therefor. I would need the flag register to check wheter a value assigned to an unsigned __int64 caused an overflow. Thanks in advance, Trenor seems without inline assembler, it's hard to retrieve the flag register. ...Show All
Leedo Exporting functions with _declspec(dllexport)
Hi, I have a DLL library and I export classes from this library. All classes and their method are properly exported and can be seen in "dumpbin /symbols mydll.dll" output. I use the standard _declspec(dllexport) and _declspec(dllimport) approach. All classes lie under a namespace like: namespace MyDLL { MYDLL_EXPORT void init() ; // Implemented in MyDLL.cpp class MYDLL_EXPORT MyClass // Methods Implemented in MyDLL.cpp ...Show All
Slag API documentation
I've just downloaded Visual C++ Express Edition. I have a couple of questions. 1) what is the difference between ".h" files and "lib" files 2) How do I find reference for the various classes that come with VC++ Express (Like the Java API documentation for the classes that come with the language Thanks in advance. oh i found the answer for the 2nd question. All the reference that is required is found in the Online help feature of ...Show All
Alexander Podelko Compile error C1083
Hello all, I got the following error when building a Visual C++ MFC application using Visual Studio 2003 on Windows 2000. Compiling... stdafx.cpp c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\afx.h(182) : fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory Does anybody know where can I get that file Thank you, Following is the compile log: Build Log ------- Build started: ...Show All
atreat circular reference in parent/child classes
I have been trying to understand some code that another guy wrote, and though his code compiles and runs, it seems like it should never have compiled. He has 2 classes. One class is basically the parent, and it includes a pointer to the child it creates. As the child is being created, the parent passes the constructor a "this" pointer, so the child can later access variables in the parent. When I try to duplicate this logic, ...Show All
Shining Arcanine STL for Managed C++
Is anyone interested in porting stl for Managed C++. I know that Dinkumware is coming up with STL.NET but its meant for specifically VS.NET2005. But my application is already written in VC++ 7.0 and I am not ready to port it "again" to VS.NET 2005. pardgr8 wrote: After lot of struggle I realized that a STL is easy to use with the managed c++. What is needed is an unmanaged wrapper for your managed cl ...Show All
