Answer Questions
BettyS Running a program?
I have built a program on calculating the area of a rectangle as the user inputs the length and width. It works fine, however, my question is. If I want to send it to someone, what files from the whole folder do I need to send (.zip ). Also, how will they be able to run it, without a compiler. I can easily run it from: C:\Documents and Settings\Peter\My Documents\Visual Studio 2005\Projects\optut\debug however, as I've seen other progra ...Show All
Mike Nason Singular preprocessor definition needed
This is my first post, I hope to be clear enough (sorry for my eglish) and I hope to be lucky and find the answer to a very big problem. I have a VC++ project and I need to create, during the compilation, a define that has the same name of the file that I am currently compiling. For example, if when I am compiling a file called Main.c I need to create runtime a define #define main 1 I do this by specifying the in Preprocessor Definitions secti ...Show All
M D L DirectDraw interface
I want to use DirectDraw7. I include DDRAW.H and add a DDRAW.LIB to Win32Project. My code is: LPDIRECTDRAW lpdd=NULL; LPDIRECTDRAW lpdd7=NULL; DirectDrawCreate(NULL, &lpdd, NULL); lpdd->QueryInterface(IID_IDirectDraw7, (LPVOID*)lpdd7); And there is a error: Error 4 error LNK2001: unresolved external symbol _IID_IDirectDraw7 DDraw_Using.obj Why i have this error IID_IDirectDraw7 is defind in ddraw.h. I using DXSDK ...Show All
redwyre Compile warning D4024 and Link error LNK1181
I'm trying to convert a couple of projects from VC7.1 to VC8 and encounter this erorr for building /rebuilding every project. I have VS2005 Professional Edition, SDK 2005 April, Windows 2003 SP1 DDK installed. Error message: 1>Compiling... 1>cl : Command line warning D4024 : unrecognized source file type 'y_/', object file assumed 1>LINK : fatal error LNK1181: cannot open input file ' |/.obj' Please give some idea. Thanks. ...Show All
BabyToys Is there any way to view contents of clipboard ring?
I understand that in VS 2005 the contents of the clipboard ring can be accessed via the keyboard, but I would like to be able to view all of the contents so that I can select what I want to paste. This is a feature of 2003 that I use constantly. Is there any way to do this in 2005 Thanks. I can get the toolbox window to show up in VS 2005 (RC1), but I do not see the Clipboard Ring there (an ...Show All
cj74 How to put a struct with __m128 member in a std::vector?
I have the following code: #include <xmmintrin.h> #include <vector> struct Vec { __m128 m; }; std::vector<__m128> foo1; std::vector<Vec> foo2; // Error C2719 I get C2719 in the designated line when I try to compile this. I'm confused about this. How can this be solved Do I have to write struct Vec { float m[4]; }; and change all methods and operators (not shown) that work on the member t ...Show All
Sean Olson LNK2005 from a C++/CLI dll linking against a non-CLR C++ static library
Hello all- I have some static C++ libraries that I wrote in VS2003 but which upgraded fine when i went to VS2005 Pro. In them i overload the global versions of operators new, new[], delete, and delete[]. I also use the STL and parts of boost (shared_ptr<> and weak_ptr<>) pretty heavily. They have dependencies on various windows libs (dbghelp, winsock, etc...). These static libraries have no common runtime support a ...Show All
Dave Abrahams Missing Class Designer for VS2005 C++/CLR projects
I'm reviewing VS2005 right now to see how we can use the new tools that come with it. However, I was not able to access the class Designer from a VC++ project. I found it in VC#. Where is it Please don't tell me it is not availlable in C++! Stephane Guerin Hi Stephane, Could you please log your suggestion concerning have such designer in C++ You can log the issue at http:// ...Show All
garmhappy doesn't allow macros in property pages
I have VS 2005 beta 2 In the project properties -> any field -> macros, it highlight the macros when i double click the choice for ex $(ProjectDir) but it doesn't appear ont he text box. thanks This is a bug that has existed since VC7. Automatically inserting project macros only works in when inserting in edit boxes (dialogs that allow you to enter semicolon separated strings) but does not work in dialogs where you enter different di ...Show All
Tewks 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. desijays wrote: 1) what is the difference between ".h" files and "lib" files Header files (.h) contain ...Show All
Nick Piazza Attributed ATL - bad codegen in debug mode - any known issues?
I'm seeing a really nasty issue with some attributed ATL code. What I have is a class along the lines of class __declspec(novtable) MyComObject : public IMyInterface , public IPersistPropertyBag , public IObjectWithSiteImpl<MyComObject> /* injected base class */ { ... ... STDMETHOD(SetSite)(IUnknown* p) { IObjectWithSiteImpl::SetSite(p); // bad codegen here While all other members or base references are just fine, there is an additional ...Show All
Gdombroski partial class how-to?
hi, i have been looking at the microsoft help files and how-to's with no luck on finding how to create a partial class. I need to create a partial class for a datatable i am using. the first information i found just didnt work at this location in the help file... ms-help://MS.VSExpressCC.v80/MS.NETFramework.v20.en/dv_raddata/html/dfbc21eb-7ea2-4942-addd-49677f5493be.htm the link on that page to the partial class definitions also didnt work when ...Show All
bygosh I'm stuck and cunfused. ARR U C++!
ok. i made a small ...small SMALL msdos program with Visual C++ express (yep a newbie) and all it was, was a whats ur name age and if u like this kind of music or game. now i figured out the whole press one if u like this or press 2 for no. but i want to make it a says YES FOR YES! and so on. get it good. here's my code. im really stuck #include <iostream> using namespace std; int main() { int number; /* This de ...Show All
Brad Carroll the end of binary file
Hi all, I'm using fstream object to read a binary file, but I don't know if it reachs the end of the file, because the eof() function doesn't work for binary files. I always read one more time from the file. That is to say, if I just write one int value to the file, and then I read it. but as a result, I entered the following loop two times. I know the read() fuction consider EOF as a valid content, but I have no&nb ...Show All
Joe Z. Creating views for static splitter
I have a working shell namespace extension with a listview in the shellview window in the windows explorer. Now, I want to make a static 2 row,1 col splitter in the shellview with the previous list in a top row and another CWnd derived class in the lower. The problem occurs later, read on. Here's what I have in the CreateViewWindow: STDMETHODIMP CIsdShellView::CreateViewWindow(LPSHELLVIEW pPrevView,   ...Show All
