Visual C++ General,271 - Visual C++,
Recent update: 2008-3-21

Sending parameters to ON_BN_CLICKED event handler

617 byte By d_sanjay at 2008-3-7
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 ...

C++ & SDK

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 ...

How to regenerate Intellisense database?

163 byte By Deathwing00 at 2008-3-5
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.

Link problems with Beta2, STL & Boost

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 ...

How to fix up this problem?

821 byte By dunai2005 at 2008-3-1
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 ...

VC++ wrong pointer size ..?

2601 byte By Kwon-ilLee at 2008-2-28
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 ...

First painful steps with VC++ Express 2005 Beta 2 and DirectX9

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 ...

'super' keyword

249 byte By orokulus at 2008-2-26
<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>

Windows XP Password character.

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 ...

ShellExecute problem?

406 byte By xanadu1963 at 2008-2-24
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 ...

specstrings.h / sal.h

996 byte By xanadu1963 at 2008-2-23
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 ...

Where are "edit and continue" and refactoring options in Beta 2?

248 byte By ZephrynXirdal at 2008-2-22
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.

Possible MSVS 2005 beta2 bugs

1647 byte By GregDude at 2008-2-22
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 ...

Cannot set VC++ Directories in the Options dialog of Visual C++ Express Edition

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 ...

image into sql server

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

Compiling C Win32 code in VC2005 B2?

225 byte By xanadu1963 at 2008-2-20
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?

getting hello world program to compile

1039 byte By MVPUser at 2008-2-19
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 ...

Nasty runtime error with WM_PAINT

1789 byte By edu.net at 2008-2-18
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...

Beta 2 error, Project : error PRJ0003 : Error spawning 'cmd.exe'.

701 byte By andrewness at 2008-2-18
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 ...

Can I create a driver in VC++

34 byte By VibhavariGovindPanse at 2008-2-17
Please suggest some study material

Moving from VC 6.0 to VC 2005

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 ...

Code to drag borderless form

294 byte By switch13 at 2008-2-16
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.

When NOT to use /clr

547 byte By GregDude at 2008-2-15
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 ...

setting up VC++ 2005 express beta 2 to compile win32 gui apps.

844 byte By MVPUser at 2008-2-15
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 ...

Compile in Visual C++ 2005 Express Edition Beta

303 byte By JonasAndersson at 2008-2-15
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 ...

VS2005 debug CRT does not report file/line info for heap corruption

2807 byte By MVPUser at 2008-2-15
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* ...

Cannot set VC++ Directories in the Options dialog of Visual C++ Express Edition

1385 byte By BorisJabes at 2008-2-15
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 ...

warning C4996: 'foo' was declared deprecated

367 byte By narechk at 2008-2-14
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 ...

What is the syntax for declaring an event as an argument of a function?

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^ ...

Where's my VC++ 6.0 keyboard layout (Beta 2) ?

290 byte By DevInstinct at 2008-2-13
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?

Set VC++ Directories in Options dialog (Visual C++ Express)

1385 byte By BorisJabes at 2008-2-13
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 ...

VC++ Directories in Beta 2?

311 byte By chillah at 2008-2-12
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 ...

Beta2 problems

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 ...

why size of MFC-beasd control button is different in different versions fo Windows( Windows-NT a

401 byte By hugh2005 at 2008-2-10
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 ...

stdcli

338 byte By Chris.G at 2008-2-10
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 ...

How is a protocol stack such as L2CAP for Bluetooth implemented?

640 byte By zDensys at 2008-2-8
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...

CWebCalc, CWorkSheet Classes Help

402 byte By Sri12345 at 2008-2-8
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 ...

Verifying the digital signature of a file

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 ...

C++/CLI, Strings and switch()

238 byte By TomServo at 2008-2-7
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.

resource editor in Express Edition

111 byte By jholetzeck at 2008-2-7
In the betas of the express edition resource editing is not possible. Will it be possible in the final product?

Where is uuid.lib in VS .NET 2003?

846 byte By MVPUser at 2008-2-7
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 ...

How do I create an embedded cursor?

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.

Need a good book on Visual C++ .NET

99 byte By Saraav at 2008-2-6
Hi, I am new to visual C++ .NET and could anyone suggest which book shall I follow to grash things?

LINK : fatal error LNK1181: cannot open input file 'Crypt32.lib'

1012 byte By MVPUser at 2008-2-6
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 ...

Using windows.h in C++/CLI project

1553 byte By MVPUser at 2008-2-5
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 ...

Getting LNK4224 with B2 - what's the story?

1062 byte By MVPUser at 2008-2-5
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 ...

Reasons why parts of the PSDK are not included in VS2005?

1291 byte By MVPUser at 2008-2-4
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. ...

can not find Windows CE 4.2 update 843373

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 ...

Platform SDK

521 byte By MVPUser at 2008-2-4
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 ...

How to statically bind (link) an "ocx"

758 byte By MVPUser at 2008-2-4
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 ...