Answer Questions
TCSC mfc build problem in vs2005
I have been getting the following error messages whenever I try to build MFC programs, and on MFC programs that have previously built without error. I've tried compiling each file seperately, and, you guessed it, each one gives me these same error messages. I've tried rebuilding the MFC Include directory, reinstalling VS, and still continue to get these errors whenever I try to build or just compile. Again, they have previously build just fine. I've scoured the headers, and can find no issue. I've built, rebuilt, compiled, all to no avail. I'm currently using the trial edition of VS Pro that I installed on 8/1/2006 (though I fully plan to purchase the full version as soon as my financial situation allows). Is that an issue with this ...Show All
han33981 Problems with VS2005
Following a mini-rant regarding the quality of VS2005 on the DirectX Dev list, it was suggested that discussion was continued on these forums, so I'll try and quantify my earlier rants/complaints with real problems I've encountered over the last six months. It should be noted that all these problems I've encountered are with the Professional version of Visual Studio 2005, building native C++ projects targeting x86, x64 and Xbox 360. My PC is a dual core 2Ghz AMD with 2GB of RAM and an X800 ATI video card. IDE Aside from the performance issues, which I'll get to in a minute, these are the main problems I have with the IDE in VS2005: Configuration Manager is broken. Really broken. Changing platform or solution configuration l ...Show All
Peter van der Veen NL VC 2005 with DDK 3790.1830
Hello there,I'm new to driver development. and i thought of using VC++ as my tool. I know it is possible to use VC2005 and the DDK together but that needs some configurations that i couldn't find over my internet search. Could someone please help me with configuring VC2005 to work with the DDK Thanks Hello Re: VC 2005 with DDK 3790.1830 Firstly, sorry for such a long delay in anyone replying. Unfortunately such questions are outside the scope of this forum - for the scope of the VC Language forum please look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=789657&SiteID=1 . Therefore I assume most readers ignored your post as it does not match with the scope (and therefore the talents) o ...Show All
Skugga list boxes and data sources...
Here is what i am trying to do: listBox1 displays information from a database. when I click on an item in listBox1, listBox2 displays information from another table. However, i try putting this code in: private : System::Void listBox1_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e) { if (listBox1->SelectedIndex.Equals( "Elves" )) { listBox2->DataSource = "gamestaBindingSource2" ; } else { listBox2->DataSource = "gamestaBindingSource3" ; } } The program runs, but when you get to this section, the following error appears: "An unhandled exception of type 'System.ArgumentException' occurred in System.Windows.Forms.dll Additional ...Show All
WinstonPennypacker Active-x Control
HI Friends, I am creating a Active-x Control. I am getting Problems Regarding the linking of Butttons In my Active-x Control. I need to know how to link these buttons in my Active-x Control. Plz help in resolving my poblems. Please see your other thread on the proper use of this forum. Thanks. Your other thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1289506&SiteID=1 ...Show All
Bigwave no appriciate default constructor
Hi everyoune. What's a reason I cannot compile source code which is similar to one following below. VS 2005 compiler generates an error (C2512) error C2512: 'CControlCp<F>::CNodeCallback' : no appropriate default constructor available class Cp { public : Cp(Env env); Cp( const Model model); Cp(CpI* impl = 0); } class CallbackI { protected : CallbackI(Env env); virtual void main() = 0; } template < class F> class CControlCp : public Cp { class CNodeCallback: public CallbackI { public : // CNodeCallback(Env& env): CallbackI(env) {}; // when it's non commented the same error occurs CNodeCallback() {}; ~CNodeCallback(){}; }; ...Show All
nhaas How to overload the ">>" operator for a user-defined type
Hi, I have a Location class in my project, and I need to read a Location object by using cin >>, eg: Location locationObject; cin >> locationObject; I'm wondering if there is a way to overload the >> operator for a user-defined type like this. I trid to code the overloading method: istream& operator >> (istream& is, const Location& addLocationObject) { return is >> addLocationObject; } The compiler does not complain, but there is a error at runtime when the >> operator is called: "Unhandled exception at 0x00414219 in C++Project.exe: 0xC00000FD: Stack overflow." and it's pointing at the second line of the method above. Any suggestion Thanks in ...Show All
fibonacci1123 Question on including header files to project in VC++
The question might sound dilly but couldnt find a proper answer. I created a new project in VC++ 6.0 and included an existing header file into it but when I try to use it in a cpp file (also in the same project), I still have to include the header file specifying its exact location. I thought if i add the header file to the project, i can just write # include "xxx.h" in my cpp file and the header file would be automatically found. Instead I am having to write the path of the header file in the include. Am I missing something Thanks, KarthikR It would have been nice if VC++ IDE could automatically add a header file to the include path, if it is added to the project. In that case, you could jus ...Show All
Vishalbhambure Building trouble : error LNK1104: cannot open file
Hi every body, I'am in serious trouble cause i can't find the solution of my problem. I'am trying to convert an .exe into .dll file after i downloaded the source file of the .exe . I inserted the source code into a "MFC AppWizard(dll)" project and compiled it (was ok) and when generating the .dll file (after i mentioned the "Object/library Module" under the "Project/Settings/Link" Menu ) i got this error : Linking... LINK : fatal error LNK1104: cannot open file "C:\dll3\VisioneerDll\twaintest\Debug\twaintest.lib" Error executing link.exe. Creating browse info file... twaintest.dll - 1 error(s), 0 warning(s) with out mentionong this library ( which is not correct cause the librar ...Show All
ens Integrating the Platform SDK with Visual Studio
Well I, It looks like you really now what you are talking about. I was just wondering, I just downloaded Visual and SDK but I am really confused on the steps. Step 3: this is where I have to update the directories, I just dont get it. !!! I have no clue how to do that. HELP ok...I know my problem is on the Directories...if I go to Tools>Options>Projects and Solutions...Then What am I supposed to put on the 3 lines: Visual Studio Project Location: Visual Studio user project templates location: Visual Studio user item template location: There's another way to integrate the Platform SDK with Visual Studio (assuming you have a recent version of the Platform SDK). There should be two shortcuts ...Show All
Namshub CRichEditCtrl Problem
Hi, This is done in VC++ MFC I have created a vector vector<CRichEditCtrl*>RichEditBox; CRichEditCtrl *r1 = new CRichEditCtrl; r1->Create(WS_CHILD|WS_VISIBLE|ES_AUTOVSCROLL, CRect(x1,y1,x2,y2), p, 1); r1->SetEventMask(ENM_CHANGE | ENM_SELCHANGE ); RichEditBox.push_back(r1); With the above code I get n cricheditboxes on a window . How do I navigate within these boxes using Up Down Arrow Keys Pritha I'm sorry, but try to get KeyPress message, and then you can call "SetFocus()". Thanks. Hi I tried giving the WM_KEYDOWN message but when the a key is pressed on a CRichEditCtrl on the view window the control does not go to the WM_KEYDOWN message function. If a key i ...Show All
dmcnulty internal compiler error (compiler file 'f:\vs70builds\6030\vc\Compiler\Utc\src\P2\p2symtab.c', line 4537)
I'm getting the following error when trying to compile a C++ file in VS 2003 with SP1: fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'f:\vs70builds\6030\vc\Compiler\Utc\src\P2\p2symtab.c', line 4537) It happens on the following line in my code: const char* p = "SomeText"; If I were to change this line to something like const char* p = "SomeOtherText"; then it would compile just fine. I've trying doing a complete rebuild, but the problem is still there. Any ideas what is going wrong I am doubtful you'll get a meaningful resolution on this by asking the forum on this. This is a bug in the compiler, and it there's the symptom as you describe it doe ...Show All
J M B C programming
Hi, Everyones I do hope this question aren't getting bored at all .... Well, recently I typed some short C program that's require to include assembler code, and I got confused how to figure out the assembler editor on V S.net Does anyone know how to tackle this problem and I do hope too you are guys out there could drop me some source code or an example about that .....other question is how to use Clrscr() == in C : I had found ESC[2J but it won't work as Turbo Pascal compiler.....please show me.... Thanks.... Malvino..... Malvino wrote: by the way what is the #include <header file> must be put it regards to _asma and system(cls);, I do hope you would show me agai ...Show All
Random Bill Multi-dimension arrays in VC++ 2005 for n00bs
Okay, a little background: I'm an aerospace engineer, not a programmer, but I'm experienced in C, and I'm using VS2005 to make some simple-ish tools for our group. I'm trying to declare a multi-dimensional array in VC++ through the 'standard' method... double test[5][5]; ...and then access it in the 'standard' way... test[0] = something I'm putting in there.; ...but it's not working. When I debug, the Watch says that test is a double[][] of length 5. So far, so good, but when I expand it, instead of the 'standard' syntax, it comes up like this.... test[0,1] Length 0 double[] test[0,2] Length 0 double[] ...and so on. I've dug through our copy of MSDN, and online and there ...Show All
paschott Possible ATL buffer overflow in %Program Files%\Microsoft Visual Studio 8\VC\atlmfc\include\atldbcli.h
The ClearRecordMemory function buffer overflows and corrupts the heap when uLength is set to a correct WSTR length. As you can see, for the case DBTYPE_WSTR case, ulength is doubled. But if the length returned is correct, there is no need for the * 2 multiplication. The memset after the multiplication overwrites valid address space and the program crashes at a later point. A simple fix that works is: uLength = uLength + 2; Repro: Function tested against Microsoft SQL Server 2000 using Microsoft OLE DB Provider for SQL Server, VS.net 2005 and Windows XP SP2. Function causing the error: void ClearRecordMemory() throw() { for (ULONG i = 0; i < m_nColumns; i++) { DBLENGTH uLength = m_pColumnInfo[ i ].ulColumnSize; switch (m_ ...Show All
