Answer Questions
SethHersh general question regarding arrays and functions
Writing another program for school and I've got something seriously screwed with this one. I may have to post code for this, but I have my main function that calls another function(switcher), I'm trying to pass two arrays to this function and have that function switch the lowest value in one array replace it with the lowest value in the second array and vice versa. The problem is when I compile the program, it builds with no errors or warnings, ...Show All
Shajan Dasan Memory Leak and New
I'm a bit confused about the utility of crtdbg.h if I use the new function. If I use malloc I get a nice report saying that line x of file y leaked z amount of memory. Nice. If I use new, I get a pretty useless report that line 691 of crtdbg.h leaked z amount of memory. Well gee, thanks. I KNEW that new is being redirected to that inline function in crtdbg.h, I was kinda hoping maybe you could tell me where I came from, not where I went. Here is ...Show All
tang.hz C2825 error ?
the following code will generate a C2825 error in VS2005Beta2 July: #include "stdafx.h" #include <vector> #include <iostream> int _tmain( int argc, _TCHAR* argv[]) { int i = 3, j = 6; std::swap< int >(i, j); //C2825 //but use std::swap<> <i, j>; will be ok return 0; } I don't know why this , but who else can explain it to me many th ...Show All
Gray Ghost Single instance application
Hi, How can I manage to set a CWinApp application as a single instance app, that is, it can be run only once at a time Thanks Yeah, I have everything I need. Thanks Should help: http://www.flounder.com/nomultiples.htm ...Show All
sko Building VC++ proj files using MSBuild
We use VS 2005. What is the best approach to automate the daily build process How can we use the MSBUILD to automate the build process for an application consisting of several projects( about 40) Are there any samples or documentation available to build multiple projects The application is in VC++(un-managed C++ version - it compiles to native code). I am able to compile a single project using VCBuild. I would lie to know how can we build all ...Show All
Selva.Ram Visual C++ lagggggggg
I am currently looking into which language I should stay with, I feel like C++ is being abandoned and C# is being moved in. What do you guys feel is the better language for game development and 3D tool design, ie CADs and etc. I just talked to some game developers (they develop a core graphics engine that is used by other gamers) they definitely do not think that computers today are fast enough. They have to re ...Show All
JimBone 'static binding' with C++/CLI?
After asking this question in the VC++ Express forum and not receiving a single answer I gather this forum section might be a better place to search for answers. I have a C++/CLI solution I created in VS2005 Express consisting of a windows forms project (the main programm) and a few libraries - now I'd like to create a single executable instead of an executable and a bunch of dll files. As I can't create static C++/CLI libraries (or can I ) ...Show All
JunJie1800 How could I know it is VC 8 or lower?
For some reason, my code has to work under Visual Studio 2003 and Visual Studio 2005. I want to know which I am using to define my define accordingly. For example. The following code: #ifdefine VC8 typedef __time32_t my_time_t; #else typdef time_t my_time_t; #endif The reason I am doing this is time_t, by default, in 2005 is 64 bit. I need a 32bit time_t. Thanks. Great! ...Show All
TraGib Like to know correct API to get screen resolution on monitor?????
Hello, I like to know the API that can give me the screen resolution set on the screen display (monitor). Anyone know that API Pls name it for me. Thanks. Thank you for the link. But I want to find out about the resolution setting on a monitor if it is set at 1024x768 , 800x600 , or 1152x864 etc... I look at the link already and can't find the right parameter value to get resolution output. Can you ...Show All
SBORA no debug info
when i start my app in the debugger, the ide issues a warning about one of my dlls not containing debug info. however, the dll has been built with debug info. any ideas what would be causing this (build.log below) WM_THX thomas woelfer http://www.die.de/blog Build Log Rebuild started: Project: kernel.native.calculations.design.concrete.bending, Configuration: Debug|Win32 Command Lines & ...Show All
Jeremiorama Internal error message with invalid inline assembly
The following C or C++ code causes the VS8 compiler to generate an internal compiler error. __declspec ( naked ) void Function( void ) { __asm { MOV [ESP], OFFSET return_fixup return_fixup: RETN } } The first assembly instruction needs a size specifier, IE "DWORD PTR". Instead of generating code saying "unkn ...Show All
Christian Liensberger - MSP Dialog + Modeless
HI, I am trying to create a dialog. I have a .EXE which already as its Dialog and this dialog is create with the function DoModal(). This EXE loads my dll. and at some point my dll needs to lauch a modeless dialog... I have tried the following: DlgPtr = new DlgClass(); DlgPtr->Create( IDD_FIRST_DIALOG ); DlgPtr->ShowW ...Show All
GenxBear Where is RLTOOLS.EXE?
I tried ftp://ftp.microsoft.com/softlib/mslfiles/rltools.exe or http://support.microsoft.com/download/support/mslfiles/RLTOOLS.EXE , but I received the "Not Found" error. I try to search microsoft.com for it, and I receive the same error. Where has RLTOOLS.EXE been moved Can anyone help me Thanks. Not sure why you don't find it: it is here: ftp://ftp.mic ...Show All
BaskChang Interop with Struct
If I have following class in C++. How should I declare the unmanaged code in C# typedef void * MQISDPCH; /* Connection Handle */ /* Information required for MQIsdp server connection */ typedef struct struct_SVRS { long portNumber; char ipAddress[MQISDP_INET_ADDR_LENGTH]; } MQISDP_SVR; /* Connect parameters - fixed length portion*/ typedef struct struct_CP { long version; long strucLength; /* Fixed length plus variable ...Show All
NancyM LIBCMT.lib not found (LNK1104 error)
Hello, I'm trying to compile Christian Werner's Sqlite JDBC driver under WinXP using Platform SDK and VS2005. This process breaks with the follwing error message: Microsoft (R) Program Maintenance Utility Version 8.00.50727.42 Copyright (C) Microsoft Corporation. All rights reserved. cl -I. -Isqlite-3.3.5 -I"C:\Program Files\Microsoft Platform SDK\Include \crt" -DHAVE_SQLITE3=1 -Gs -GX -D_WIN32 -nologo native/fixup.c cl : Command lin ...Show All
