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

Software Development Network >> Visual C++

Visual C++

New Question

VC 2005 with DDK 3790.1830
VC.NET Question about Forms
Function name conflict with ENUM name
Image Cursor
unresolved external symbol
DLL Compatibility?
How to synchronize between applications
executing a program
Newbie getting C2352 error
Calculating the angle of an arc in a cartesien grid

Top Answerers

sparkdog
Elham Sarikhani
JuKiM
pmak
kata.
J.A.J.
REspawn
hazz
Ben Amor Bassem
Rattlerr
sitemap
Only Title

Answer Questions

  • adorer How do you set the name of a thread in C++?

    This is something that I've been able to do in linux development, but I have not figureed it out in Visual C++. I've noticed that the thread list contains names, however they are always the same and I cannot seem to find the way to name them. This is not an MFC application. Currently, I'm using _beginthreadex to create the thread. Yes... See the following article: http://msdn.microsoft.com/library/default.asp url=/library/en-us/vsdebug/html/vxtsksettingthreadname.asp Does it work on the current thread (-1) That looks promissing... I can use it to set the name of the caller thread, but when I try to set it using the ID returned by CreateThread, it does not seem to work. Any ideas If you've got sufficient ac ...Show All

  • sabmni745 LNK2019

    Hello, this will probably seem very easy to any c++ guru but I'm having a problem with the error below. I'm writing a CustomAction dll in C++ 8.0 for an MSI installation. I have a function called UpdateDispatcherAppConfig and in that function I want to be able to call a shared function which is defined in a separate class file. I don't want the shared function to be exported, I have included it so I can share some of the code that is being called from two different custom actions. What do I need to do to be able to call a shared function in a separate class Error 1 error LNK2019: unresolved external symbol "public: static unsigned int __cdecl Util::UpdateConfigFile(unsigned long,wchar_t *)" ( UpdateConfigFile@Util@@SAIKPA_W ...Show All

  • Alexei Pavlov aka BlackTiger unexpected behavior with find_first_of

    I require specifically formatted text for some output logs.  One requirement is no padding on exponent fields ( E-002 vs. E-02).  I simply call find_first_of("E-0"), and use the resultant index to paste together two substrings.  I have found what seems to be random behavior with find_first_of.  Consider the following program that illustrates it.  I generate some random numbers and do my parsing and show some output: int _tmain(int argc, _TCHAR* argv[]) {   srand( time(NULL) );   for( int i = 0; i < 10; ++i ) {     float value = (float) rand() / (RAND_MAX * 10);     std::stringstream ss;     ss << std::scientific << std::uppercase;   &nb ...Show All

  • Patrick-SURFThru Easy one, i'm sure. Appending chars.

    Hey, I'm trying to add two chars together. To make one char. I'm sure this is easy to do, but everything I have found via google refers to strings only. I've only been using C++ for a couple months, but don't worry about jargon. I've been programming for many years. What I have currently tried is the following: CC->Time and CC->DayOfWeek are both of type char[255]. I didn't think this would work, but wanted to try before creating a thread. [code] CC->ScreenText->TextureFont_DrawText(CC->Time & " " & CC->DayOfWeek, 100, float(CC->s_Height)-60, RGBA(1, 0.705f, 0, 1), UI.Tex[1]); [/code] Results in: 1>c:\users\arius\desktop\code\esoteric\production\slarty\slarty\slartyuicp.h(61) : error C2296: '&a ...Show All

  • Taylor Meek Wireless communication with microcontroller

    I have to communicate with AVR Microcontroller. I have to collect data and send information to the microcontroller using visual c++. I don't know how to start. please help I think you are asking for help in the wrong place. You should try some other forums like the one on SDCC . I am assuming your problem involves a lot of hardware stuff. Even if it does not, you should look for help from people who are more into that kind of stuff. Here in this forum you'll only find windows programmers. ...Show All

  • ajpharrington const in Visual Studio .NET 2005

    I am wondering about how the compiler handles const member functions. For example here is code that compiles in Visual Studio C++ .NET: Relevant private members of class: private : int *set; inline void setSetValue( int pos, int val ) const ; Implementation: inline void IntegerSet::setSetValue( const int pos, const int val ) const { *( set + pos ) = val; } set is dynamically allocated in the class constructor. An assignment is being done to a const object but the compiler does not catch it. Is there something I am missing, or is this a known problem Thank you. Moorpark wrote: I am wondering about how the compiler handles const ...Show All

  • Tim Favour Getting pointer to edit box in MFC

    Hi, I'm learning to use MFC and I have encountered a problem... I have a main dialog window, with an edit box (which is used for displaying information), and when a button on the main dialog is pressed, function from another c++ file is called to load data from some txt files and processes it, and I wish to display any errors from processing the txt file to the edit box in my main dialog... say my main dialog's class is called StepDlg, I tried to do this in my other c++ file: StepDlg dialog; dialog.send_data(data); Where "data" is the data I want to display in the edit box... I got an assertion error for this and after a bit of digging and searching I found that the problem is because I have created another dialog by doing " ...Show All

  • xRuntime C2955 Error in Visual Studio 2005 V8 - No Errors in Visual Studio 7

    Any idea why the below stand-alone code has compile errors in 8 but not in 7 Yes, it's strange code pushing the envelope. Never-the-less why does 8 not compile it ------------------------------CUT----------------------------------------------- #pragma once #include <iostream> #include <tchar.h> typedef int TMember; template<typename _Member> class Data { public: typedef _Member _Mbr; int padding; _Member member; }; template<typename _TMember, _TMember *_memberP> class Access { public: _TMember *memberP; Access() { memberP = _memberP; } ~Access() { } }; template<class _Data> class Test : public Access<_Data::_Mbr,&((_Data*)0)->member> { public: }; int _tmain(int argc, ...Show All

  • Batikit Problem in vc++ 2005

    Hello All, I have written some video streaming code in VC++2005 to stream video from video server.Its Successfully compiling with no errors.but when i try to run it its giving error "This Application has failed to start becuase msvcr80.dll was not found.reinstalling this application may fix the problem." I tried after reinstalling the application also but same problem continue. Anyone suggest me how to solve this problem. Thanks in Advance. Adarsh hello re: Problem in vc++ 2005 look at this thread might be help: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=15218&SiteID=1 Bite ...Show All

  • MagedSalah trouble getting started

    I have no programming experience and I have just installed microsoft visual studio 2005. I have a book on C++, it a few years old but i thought it would give me a start on learning c++. I want to compile one of the examples out of the book. How do I do that The book is teach yourself C++ by Al Stevens. Can anyone please help me out it works now! thanks alot! i owe u one it says there were build errors. would you like to continue and run the last sucessful build i clicked on yes and it says, unable to start program c:\documents and settings\user\my documents\visual studio 2005\projects\01\debug\01.exe The system cannot find the path specified.   nick865 wrote:   I want to compile one of the examples out o ...Show All

  • Bubo atlcom.h errors

    Hi. I am trying to compile a project and the compiler returns the following errors: ------ Build started: Project: Server, Configuration: Debug Win32 ------ Compiling... MyServer.cpp C:\Program Files\Microsoft Visual Studio 8\VC\include\atlcom.h(3242) : error C2065: '_Module' : undeclared identifier C:\Program Files\Microsoft Visual Studio 8\VC\include\atlcom.h(3242) : error C2228: left of '.Lock' must have class/struct/union type is ''unknown-type'' C:\Program Files\Microsoft Visual Studio 8\VC\include\atlcom.h(3244) : error C2228: left of '.Unlock' must have class/struct/union type is ''unknown-type'' C:\Program Files\Microsoft Visual Studio 8\VC\include\atlcom.h(3366) : error C2228: left of '.CreateInstance' m ...Show All

  • rdeter Memory bloat when using Visual Studio

    Visual Studio 2005 has been taking up 600MB+ of memory, with a VM footprint around the 1200MB mark. I thought it might have been a plugin I use, Visual Assist, but I’ve uninstalled it and still have this problem. It will happen with normal use, but happens much quicker if I attach/detach the debugger to an application a few times. Anybody have any thoughts on what might be causing this You can use a performance monitor to determine if you are thrashing. I am not sure of the exact items, but you want to monitor page ins and outs. Thank you both for your replies. I have looked at some articles on TechNet that were related to memory thrashing, though none of them were all that useful in my situati ...Show All

  • Leander-Man Matrix of managed garbage-collected objects

    Hi everyone! How can I put in a double array some gc objects I mean, let's suppose we have some Foo objects (instances of the ref Foo class) and their pointers Foo^: if Foo were not a managed class, I would use the statements: Foo*** fooMatrix = new Foo**[elemNum1]; for(int index=0; i<elemNum1; i++) { fooMatrix[index] = new Foo*[elemNum2];} Instead, what have I to write if I use gc objects Something like Foo^^^ (but it doesn't seem to work) Thanks! The compiler gives me an error...maybe some "include" is missing What error exactly Beginning of this file is standard for Console application: #include "stdafx.h" using namespace ...Show All

  • ADP Comm C++/CLI destructors and finalizers chaining

    According to the topic "Destructors and Finalizers in Visual C++" in the "C++ Language Reference" implementing a ~ destructor or a ! finalizer automatically chains to base classes which have these semantics after the derived class destructor or finalizer code is run. However it is suggested in that topic that the C++/CLI programmer call the finalizer at the end of the destructor processing. Would not this then mean, in that idiom of calling the finalizer of a class from the destructor of that class, that the order of destructor calling whenever a destructor is run would be: 1) destructor of derived class -> finalizer of derived class ( through suggested call ) -> finalizer of base class ( through chaining ) -> ...Show All

  • Hatzi74 How to get a currently active desktop

    Hello all, Please tell me the way how to get a desktop which is currently active. And related questions; Q1.Is it only one desktop that can be active at a time Q2.Is it only SwitchDesktop that can activate another desktop Thank you. Are you looking for OpenInputDesktop There can only be one input desktop per session as far as I know. With multiple sessions (think Terminal Services) each one have their own desktops. Thank you, Mattias Sjogren. Mattias Sjogren wrote: Are you looking for OpenInputDesktop Yes, that is I was looking for. ...Show All

121314151617181920212223242526272829

©2008 Software Development Network

powered by phorum