Recent update: 2008-3-21
I have this following scenario I am creating push buttons using CButton class during run-time and placing them on a tab dialog box. I am using same resource ID and caption for all the buttons so that they will be mapped to the same event handler. I'm using message maps to map the button push ...
785 byte By
C.T at 2008-3-6
I'm completely new at C++, though have reasonable experience with .NET. I'm trying to switch from VB.net to C++ because I want to write native code... but i'm having problems. I have 'Microsoft Platform SDK for Windows XP SP2' and 'Visual C++ 2005 Express Edition Beta 2' installed. I ...
I am using Visual C++ Express Edition Beta 2 How can I regenerate the Intellisense database for a project? It's always showing old, not up-to-date, suggestions.
10818 byte By
Flap at 2008-3-3
I'm trying to build my application with VS2005 Beta 2 and I'm having the following linking problems. I'm using Boost 1.32.0, which I've rebuilt with VS2005.I've searched the docs but couldn't find any info on changes in the way STL libs are linked.The errors are in 2 groups, "already ...
When I first run a simple 'hello world' program from recently downloaded Visual C++ 2005 Express Beta 2 like the following:#include <iostream>using namespace std;int main(){ cout << "Hello, World" << endl; return 0;}There was an error message appearing that doesn't make ...
Hi. I heard this problem from our forum. Some of our guys wrote that this problem occur all VC++ 6.0, VS.NET 2003, VS.NET 2005 Beta2 compilers but not in gcc and dev-C++. Here is code sample and it have to be in saperated files to repro this error. If it is compiled with these three header and ...
1760 byte By
Jordy at 2008-2-27
Hi! I am currently making my first experiences with .NET programming and the Beta 2. My first questsion is simple: Is there any way to rename the default "Form1" class/files (which are created when generating a new Forms project) in an easy way? I solved the problem by searching for all ...
<font face="Tahoma" size="2"> Visual C++ 2005 beta 2 marks the word 'super' like a keyword (with blue color). I know that '__super' keyword exists... but the word 'super'? <font face="Tahoma" size="2">What for does it use? </font></font>
1804 byte By
mqsash at 2008-2-25
Hi, Dont know if this is the correct forum, but since I didnt get any answers elsewhere, I'm posting it here as wellThe Problem: On some machines, my password field displays the password character as the "dot" - which is XP standard, and on other machines it dispays small square ...
I'm trying to use the ShellExecute API call to run a DOS command, and it doesn't seem to work properly. I have code which worked fine under VC6, and it either doesn't bring up the DOS window at all, or it runs the DOS command incorrectly so that no output is printed in the window.Is ...
XPSP2 PSDK specstrings.h appears to conflict with VC sal.hNumerous warnings of type; c:\program files\microsoft platform sdk for windows xp sp2\include\specstrings.h(334) : warning C4005: '__reserved' : macro redefinition c:\program files\microsoft visual studio 8\vc\include\sal.h(672) : see ...
Hi all. C# has edit and continue and refactoring VB has edit and continue and refactoring Classic C++ has edit and continue. Where are edit and continue and refactoring in Beta 2 for managed C++? I cannot find. Thanks in advance.
Before I consider filing bug reports, I'd like to hear any comments on the following issues I've encountered with Beta2 during my first two days of use:1) Break point won't work in .h files in managed project.I have a large mixed native and managed project. Since converting to 2005, break ...
1022 byte By
cmenge at 2008-2-21
Hey Guys,The following was noted in the "Known Problems" release. Details: The VC++ Directories page on the Options dialog does not have a list box for viewing and modifying the directories used during a build. Consequently, it is not possible to modify the build directories using the IDE ...
200 byte By
paul at 2008-2-20
hi am using mfc. i have store a image to sql database and retreive from database. i searched in internet, no one example coding for mfc. please can anyone give some idea/sample code? thank you
I try to compile my VC6 app, written in C for Win32 API, with the new VC2005 Beta 2. It tries to find windows.h and fails. How can VC2005B2 (Express) be set to compile normal Win32 API apps? Where is the windows.h file now?
Hi adtyerheryh!<blockquote cite="mid2c5ec770-d581-416b-9400-82a36f071b81@discussions.microsoft.com" type="cite">I made a new blank project (er... "solution") and createdthis source file in it:#include <stdio>int main () { cout << "Hello World"; return 0;}When compiling it I got an ...
I have done the basics in creating a simple GUI framework. Set the WNDCLASSEX with lpfnWndProc pointing to a static member function of my base window class. Calling CreateWindowEx with the appropriate parameters returns a valid HWND. This works well for the main form. Its drawn properly, no problems...
Hi, I've just installed the new visual c++ beta 2, and I get this weird error when compiling a project. Build started: Project: FindWeights, Configuration: Debug Win32 Embedding manifest... Project : error PRJ0003 : Error spawning 'cmd.exe'. Build log was saved at ...
Please suggest some study material
366 byte By
supra at 2008-2-16
Hi all,I'm current investigating a way to move from Visual studio 6.0 to the lastest VS 2005. My project comprises with MFC, stl, and thirdparty libraries. When I test converting it to VS 2005 beta 2 the compiler generated 6500+ error.Is there a better way to do this? Or is there a compiler ...
Hi there, What code should I use in Visual C++ to drag a borderless window? I have the C# code, which does obviously not work in C++. Then I also need to know how can I launch the form2 that I created with a custom shape aswell, by pressing a button in Form1 (main form)? Thank you.
I notice the new 2005 compiler happily compiles my native projects, even ones that contain inline asm and variable param functions. It just warns me about the native code generated. The managed c++ compiler in 2003 could not handle this. So, why would I ever want to not compile with the /clr ...
Hi donjonson!<blockquote cite="midbcd53284-6893-4dfb-986e-4c1a03fe0f27@discussions.microsoft.com" type="cite">How do I go about doing this?1. Create a Win32-Console-Application2. Go to the Linker-Settings and change the "SubSystem" to "Windows"(Project|Properties|Linker|System)-- Greetings ...
How do I compile the code in Visual C++ 2005 Express Edition Beta?How can it be so difficult to find such an obvious thing as a button or a text in the meny for compeling the code?For some reason the help contents isn't available, otherwise I could probably have find the answer ...
Hi hyslopc!<blockquote cite="mid0395df1b-a2fc-479a-be7a-5d6ee4a84868@discussions.microsoft.com" type="cite">I just ran a test of the VS 2005 beta 2 debug CRT library _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF| _CRTDBG_DELAY_FREE_MEM_DF | _CRTDBG_CHECK_EVERY_1024_DF |_CRTDBG_CHECK_CRT_DF); char* ...
Details: The VC++ Directories page on the Options dialog does not have a list box for viewing and modifying the directories used during a build. Consequently, it is not possible to modify the build directories using the IDE UI.Workaround: C++ Directories can be added, removed or changed by ...
It appears that several standard C and C++ functions have been 'deprecated' in this version of compiler. This is a major annoyance since neither C nor C++ standards seem to mention this. Naturally, it is possible to disable unwanted warnings, however doing this manually for every project is a ...
972 byte By
hdp203 at 2008-2-14
How do declare FireEvent(...) so I can use it in foo()?With previous beta versions, I can just do this FireEvent(EventHandler^ e), but with beta2 compiler, I get C3918.Thanks,hdp.// class that defines eventsref class EventSource {public: event EventHandler^ OnEvent1; event EventHandler^ ...
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?
Details: The VC++ Directories page on the Options dialog does not have a list box for viewing and modifying the directories used during a build. Consequently, it is not possible to modify the build directories using the IDE UI.Workaround: C++ Directories can be added, removed or changed by ...
Hey, I am having a wierd problem with VC++ Express Beta 2. When I go to Tools->Options->Projects and Solutions->VC++ Directories, I barely see anything. I can see the 'Platform' and 'Show Directories For' combo boxes, but other than that, the window is empty. Does anyone know of a ...
817 byte By
JuanJ at 2008-2-11
Hi,1. I have installed Beta2 this morning, but when i try to compile my program. I see the following text..No error presented========== Rebuild All: 0 succeeded, 0 failed, 3 skipped ==========Why is VS skipping the projects? No error is given.When i try to view the properties of a project i get ...
I wrote a simple Visual C++ code based upon MFC in Windows NT. The size of the control buttons I made is different when I run its .EXE file in another computer(Windows-98), although both of their display resoultion are the same(1024X768). How to solve the problem? Any information will be ...
I've just installed 2005 Beta 2 and got the following compiler error when trying to recompile my project: stdcli is not a class or namespaceon the following source code line: property stdcli::language::array<X>^ Prop { ... }Is there any new include file or library to include to use the ...
Hi,I'm doing research on the architecture and implementation technique for developing a communication protocol stack just like the L2CAP for bluetooth or TCP/IP for use in embedded PC.I wish to know how the protocol stack are implementation in system level architecture.i.e. How the higher layer...
Please help me find some help pages on the CWebCalc and CWorkSheet classes. I would like to get to the help pages that give the class members and their desciption for these classes. I looked in a lot of places. I am surprised that these classes exist and can be included by using the Spreed ...
918 byte By
Slaine at 2008-2-8
Hi,I'm trying to code a program to verify the digital signature of several exe, dll,... files. The problem is that I don't have the certificate nor signature that is applied to those files, and neither I know if I need them . I've been looking to microsoft msdn CryptoAPI, but I could not get ...
Under C# it is possible to feed strings to the switch() statement and its cases, this doesn't seem to work in C++/CLI. Is there a way to make it work, which I don't know about, or don't I get around chaining if-statements? Thanks.
In the betas of the express edition resource editing is not possible. Will it be possible in the final product?
Hi Dennis!<blockquote cite="mid1199ca94-6f7a-4e4c-9d9e-22ccd827ca9c@discussions.microsoft.com" type="cite">Does anyone know how to either:1. remove the uuid.lib dependency (I cannot figure out where it iscoming from)2. download uuid.libIt should be in the following ...
171 byte By
hdp203 at 2008-2-7
I created a .cur file. How do I embed it into the exe file so I can create a Cursor object. (e.g. mycursor = gcnew Cursor(GetType(), "MyCursor.Cur"); Thanks, kenny.
Hi, I am new to visual C++ .NET and could anyone suggest which book shall I follow to grash things?
Hi Saltynuts!<blockquote cite="mid7918df0d-4124-4995-ae08-0e217d3320af@discussions.microsoft.com" type="cite">Latest visual studio beta. When I try to compile myproject it cannot find this file. I've searched my vc directories andit only comes up with 3 results ...
Hi jedediah!<blockquote cite="mid85ccd514-8d36-48c8-8570-eb6226b0c5e6@discussions.microsoft.com" type="cite">What do I have to do to include windows.h ina CLI project and be able to make Win32 API calls?If I simply include windows.h, I get a lot of errors like these: 1>C:\Program ...
Hi David!<blockquote cite="mida58faf3a-d92e-465f-9ada-fd890c511fd0@discussions.microsoft.com" type="cite">When building projects with VS2005 B2 I'm now seeing lotsof these:mymodname.obj : warning LNK4224: /COMMENT is no longer supported; ignoredWhile the message is straightforward, what's ...
Hi jus!<blockquote cite="mid870e9748-64aa-42e9-8b02-bf2502ff7ff3@discussions.microsoft.com" type="cite">I know that some parts of the PSDK are not included inVS2005. That is not really a big problem for me, but can someone fromMS explain this decision?1. MS is focusing managed applications.2. ...
375 byte By
evans at 2008-2-4
There is a potential buffer overflow with the SetWindowText function for windows CE.NET. I went to the article on this and followed there download link but can not find the update for the ARM4 processor. the file I am looking for is named Wincepb42-040714-kb843373-armv4.exe. Has anyone been ...
Hi narechk!> Why is not PSDK included with Beta 2 (Express)? Will it be available > in the same package when VS2005 ships? It was quite convinient to have > PSDK being installed along with VC++ 7.1, since just about any program > nowadays beyond 'hello world' #includes "windows.h" et ...
Hi Jahfer!<blockquote cite="mid45ecb0eb-95d3-4a52-9b80-9bb999570e17@discussions.microsoft.com" type="cite"> Normally an ActiveX control is binding with an application(exe)dynamically. We need to ship the "ocx" file with the "exe" file, fordistribution.My question is : Is there any way to ...