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

Software Development Network >> Visual C++

Visual C++

New Question

When Vtable Create
Some lib missing
one super easy question !!! urgent !!!
Parameter attribute issue upgrading from .NET 1.0 -> .NET 2.0
warning C4244: 'return' : conversion from 'ULONGLONG' to 'DWORD', possible loss of data
Legacy MFC app using HWND_TOPMOST
Multiple Compilation
PLEASE SOMEONE TELL ME HOW TO GET THIS TO WORK
Multiple Compilation
How do I link NTDLL.LIB into a Win32 console application?

Top Answerers

MMCompton
Mark Hotton
KSK
eldiener
easy right
msmuser
Pedro Martins
FreeAgent
SCRunner
Mike Strobel
sitemap
Only Title

Answer Questions

  • LouArnold How the AutoPointer works in VC.

    Need more information about how the compiler & runtime deals with auto pointer in vc. Thanks in advance -Partha Nice reply SvenC,thanks, >CComPtr<IYourInterface> pls check the code, you will come to know the problem. CComPtr<IMyContextEx> pObjContext; HRESULT hRes = pObjContext.CoCreateInstance(CLSID_MyContextEx); if (hRes!=S_OK) { Log(_T("CoCreateInstance for failed(0x%08X)"), hRes); return hRes; } See the CoCreateInstance statement, the memory leak detection tool point that place and displays the following memory leak information. <FRAME num="21" dll="AppProxy.dll" function="ProcessMessage" offset="0x316" filename=&q ...Show All

  • Rafael Mores VS.2005 constantly crashes when trying to compile, start or debug an application

    Hi everybody, We are currently trying to migrate our (unmanaged) C++ code base from VS.6 to VS.2005. Some smaller projects have already been migrated successfully, but unfortunately, we're experiencing lots of problems with our major project (which is a single big application build from about 4.000 C++ files in several static libraries). The main problem is that VS.2005 constantly crashes whenever we try to compile, start or debug the application. This may sound odd - since one cannot start an application without beeing compiled - but we've managed compiling the project using the IncrediBuild plugin. However, if we choose "Build Solution" (or "Rebuild Solution"), or try to "Start Debugging" or "Star ...Show All

  • IamHuM Static Global Object inside a DLL

    Hi, I want to have an instance of my class as a global static object. Is it possible to have it inside a DLL. What will happen to such object declarations and when will they get initialised Thanks, Jayaram Ganapathy Hi guys, the problem was in the constructor of the static object I had a call to exit function Regards, Jayaram Ganapathy ...Show All

  • fusi0n LINK : warning LNK4089: all references to "SHELL32.dll" discarded by /OPT:REF

    Hi. when I run Batch Build .... Deleting intermediate files and output files for project 'Sampler - Win32 Release'. Deleting intermediate files and output files for project 'Sampler - Win32 Debug'. --------------------Configuration: Sampler - Win32 Release-------------------- Compiling resources... Compiling... StdAfx.cpp Compiling... Sampler.cpp SamplerDlg.cpp DisplayDlg.cpp Generating Code... Linking... LINK : warning LNK4089: all references to "SHELL32.dll" discarded by /OPT:REF Sampler.exe - 0 error(s), 1 warning(s) --------------------Configuration: Sampler - Win32 Debug-------------------- Compiling resources... Compiling... StdAfx.cpp Compiling... Sampler.cpp SamplerDlg.cpp DisplayDlg.cpp Generating Code... Linkin ...Show All

  • cybertaz69 MFC edit control border

    Hi, I'm trying to make various MFC applications with edit controls using VS2005 when I noticed my professor's edit controls were flat, 2D with just a blue border.  I have no idea how to accomplish this.  In VS2005, I open the IDD_FORMVIEW and add an edit control with no static edge or anything, just border set to true.  In the designer and the "Test Dialog" mode, the control looks correct:  2D, blue border, very simple.  But when I build and run, the blue border is gone and the edit control is now sunken and 3D.  My professor has no idea why his is different, since our edit controls use the same options.  I have also tried to do the exact same thing in VS2003 on a different computer, wit ...Show All

  • moke48462 menu problems

    hi there I have one little problem the thing is about menu I would like to make some elements gray and it dosn't work, menu id is IDR_MENU1 I tried to use a EnableMenuItems but it dosn't seem to work help me please PS I am using VC++6 if only it is important Adrian Proszczuk Poland Could you please post the code you have used Did you forget to added the flag MF_BYCOMMAND Dear Sarath actually there is no code 'cos I havn't the hell idea what to write anyway I basing on some example from book I wrote something like that: void CHHManagerDlg::DisableButtons(void) { CMenu menu; CMenu *ptrMenu_0; CMenu *ptrMenu_1; menu.LoadMenu(IDR_MENU1); ptrMenu_0=menu.GetSubMenu(0); ptrMenu_1=menu. ...Show All

  • foobarX Compile err STL VC8

    My_EXPORT MyLog::MyLog(): #ifdef linux ostream (NULL), #endif buffer_(NULL) { initialize(); } 1> error C2512: 'std::basic_ostream<_Elem,_Traits>' : no appropriate default constructor available 1> with 1> [ 1> _Elem=char, 1> _Traits=std::char_traits<char> 1> ] It seems that basic_ostream does not have a default constructor which means you need to initialize it. What happens if you remove the #ifdef linux ...Show All

  • yxxng Creating a new Task Object with CDOEX

    I am attempting to create a new Task object for a given Exchange 2003 user via CDOEX, but do not know how to reference Task objects. Using the Exchange 2003 SDK (and the instructions found here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/e2k3/e2k3/_esdk_samples_createappointment_intro.asp ), I can easily and reliably create a new calendar item for a given user. I would like to do the same thing with a Task item, but am not sure how to go about this. Any help would be greatly appreciated! Thank you! This forum is C++ language issues. For Exchange questions, try one of the MSDN discussion groups such as: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.exchange.applications&lan ...Show All

  • Terryj1 C++ declaration of Large number Variable type

    I want a variable to hold a very large numbers (10 bytes, 80) bits and looks like this in decimal 1208925819614629174706176 (25 digits) how do I declare this as a varaible in the begining Plus I am also using pow(,) function and it keeps throwing up an error. James ( james2003g@hotmail.com ) For such large numbers (>64bit) you should look to a big number library such as GNU MP ( http://www.swox.com/gmp/ ). If 64bit is enough, try something along the lines of " __int64 x = 1208925819614LL ". Yes, it is a library. Yes, there is no other way. May I know, what are you using big numbers for Andrei James2007 wrote: ok! forgive by naiveness, but ...Show All

  • QWERTYtech Can someone please help with my lnk2019 errors

    Hello, I've just recently started using C++, and I am using a physics engine (PhysX 2.5.1 by AGEIA) with the intention of making a game. I'm using the Visual Studio editor, and I've written a simple program which uses the physics engine software and should create a box in an environment, however, while all the code compiles fine, when I try to build the project I get the following error log, all the methods and classes mentioned are ones I am using from the physics software I think;- 1>------ Build started: Project: Box on a Plane, Configuration: Debug Win32 ------ 1>Linking... 1>Main.obj : error LNK2019: unresolved external symbol "void __cdecl DrawActorShadow(class NxActor *)" ( DrawActorShadow@@YAXPAVNxA ...Show All

  • moontube Thread Safety in C++ code

    Hi, I was going through this article http://blogs.msdn.com/oldnewthing/archive/2004/03/08/85901.aspx This talks about " C++ scoped static initialization is not thread-safe, on purpose! " One of the resolutions is to use to critical section to avoid race condition. My question is what if in any program, critical section itself is static, then there will be thread safety issue, any pointers/ideas how avoid this condition Thanks! Critical section objects are initialized as the parameter to InitializeCriticalSection, and not through assignment. Therefore, static initialization isn't really the main issue. Given a function such as void foo() {     static CRITICAL_SECTION cs; ...Show All

  • xRuntime char * to unsigned short *

    hi, I have to pass a string to a function, which takes input in "unsigned short *" format How can I do this conversion Thanks in advance, Prashant Additionally, see this FAQ . In addition to Viorel's (hope I spelled right) comment, if your windows application is unicode ready make use of TCHAR data types and _T macros for string definitions and also use "t" set of string copy and other string related functions. So that your source code will be compilable in both Unicode and ASCII builds. If you function actually requires a Unicode string defined as unsigned short * (instead of usual const wchar_t * ), it seems you first should convert your char * string to wchar_t * one ...Show All

  • walkswan How can I take the valor of a variable of a .cpp to other .cpp?

    Hi,I need to take a valor of a variable CEdit of one .cpp and use it in other .cpp. I have put this but it doesnt work: static CString MyVariable; The compiler works well but in the execution I see that there isnt valor in the new variable. Help Sarath. wrote: class CMyDialog { CEdit m_Edit; public: CString GetEditValue() {m_Edit.GetWindowText()}; } other dialog or CPP file CString strText = m_pDlg->GetEditValue(); You may have to pass the dialog objects pointer to the other class to access the function. Another way is to use GetDlgItemText API if you know the resource name. I'm not sure whether Ihave answered you or not. Jeje,I did this this morning and it didnt work.I dont ...Show All

  • RazaRizvi Explicit Interface Method Implementation

    In MC++, I can do the following: - __gc __interface ICloneablePerson { Person* Clone(); }; public __abstract __gc class Person : public ICloneablePerson { private: String* _name; protected: Person() :_name(String::Empty) { } Person(String* name) :_name(name) { } Person(Person* source) :_name(source->_name) { } public: __property String* get_Name() { return _name; } }; public __gc class Student: public Person { private: String* _id; public: Student(void) :Person() { _id = String::Empty; } Student(String* name) :Person(name) { _id = String::Empty; } ...Show All

  • smhaig How to detect a mouse event of other applications?

    Hallo, i would like to get a mouse event when my console application is running. Under http://www.codeproject.com/shell/taskbaricon.asp is a nice solution but I need to get the mouse event although i did not click on the systray icon. A global mouse event listener in other words. Thanks a lot for your help. I hope you can understand my English. I assume that How to detect a mouse event of other applications is also your question. That is a better place to ask this question. you have to Perform hooking in your application to trap the Mouse Event in any of the application.so at the time when you will click on any app the event will send to your app and you can handle the event in your call back rou ...Show All

95969798990123456789101112

©2008 Software Development Network

powered by phorum