Software Development Network Logo
  • Visual Studio
  • Visual C++
  • .NET Development
  • Visual FoxPro
  • Smart Devicet
  • Game Technologies
  • SQL Server
  • VS Team System
  • Windows Vista
  • Microsoft ISV
  • SharePoint Products
  • IE Development
  • Visual C#
  • Windows Forms
  • Audio and Video

Software Development Network >> Visual C++

Visual C++

New Question

Unhandled exeption
using a C++ MFC dll in the CLR
How to use LoadLibrary (win32 api) in C++/CLI without P/Invoke??
Drawing to a MemDC with CRichEditCtrl
UI thread dialog???
Compiler selecting template function in error?
Life is a box of bitter cyanide pills!!!
Is there a expert to tell me the step needed to upgrade from vc6 to vc 2005?
Cannot save file XXXX_XXXX
Pop up msg gets focus and the user gets disturbed

Top Answerers

SimonS_
rogupta
TimFröglich
Avi_B
JackStri
ash141vsp2003
sascue
Will Riley
Jamie Thomson
Adii.sathye
sitemap
Only Title

Answer Questions

  • cdemez is this the correct/best way to set file size?

    Hello everyone, I have verified that the following approach works to set the size of a file (newly created file) to be 100 bytes, but I am not sure whether it is the correct/best way to have a maximum portability (I need to write code on both Windows and Linux). Could anyone give me any comments [CODE] #include <fcntl.h> #include <sys/types.h> #include <sys/stat.h> #include <io.h> #include <stdio.h> int main() { FILE* file = fopen ("foo123", "w+"); fseek (file, 99, SEEK_SET); fprintf (file, "x"); fclose (file); return 0; } [/CODE] thanks in advance, George Thank you einaros, einaros wrote: That s ...Show All

  • Dan Guisinger Problems with my project

    I have 3 problems I am unable to resolve regarding operating visual studio .net 2005 I created an MFC application project using VC++ using the wizard. 1. My project got messed up in the solution explorer panel somehow. Now, instead of having folders called Source Files, Header Files, etc it is saying Release, Debug, res, and hlp. Its just a listing of the directory structure now, and the folder contents shown include intermediate build files like the precompiled headers, obj files, exe file, etc. How can I get it back to regular again without having to totally recreate the project again And, more importantly, what causes this change to happen in the first place 2. Even though I changed my project's .ico file in the resources, m ...Show All

  • Synced thanks Eiranos and Marius

    When i hit on F5 or debug after compiling, the command prompt window only appears in a flash...it lasts only some few seconds then disappears...However, when i use CTRL+F5, the command promt window stays...is there any cause for this behavior Your question and subjects are not matching either. I thought this is a thanks post. This forum is dealing about language issues rather than the IDE and debugger. There's a forum in MSDN itself which is dedicated for debugging. In my understanding, when you press F5 the debugger the spawns the application and process exits on returning the main function (exiting main thread). The same thing is happened when you are directly opens the from the location. But while you ...Show All

  • pjtaylor size_t: redefinition; different basic types

    Hi, I'm trying to recompile an application that runs on 32-bit Windows to 64-bit Windows. The system is a Xeon processor running Windows 2003 Server and Visual Studio 2005 Professional Edition (that comes with MSDN library). For the visual studio solution, I selected x64 as my platform. However, when I compiled the code, I got the following error message, C:\Program Files\Microsoft Platform SDK\Include\crt\stdio.h(68) : error C2371: ' size_t' : redefinition; different basic types test.c : see declaration of 'size_t' I gather from other posts that I might have mix 32-bits tools. How do I check if I'm using 32-bits tools instead of 64-bits Thanks! I think your question should be restated as "how ...Show All

  • FredMunro Errro C1189

    hello i have an error mentioned in the subject the thing was that this person was helpin me out in it but he has put up his hands aswell as he cant also understand why this error isnt going im goign to put down the solution he provided at the end on this . so any one who will also like to give his view on solving it is wellcomed.. .Error 1 fatal error C1189: #error : Building MFC application with /MD (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\afx.h 24 Solution by my friend n0n4m3 Try doing what the compiler says, adding the #define _AFXDLL or you can use the preprocessor options in project properties-> ...Show All

  • iamAlan Navigating in a CHtmlEditCtrl

    Hi, Hope this is the right place to ask this question, otherwise please redirect me. :) I wonder if it possible to navigate back and forward in a CHtmlEditCtrl. It's possible to do it in a CHtmlViewCtrl with the functions GoBack() and GoForward(), but I need to use a CHtmlEditCtrl and I can't find any functions that do this for me. Please help me out. Regards Markus Could you create a clean dialog with a CHtmlView, verify that it still crashes (and preferably when, or give a stack read out), and post the dialog's code The CHtmlEditCtrl doesn't strike me as a control meant for navigation, but rather editing of html content. Wouldn't an option be to originate from a CHtmlView, then en ...Show All

  • Terry Smith adding a watchpoint (breaking when a variable changes)

    How is it possible to add a watchpoint in Visual Studio. A watchpoint is basically a conditional breakpoint that is _not tied to a codeline_. What I want to be able to do is to break whenever someone changes a particluar variable. There seems to be two options: "Watch" a variable and see for myself if/when it ever changes. This is slow, and doesn't really work if you're debugging event/time critical bugs. Debug->New Breakpoint->New Data Breakpoint. This seems to be what I want, but the menu option is always disabled (even when the debugger is running). So how do I do it (I'm using Visual Studio 2005 Professional Edition) espen Run your application under debugger. Then Debug> ...Show All

  • thomp361 How to work on the same project from different machines??

    Dear All, I am new to Visual C++ 2005 express edition. Recently, I and my team, started developing a project on the mentioned IDE and we are facing difficulties when we combine files together. So is there a way by keeping the source code on a server and all the team members can access the same project from their clients using Visual C++ 2005 Express Edition IDE for the developing. Your help is much appreciated Regards Bassam Use TortoiseSVN ( tortoisesvn .tigris.org/ & subversion .tigris.org/ ) Regards Manoj Jangid Thanks for your reply. I refered to microsoft msdn download web site and I found there is no free copy of Visual Sourcesafe 2005 to download like in Vi ...Show All

  • Thomas_liang VC++ and long filenames/directory names

    Is VC++ able to handle filenames and directory names longer than 8 characters I am getting stuff like: C:\DOCUME~1\MYUSERNAME\ instead of C:\Documents and Settings\MYUSERNAME This is very frustrating! How do I enable long filenames and directory names I'm running Windows XP. That has nothing to do with VC++. What APIs do you use that give short names Call GetLongPathName on a short one and you will get a long one. BUT: Using short names has one big advantage: complete file names including path cannot be longer than MAX_PATH which is 260. So you can handle longer sub directory hierarchies. There is a syntax for working with longer paths on NT bases systems (NT4, 2000, XP, 2003, Vista) but many apps w ...Show All

  • CathyUnique Won't jump to ErrorList when building

    Hi, When building my C++ projects in VS2005 and having errors and warnings, the IDE will not jump to the ErrorList window when done, it stays on the output window. The ErrorList is docked together with the Ouput window (and some other windows). I've seen this work on other computers. Any ideas why it's not working on mine /Mikael That's it. Thanks. I've noticed that my settings differ from others in several ways. Don't know why though. But I was able to fix it by replacing my "CurrentSettings.vssettings" with one from another machine. /Mikael   Mikael Pahmp wrote: the IDE will not jump to the ErrorList window when done, it stays on t ...Show All

  • dindelus /MTd and /clr options are incompatible. Why?

    Ok, here is the long story. I have a nice C++ component which statically links to about 10 libraries as well as links to ATL, C run-time library and MFC. Component is multi-threaded and it actually runs couple of threads inside but everything is nicely wrapped into one DLL which can be called from any .NET program. It was all fine until I tried to migrate this project from VS 2002 to VS 2005. After migration at first I got this message: Building MFC application with /MD (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD I checked settings and saw that migration changed runtime library option to Multi-threaded DLL instead of just Multi threaded. Well, I have no intention of having 10+ DLLs instead o ...Show All

  • ProSlamBanO Class diagrams unpresent in VC++05?

    I enjoyed C#'s way of immediately showing class diagrams just by a few clicks. I also develop the majority of my program in native C++. In the VC++ documentation, it said to add a new item and double click on Class Diagram. For some reason, it is not there. I guess I could start with asking why, and what can I do to create such a file Thanks for the information. I would definitely like to see this in future versions of Visual Studio. That's very disapointing. I found it in the Visual Studio 2005 Standard documentation. Filter for VC++, click on Class Diagram. Then "working with class diagrams" on the bottom, then "How to: add Class Diagrams to your Project". This ...Show All

  • Indigo Cowboy Strange Compiler Error!!!!!!!!

    Hello, I have recently begun programming in DirectX. I am compiling a single file(.cpp), that requires nothing but a link to DirectX in Visual Studio 2005 Professional (Which I own). I have linked everything to the DirectX SDK files, but I receive the following errors. error C2065: 'index' : undeclared identifier error C2228: left of '.x' must have class/struct/union error C2228: left of '.y' must have class/struct/union These seem familiar with "C" style errors, but I'm using C++. I might have the compiler settings wrong, so that it could think that it was C, not C++, as .x, and .y is straight C++ so somethign is wrong here, there is nothing wrong with the code, as it is from a book and have given it to other ...Show All

  • Wee Bubba Does Edit and Continue work in VS2005?

    Hi All, After importing a VC6 project into VS2005, I cannot get Edit and Continue to work. What am I missing Here are my project settings. Compiler: /Od /D "_DEBUG" /D "_WIN32_WINNT=0x0500" /D "WINVER=0x0500" /D "WIN32" /D "_WINDOWS" /D "_VC80_UPGRADE=0x0600" /D "_AFXDLL" /D "_MBCS" /Gm /EHsc /RTC1 /MDd /Gy /Yu"stdafx.h" /Fp".\MyProj.pch" /Fo /Fd /FR /W3 /nologo /c /ZI /TP /errorReport:prompt Linker: / OUT:".\MyProj.exe" /NOLOGO /MANIFEST:NO /DEBUG /PDB:".\MyProj.pdb" /SUBSYSTEM:WINDOWS /OPT:NOREF /OPT:NOICF /MACHINE:X86 /ERRORREPORT:PROMPT and Tools->Options->Debugging: Edit and Continue enable ...Show All

  • airin putting service symbol in system tray(task bar)

    Hello All i have implemented a service with MFC n c++. Now i want to put this service in system tray (task bar) so that i can stop or start it from system tray. Please suggest me how to put the icon in system tray. Also i had another question regarding it...if i have a general application(made with MFC) and not the service then how do i put that in system tray so that when i double click on it, the GUI of application pops up.... thanks kunan s patel Comments on the first question Instead of starting the service from the taskbar directly, I suggest you create a service controller application that controls the service. Win32 services normally do not contain a GUI because they are run in a s ...Show All

798081828384858687888990919293949596

©2008 Software Development Network

powered by phorum