Answer Questions
Nathan Dolly simle form in c++
CODE bool InitWindowApp(HINSTANCE instanceHandle, int Show); int Run(); LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR pCmdLine, int nShowCmd) { if(!InitWindowApp(hInstance, nShowCmd)) { ::MessageBox(0, "Failed to create Window!", "Fail", MB_OK); return 0; } } bool InitWindowApp(HINSTANCE instanceHandle, int Show ...Show All
Chikuu Program terminates without finishing code
hi... what is happening when a program terminates (no error messages) without executing the rest of the code my code is attached below. The while loop does not iterate and after one iteration, my program exits. I don't know what is wrong and how I can debug... Thanks for any help. #include <stdio.h> #include <speex/speex.h> #define FIXED_POINT #define MaxFrameSize 500 #define MaxFrameBytes 500 int main (int argc, char ** argv) { &nbs ...Show All
Suma Sushilendra DEBUG ASSERTATION FAILED....when cleaning out SPRITE vector in GAME
Hello, I'm having a problem with algorithm,which I have from the 2D GAME book to clean up resources. I remember to have there a bug and caused my game to crash, but that did not happen every time, or not in few mins of play. I stopped working on that some time ago and now working on 3D GAME. I implemented this algorithm to my new game and it makes my game unplayable - when I call that function CLEANUPSPRITES - here it is vector< ...Show All
Dan Dieckmann Where's my VC++ 6.0 keyboard layout (Beta 2) ?
Maybe I'm just not looking at the right place, but I can't find a way to go back to my old VC++ user shortcuts. Old habits die hard ;-) The only options I have are: - Brief - Emacs - VC++ 2 - VS 6 (not VC++ 6) Is the support for VC++ 6.0 shortcuts gone in Beta 2 I had a very strange experience today. I was happily coding away, when suddenly my F7 and Ctrl-F7 didn't start my build anymore. I went to the options and fo ...Show All
akortz Where is uuid.lib in VS .NET 2003?
Hi Dennis! Does anyone know how to either: 1. remove the uuid.lib dependency (I cannot figure out where it is coming from) 2. download uuid.lib It should be in the following directory: %ProgramFiles%\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Lib -- Greetings Jochen My blog about Win32 and .NET http://blog.kalmbachnet.de/ Dennis, It is possibl ...Show All
Bryan Dunlap Will porting a project from Visual C++ 6.0 to Visual C++ 2003 improve look of GUI?
We are about to embark on upgrading from 6.0 to 2003 (and possibly 2005 to follow shortly afterwards). We are fairly sure this will give us some nasty headaches through compiler changes, but what we'd like to know is will we get a more XP-like look to our UI through compiling it with the newer libraries - The project uses MFC. I found that if I used the (very similar) manifest on MSDN then it worked. So thanks ...Show All
vba-dev Exit(); VS 2005 ?
Hi all, I have recently come from using Borland's C++ to Visual Studio 2005 and currently creating simple apps to become more familiar with the new environment. I have created a from with a MenuStrip which has a sub-menu called Exit - to obviously terminate the app. This was started by using New|CLR|Form Application then adding a menu control to the form. Below you will see the event handler that this has created. What code do I need t ...Show All
Yadira How to randomize STL list using std::random_shuffle??
Using Visual Studio 2005. I have the following bit of code which generates a bunch of baloney errors... ideas : #include <stdio.h> #include <list> #include <windows.h> #include "DiskAccess.h" #include "resource.h" #include <algorithm> // by the way somewhere <string> gets included too... don't know if that matters list<MySlide*> slides; // fill the slides up dynamically here list<MySlide*>::iterator begi ...Show All
SWA problems after updating sdk
Hello, I have visual studio 2003 .net. After I updated the sdk my programs wouldn't compile( they worked before). I mention that I have registered psdk directories with visual studio. this is the error I get e:\Documents and Settings\me\My Documents\Visual Studio Projects\2 10 2 10\stdafx.h(34) : fatal error C1034: afxwin.h: no include path set The include directories look like this: C:\vs\SDK\include $(VCInstallDir)include $(VCInstallDir)atlm ...Show All
klika84 Lininking as Single-Threaded in VC, Win32 Console
Hi everyone, Im using VS 2005, writing a Win32 console app. I would like to link my program with the single-threaded CRT libraries (compiler option, /ML), rather than the multi-threaded libraries. See: http://msdn.microsoft.com/library/default.asp url=/library/en-us/vclib/html/_crt_c_run.2d.time_libraries.asp When I look at the Property page for my soure code I only have options for linking with multi-threaded CRTs. Specifically, I right ...Show All
Neela Where can I get ml.exe
I've just installed VC++2005 Express, and I couldn't find ml.exe anywhere. Where can I get ml.exe (no need for the rest of Visual Studio) Thanks! We are currently investigating different options and will keep you updated. Thanks, Ayman Shoukry VC++ Team I don't believe ml.exe is provided now except through VS versions. Unfortunately, VC Express doesn't include ml.exe and it only in the other SKUs. Nevertheless, you are ...Show All
Orcabelle STL with VC71
Question regarding STL on VC7.1 (MSVisual C++ .NET 69586-335-0000007-18460) My challenge is a linker error when I attempt to use STL strings. I can define the string (e.g. std::string exStr;) without error, but can't assign it (e.g. exStr = "test string";). I've tried linking in libraries as suggested in other forum threads, including libcp.lib, libcpmt.lib, or msvcprt.lib, but to no avail. Here's the specific error: V ...Show All
NCGrimbo Is there any thing equivalent to NotOverridable in C++?
Hi guys, My problem is this. class Base { public: void OneFunction() { cout<<"Base"; } }; class Derived:public Base { public: //overriden, I ...Show All
cassman47 Performance impact of RTTI?
I understand that turning on RTTI increases executable/dll sizes. However, there is an ongoing debate as to whether turing RTTI on has an impact on performance due to other differences. The basic argument is this: RTTI adds extra information (which means extra bytes) during a function call. This, in turn, makes for missed cache hits because more information is going through the processor. I'm not really looking for a discussi ...Show All
Yao Addae how to determine if an open file is NUL: or not
Hi, I'm trying to determine if an open file that is passed to me is the NUL: file or not. On Unix, I do: (once) open /dev/null, fstat, and save the st_dev and st_ino values then, in my is_file_null (int fid) routine, I do an fstat() on the passed-in file number, and compare the st_dev and st_ino values to /dev/null's. On WinXP Pro SP2, fstat() seems to return the file number as st_dev (manual implies that, a ...Show All
