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

Software Development Network >> Visual C++

Visual C++

New Question

View invalidate problem ...
errors C3861 when compiling derived class template under /Za
Solution Explorer - Where did New Folder go?
converting an LPPOINT to a POINT
Calling C# Main() in C++.NET
using activex
VS .Net 2005, how to disable intellisense...
Problem using log4net in my C++ program
System.Timers.Timer not elapsing
help! programming with screen capture.

Top Answerers

textman
Seefer
bk13
Grant Fritchey
Devi48354
dav3333333
Tiarnan
Francis Shum
Seppe001
Ron L
Blueprint
Only Title

Answer Questions

  • Kathirvel Is this ISO C++ conformant?

    I wrote the following simple program and could build it happily. #include <stdio.h> #include <conio.h> int main() { int i; printf("Integer please>"); scanf_s("%d",&i); _getch(); } I have two questions about this code. First, is this code 100% ISO C++ conformat I could build this, with language extensions disalbed. Second, is the _getch() function always thread -safe Thank you very much. einaros wrote: I fear that you are chasing the wrong chicken, though. Whether or not a piece of code is 100% standard conformant (be it C or C++), doesn't necessarily mean that the code will be portable. Most compilers has their own quirks and problems. VC8 isn't 100% ...Show All

  • andradrr How to 'List' pointers to multiple threads?

    I'm trying to encapsulate a simple multi threading startup and stop process within a class. I thought about making it able to create and control an undefined number of threads, so naturally, a list of pointers came to mind. Unfortunately, CList<CWinThread,CWinThread&> doesnt seem to work, so is there another way to 'List' the pointers for each thread thats been initialized like so: ThreadPoint = ::AfxBeginThread(... ); ThreadPointList.AddTail(ThreadPoint); ...elsewhere pointer = ThreadPointList.GetAt(ThreadPointList.FindIndex(Index)); pointer->SuspendThread(); //and etc. If this doesnt seem proper or efficient, i agree. I'm pretty new at multi threading programming, but i guess there should be a much cleaner way of monitoring ...Show All

  • John.Doe I cant create application with two forms

    Hello! In last time i was programer in UNIX system, and now im trying to work with Microsoft Visual C++ (express edition) I create new solution and create two form. how to show second form by call from first form I try ShowDialog method and more.. :( yes form2.h included in main cpp file procedure: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { form2^ f2 = gcnew form2; f2->ShowDialog(); } in other files (.h and .c i dont change anythink...) Yes, i talking about WinForms I try: Form2^ f2 = gcnew Form2(); f2->ShowDialog(this); but, i call to ShowDialog() from button click procedure, and i cant use `this` :) I try use ShowDialog without any argument... but when i click to ...Show All

  • Simon Ellis WndProc() in MFC

    I am working with a third party application manager. In their documentation, I need to handle their messages by calling their method ami_GetMessage() as follows: WndProc(hWnd, message, wParam, lParam) { switch (message) { // handle window messages here default: message_type = ami_GetMessage(message, wParam, lParam); .... } } However, my application is an MFC app which uses message maps and not WndProc(). Is it possible to use WndProc() in an MFC app If so, how. Thanks See http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=789657&SiteID=1 and http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=980773&SiteID=1 . This question is not within the scope of this forum. ...Show All

  • Chellam how to send and process the message that I defined

    I just begin learning MFC and I lost my way when I want to creat a message and process it ,please give me some advise.if give me a sample , it will be better .all reply will be appreciated You need to read up on ON_MESSAGE - see http://msdn2.microsoft.com/en-us/library/k35k2bfs.aspx Also see http://msdn2.microsoft.com/en-us/library/3yz7860h.aspx ...Show All

  • jhurliman Bugs Bugs Bugs

    VS2005 is a absolute joke when it come to developing in c++, it is riddled in bugs. Many of which are driving me crazy. I spent £220 of this product, and it is ***. How can I go about getting my money back Then I will go back to developing in Vc++6, the last decent product for c++ developement. Many Thanks The "Add/Remove operation is impossible..." problem has apparently been around for well over a year. I've just run into it (WinXP Pro, VS Pro 2005 SP1) with a mickey-mouse application involving a property sheet and a couple of property pages. Deleting the "Intellisense" - in quotes because it's an oxymoron - file, then rebuilding the project seems to work so far. But that' ...Show All

  • Andreas_M messagebox

    What's wrong with this MessageBox("Hallo. Dit is mijn eerste Visual C++ programma!"); Now he says this: 1>------ Build started: Project: Hello, Configuration: Debug Win32 ------ 1>Compiling... 1>stdafx.cpp 1>Compiling... 1>HelloDlg.cpp 1>idHallo.cpp 1>Generating Code... 1>Compiling resources... 1>Linking... 1>HelloDlg.obj : error LNK2001: unresolved external symbol "public: void __thiscall CAboutDlg::OnBnClickedHallo(void)" ( OnBnClickedHallo@CAboutDlg@@QAEXXZ) 1>C:\Documents and Settings\ikke\Mijn documenten\Visual Studio 2005\Projects\Hello\Debug\Hello.exe : fatal error LNK1120: 1 unresolved ext ...Show All

  • Pockey How do I return from a static member function

    I don't know how to return from a function if it's expecting and ADT type. I can't use *this on static member functions. My header prototype looks like this: class Fraction { private : int numerator; int denominator; SignType sign; /******************* Fraction Operators ********************/ static Fraction addFract( const Fraction &f1, const Fraction &f2); } My implementation looks like: Fraction Fraction::addFract( const Fraction &f1, const Fraction &f2) { Fraction::numerator = (f1.numerator*f2.denominator) + (f1.denominator*f2.numerator); Fraction::denominator = f1.denominator*f2.denominator; return * this ; } // end addFract ...Show All

  • perrs Creating a DLL with managed types so it can be accesses from native "C" programs

      I'm not sure if this is the appropriate forum but there doesn't seem to be a more appropriate one, so I'll post in here.   I am building a .Net project, which will provide some functionality to a native program. I already completed the project but I am having synchronization problems with the approach I have taken (see this thread for more). So I decided to change the approach. Here is a brief description of the goal.   The native program consists of two or three processes, built using LabVIEW, MS VC++ with MFC, and plain "C". The "C" process, named "vista" (no relation to the next Windows), is the one which provides the timing. My original approach was to have an OS event that was set by "vista" after it ha ...Show All

  • Paulson Abraham I have a winrar_AM_modifiy_src_to_zip.bat. The problem that I have is :if the vc project which I have is very new and I also mak

    del net_ModiSrc.zip "C:\Program Files\WinRAR\winrar" a -afzip -ed -r -ta2006-07-26 -tl -x@tmpfilelist.txt net_ModiSrc D:\ui_7_25\net I have a winrar_AM_modifiy_src_to_zip.bat. The problem that I have is :if the vc project which I have is very new and I also make the file change the very day. then I get a very big zipped file, how can I get a modified file when the modified time is the same as the new project. Thanks. This is not really a C++ question. I'm not sure that it belongs anywhere in these forums, but it sure doesn't belong in the C++ forum. Maybe instead of " a " you should try the " u " command It will add only changed and new files. If you need to keep the old version of files, then try " ...Show All

  • My Vizai MSVC 2003: ctor-try-block error: possible compiler bug

    This message was originally posted to comp.lang.c++.moderated ----------------------------------------------------------------------------------------------- Hi! I 've faced a problem in my production code. I could deduce this problem to program shown below. It seems, that try-block in constructor doesnt work as it should (compared to case where no try block exists at all). I tested this small program on my MSVC .NET Pro 2003 (and separately on PC with MSVC2003 SP1 installed). In both cases I experienced the same behaviour - access violation. Please see comment inside the program body. To get this sample work - just comment out try block in ctor. Have anyone faced such behaviour before Is there known workarounds Thanks. Kiri ...Show All

  • jewelfire Trouble with TreeView Label Editing

    Hi, I'm Dan. I'm fairly new to Win32 programming but have been doing it for several months now (independant, no classes/books/etc) and am starting to grasp it. I have been trying to, as a learning experience, create a game design program that would allow for easy PC game creation with little coding experience (similar to GameMaker if any are familiar). Anyway, I am currently trying to implement a TreeView to display resources that the game designer adds into the project (sprites, objects, etc). Before I begin delving into more critical details of the program, I am trying to first establish the overall environment. I have recently allowed the user to add resources (though they do nothing so far) and have put in context menus for the resourc ...Show All

  • marrigre memcpy

    HI, #pragma pack(push) #pragma pack(1) typedef struct notation { unsigned short lineCount; float lastLon; float groundSpeed; unsigned short checkSum; }R_NOTATION; #pragma pack(pop) ra.lineCount = 20; ra.lastLon = 2000; ra.groundspeed =23; ra.checkSum = 12; Union ALL_NOTATION{ R_NOTATION ra2; char str[12]; }; memcpy(&ra2, ra, sizeof(ra)); printf("\n DATA: %s ",str); about piece of code prints null, why anyone please help me out.. -thanks, thiru if that is the case, how can i varify the data inside the array. How can i printout the value of float variable from the array. -thanks, ...Show All

  • Hardin77 Resource Editor: Add/Remove operation is impossible '(null)' is read only

    MESSAGE: Resource Editor: Add/Remove operation is impossible, because the code element '(null)' is  read only   So, I moved files from /ProjectA/ProjectA to just be /ProjectA fixed the project settings deleted and added files to go with the changes.  My 'ClassView' contains duplicate classes CMyClass and CMyClass with two different paths one in /ProjectA/ProjectA and the new one /ProjectA; I can't delete the old /ProjectA/ProjectA one and now I get this message 'Resource Editor: Add/Remove operation is impossible, because the code element '(null)' is  read only' when I try and add a button to CMyClass.  I just double click the button, message.  So, I go through and find the 'Events' panel and find the ID and ...Show All

  • Avi_harush _CRT_SECURE_NO_DEPRECATE problem

    I ported my project from Visual Studio 6.0 to Visual Studio 2005.I was able to compile perfectly in debug mode using the _CRT_SECURE_NO_DEPRECATE definition. Unfortunately when i ran it in release mode i got many errors like this:  Error 5 error C2664: 'strcpy' : cannot convert parameter 1 from 'TCHAR [260]' to 'char *'  When i didn't use the _CRT_SECURE_NO_DEPRECATE definition then the above was a warning in debug mode but these dissapeared after i inserted that definition. I put this definition in the Project Properties->Configuration Properties->PreProcessor->Preprocessor Definitions. My preprocessor options are the following: WIN32;NDEBUG;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRE ...Show All

404142434445464748495051525354555657

©2008 Software Development Network

powered by phorum