Recent update: 2008-3-21
<Gal Beniamini@discussions.microsoft.com> wrote in messagenews:d1c96286-5525-41a4-9d28-579d9d7d3011@discussions.microsoft.com > Hello, I have a question; how is it possible to get the event of a> key pressed in a different application while my application is> running in the ...
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 ...
Hi There, I am trying to link a .ilk file of a c++ code to my c code. I am not sure how to do this. I'd truely appriciate if someone could tell me how to go about it. Thanks. Regards, Sahil
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 created a vector as std::vector<MyClass> my_vec(3); I expected that this to call the default constructor for MyClass 3 times. Instead it called the default constructor once and the copy constructor 3 time. In other words, it was creating a MyClass object and then copying it to each ...
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.
1686 byte By
Sharat at 2008-3-3
HiI have developed an application in VC++ that has a certain mailing feature. The user can send multiple mails to some id using this feature by a single button click. The problem is that the Outlook Security popup appears each time a third party tool is trying to send a mail and once can ...
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 ...
I am trying to use the sample code in Visual Studio 2005 Beta 2 to compile SSE3 math operations, and am having problems. The first issue is that the intrinsic math functions (_mm_addsub_pd for example) are not declared in emmintrin.h. This is the only file that the MSDN help says is needed to ...
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 ...
I'm trying to build and run a MFC-based program with VS2005. It contains these lines of code:m_pTime = new Dat_DateTime; // Dat_DateTime is derived from COleDateTimem_pTime->m_status = COleDateTime::valid;ar >> m_pTime->m_dt; // ar is of type CArchive&When I compile this with ...
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 ...
I'm trying to build and run a MFC-based program with VS2005. It contains these lines of code:m_pTime = new Dat_DateTime; // Dat_DateTime is derived from COleDateTimem_pTime->m_status = COleDateTime::valid;ar >> m_pTime->m_dt; // ar is of type CArchive&When I compile this with ...
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 ...
Hello! I am using VC++ .NET to convert std::string* to BSTR*. Could any of provide a sample/pseudo code as to how this could be done! :-) Thanks a much! Karthik
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 ...
4634 byte By
Fatt at 2008-2-23
In VC7 I got this link error:filesys.obj : error LNK2019: unresolved external symbol "public: bool __thiscall std::locale::_Iscloc(void)const " (?_Iscloc@locale@std@@QBE_NXZ) ,This symbol is in the function "class std::num_put<char,class std::ostreambuf_iterator<char,struct ...
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 ...
I am currently running WinXP Pro on a dual AMD Opteron system. The development project I'm working on is a high-performance CAD/graphics program. The project is mostly Win32 C/C++, but we also have many specialized performance-critical subroutines hand written in assembler. These assembler ...
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.
468 byte By
Orochi at 2008-2-22
Hello, everyone.this is the first time I came here. my problem is: I created a project with MFC Application project type. and now i want to add CLI support to this project. So I open the project properties dialog and select "Common Language Runtime support (/clr)" options, when compile, an ...
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 ...
I am currently trying to get the metainfo sample application that comes with VS 2003. The application code is located at (for a standard VS.Net install):C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Tool Developers Guide\Samples\metainfoSince I am learning VC++ and the ins and ...
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
Hi Everyone,I am new to visual c/c++ and i am using visual studio. I am working on a project that compiles with C. Now, i have to use some header files which have structures, templates, etc which are written in C++. I have no idea how to link these two languages together. The command that i ...
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?
528 byte By
Nazgob at 2008-2-19
Hey, what can I do to have my code as much anci C(I have set an option to compile as C) as possible? I think /Za turns of MS extensions. Where can I find document describing those extensions? Do I have to set some more options? I code C using Visual C++ 2003 Standard and testing C++ Express ...
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...
125 byte By
RITZ at 2008-2-18
I am curious what is in store for inline functions for the next standard reguarding internal linkage. Anyone have some links?
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 ...
2058 byte By
cro at 2008-2-17
Why that the function c_str and operator const char* didn't return the same value in this code ?#include <iostream>using namespace std; class MyString{ char* buffer; int length; public: MyString(const char* pChaine); ~MyString(); const char* c_str() const; operator const char*() ...
Please suggest some study material
I tried to implement the following scenario in VC++ 2005 beta2: an object implements 2 interfaces, one defining a property get and the other defining a property set.This works perfectly well when implemented in C#. However, in C++, I get the compiler error message transcripted below.Here is the ...
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.
Despite a boat-load of documentation on Microsoft extensions to the C++ language, I have been unable to find a single page describing how VC++ 2005 differs from VC++ 2003 (7.1) with respect to the serious non-compliance issues that plagued users of VC++ 2003 (7.1). This document ...
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 ...
1372 byte By
Fixxer at 2008-2-15
I cant even get a hello world console app to work. I downloaded Visual C++ 2005 express beta 2, and the Platform SDK. I just chose to do a Win32 console application, chose to use the pre compiled header, and typed in the very simple code. #include "stdafx.h" int _tmain(int argc, _TCHAR* ...
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 ...
hi!I am developing a program VC++, which could make any application to run before login screen, and never show desktop etc....why i am making this kind of application here is the story! Well Once i went to the Game cafe where all ppls were playing Counter srike(game), i bought a ticket and then ...
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* ...
I recently noticed a difference in the function _findfirst()From msdn we have:VC6:long _findfirst( char *filespec, struct _finddata_t *fileinfo );VC2005:intptr_t _findfirst( const char *filespec, struct _finddata_t *fileinfo );Since I need to build code to support multiple versions of VC++ I ...