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

Software Development Network >> Visual C++

Visual C++

New Question

Difference between Visual C++ and Visual Basic.net
converting text from a text box to a int type
Resources Path String
Linking an app in debug mode (with /MDd) against static lib built in release mode (with /MD)
Shallow Copy , Deep Copy , Memberwise Copy ,Bitwise copy
_findfirst, _findnext and _stat problem
MSBuild running from Local System
error LNK2001
convert type String^ or char * to double vc++ 2005
Multiple Class instances and memory

Top Answerers

Gnanadurai
Jillaint
John Basedow
Plum117
Igor Tkachev
Sweeps78
asimsenyuva
Australian Sewing Machine Co.
Montana Jones
hula_samvaad
sitemap
Only Title

Answer Questions

  • rodri_ogri SetCheckboxValue method

    Hi, When i try the SetCheckboxValue method i get a compile error saying identifier not found... This is the actual code i get the error at: SetCheckboxValue(IDC_mycheck, true ); Any ideas Cheers Anger. Hi. I think that you use an Interface "ICredentialProviderCredential::SetCheckboxValue Method" for Set checkBox; that exists in WinSDK. http://msdn.microsoft.com/library/default.asp url=/library/en-us/shellcc/platform/shell/reference/ifaces/icredentialprovidercredential/setcheckboxvalue.asp for use this Interface you must initialize a COM.  like this : #include "Windows.h" #include "wininet.h" #include "shlobj.h" using namespace std; int main() {  HRESULT h ...Show All

  • tantz <windows.h> Interferes with System::IO::Directory::GetCurrentDirectory();

    Including windows.h in a managed project overrides System::IO::Directory::GetCurrentDirectory();, which is very annoying: rootFolder = System::IO::Directory::GetCurrentDirectory(); //'GetCurrentDirectoryW' : is not a member of 'System::IO::Directory' How can this be prevented This seems to be the only function in wondows.h that gets confused with System::... I didn't know such a thing could be done. It works, thank you. If you do not need the GetCurrentDirectory function from windows.h , maybe you can just un-define it: #include <windows.h> #undef GetCurrentDirectory I hope this makes sense. ...Show All

  • Anarchy CreateThread vs _beginthreadex

    Hello. There is a hot discussion on one Russian developers forum about correct threads creation. _beginthreadex is more correct way because it initializes CRT for the newly created thread. But there is one great "BUT"!!! For example we have any callback function which uses CRT (like an exported function from dll). This function could be invoked from any thread including threads, that was created via CreateThread (i.e. CRT was not initialized for this thread). So this call can cause an undefined behaviour! But there is not way to determine CRT initialization status and initialize CRT manually It looks like a potential source of great troubles. Simple Samples wrote: Alexander Stoyan w ...Show All

  • RainyDayz Please Help!!!

    Here is my problem, I am new at c++ .. I need to create a class Fraction Class, then I need to write a main function that will be used that class, I can not wriete the class inside the program that use the function. This program needs to reference that class Here is the class #include "stdafx.h" #include <iostream> ///#include <conio.h> //#include <ctype.h> //#include <iomanip> using namespace std; class func_cal // define the class { public : int num1,num2, dem1,dem2; int nMaxDenominator; int m_Denominator; //////}; void instructUser() more functions and constructor ...Show All

  • kleinma Intercept the PASTE message

    Hi: I want to know how to intercept the event which is generated when the user do : CTRL+X or a paste. I don't find a message like SC_PASTE in the documentation. Is there any message related to the Clipboard Thanks. A.B. Use SetClipboardViewer http://msdn2.microsoft.com/en-us/library/ms649052.aspx , and handle the WM_DRAWCLIPBOARD message. Hi: I think that the word "Service" is not the appropriate one, I use a systray for my application. I'm developing a small application like "SuperCopier" which intercept the paste, CTRL+X notification in order to create a progress bar for copying data with many functionality like (Stop/Resume). The clipboard is a per session resource, while multiply-logged ...Show All

  • airwalker2000 [OTP] Error message PSAPI.DLL

    I am getting a error pop up saying Get Process Image file name w. could not be located in the dynamic link library psapi.dll What should I do to fix this. April Suffering from same problem at boot up and it is to say at least very irritating, but the good news is I have traced the little gremlin to NTL's BROADBAND MEDIC which is an internet diagnostic tool,I have uninstalled this and the error message has not since reappeared.As already mentioned in previous replies this is a programme which can also be known as Motive or Smartbridge and as it is part of my ISP's installation programme I have no alternative but to install it and then remove it as soon as possible because it causes all kinds of gri ...Show All

  • Rumen Filkov Global Hooks

    Good day everybody!° Can anyone help me with global hooks I have a dll library in wich function is defined EXPORT LRESULT CALLBACK ShellHook( int nCode, WPARAM wParam, LPARAM lParam) { if( nCode==HSHELL_GETMINRECT){ TCHAR NameOfClass[255] = {0}; GetClassName(HWND(wParam), NameOfClass, 255); if (_tcsstr(NameOfClass, _T( "SALFRAME" )) != NULL){ MoveWindow(HWND(wParam), 200,200,200,200,1); } }; // Pass the message on to the next hook return CallNextHookEx(hook, nCode, wParam, lParam); }; In Dll`s header file this function is declared as #define EXPORT extern "C" __declspec ( dllexport ) EXPORT LRESULT CALLBACK ShellHook( int nCode, WPARAM wParam, LPARAM lParam) ...Show All

  • AndyPham Adding Buttons in ListCtrl

    hi, I want to add a Button in ListCtrl in a Cell as a Cell Item. Can I add more than one button in the Listctrl's particular cell. Do you have any idea regarding this pls send the idea. Is it possible to do with an CListView or CListCtrl. thanks you sarath for giving me an good example. Dear Hima, Please see an article from codeproject on Customized Report List Control With In Place Combo Box & Edit Control You can easily replace with a button control instead of the edit control they have used in the article. HTH ...Show All

  • Aleyna C and .net

    Hi, I've lots of programs written in C (not C++) and I want to include some .net framework in them. How can I do I've Visual Studio.net 2005. Thanks. SerialH I just want to use the graphical interface of the .net framework for my C applications... Thanks. moving to different forum. well it is prbly practically impossible to use .NET from a C compiler, but.... since C++ is backwards compatable with C you may be inluck. It is possible to call a pointer to a managed .NET class in native C++. first make a native class in VS, than declare the managed object you wish to use like so: gcroot<ManagedClass^> MyObject; Now copy your ...Show All

  • balti bob How to delete a pointer passed by a .dll

    I have a global function passed as a .dll to a client application: Inside dll application, in RegSys.h: __declspec ( dllexport ) CRegSysData* GetData(); In RegSys.cpp: CRegSysData* GetData() { AFX_MANAGE_STATE(AfxGetStaticModuleState( ) CRegSysData* pData = new CRegSysData(); // here memory is allocated, but where should I free it pData->m_dllValue = 100; // sample code return pData; } Then in the client application TestBench.cpp: CRegSysData* pD = GetData(); m_clientValue = pD->m_dllvalue; // compilor will complain if I delete pD here. } I also can't delete pData in a class or ExitInstance of RegSys Application, since it's a global function, pData doesn't belong to any class. If I ma ...Show All

  • Arnoh RegSvr32 and global data and extern problem

    Im having a strange problem with regsvr32 when registering a DLL. Get the following error message: Linking... Creating library C:\DEV8\cbwbCalculator\Debug\cbwbCalculator.lib and object C:\DEV8\cbwbCalculator\Debug\cbwbCalculator.exp Embedding manifest... Registering output... Project : error PRJ0050: Failed to register output. Please ensure you have the appropriate permissions to modify the registry. It seems if i start commenting out some global data references that use extern then problem seems to go away - but i have lots of externs. extern BOOL bIsOLE; I dont understand why global extern references would cause a problem with regsvr32... Can you just not use global data references with a COM DLL Can ...Show All

  • mjhoagland Redistibution Problem with 'USE MFC in shared dll' in VC 2005

    Hello all, I am using VC++ 2005 (VS 2005 Professional). When I build my project (in which I want to have a separate resource dll) as 'Use MFC in a Shared Dll' my project starts giving error on a fresh machine (Win XP SP2 without Visual Studio which I am using as testing machine) but works fine on my developement machine (Win XP with VS 2005 Professional). But instead if I use 'Use MFC in a Static Library', my project works fine on same testing machine. The error message reads " The application has failed to start because application configuration is incorrect. Reinstalling the application may fix this problem. " I read some articles about 'Side by Side linking' & 'Embedded Manifests' but could not make it run even after d ...Show All

  • spunky1a PLEASE SOMEONE TELL ME HOW TO GET THIS TO WORK

    This is a program for class that needs to have type string for the item number and description, and type int for item quantity, and price. I need to multiply PartPrice * PartQuantity giving "Total".......i can not get type int to work and have no idea what is wrong i need to have the programs separated as is in a Invoice.cpp and a InvoiceTest1.cpp. so far i have: ( Invoice.cpp ) #include "stdafx.h" #include <iostream> using std::cout; using std::endl; #include <string> using std::string; class Invoice { public: Invoice( string name, int amount ) { setPartNumber( name ); setPartDescription( name ); setPartQuantity( amount ); setPartPrice( amount ); } void setPartNumber ...Show All

  • tom_7 VS2005 linker error with typeid

    Hi, I have the following code: _pReturnValue = (typeid (*pDevice)).name (); This piece of code used to compile and run fine on VC2003 and VC 6.1, but in VS2005 it gives the following error: error LNK2019: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall type_info::name(void)const " (__imp_ name@type_info@@QBEPBDXZ) referenced in function "protected: char const * __thiscall CNiDeviceSpyAutoLogger::_GetDerivedClassName(class C4882Device const *)" ( _GetDerivedClassName@CNiDeviceSpyAutoLogger@@IAEPBDPBVC4882Device@@@Z ) Can someone tell me what I need to do to get this code compiling and linking again Thank you, Anand Actu ...Show All

  • Scott_P basic_ostream::write() formatting bug

    I called the basic_ostream<char> method write(const char_type*, streamsize); and the function seems to be formatting the data I'm sending it. In my case, I sent it a double with the byte values: 0x9d, 0x16, 0xe7, 0xc6, 0xb4, 0x0a, 0xb7, 0x41 but what ended up in my file was: 0x9d, 0x16, 0xe7, 0xc6, 0xb4, 0x0d, 0x0a, 0xb7, 0x41 Looks like the write function interpreted a byte of my double as a '\n' and converted it to a '\r' '\n' pair. This would be correct except that write is an unformatted output function and should not do any conversion - regardless of the open mode's binary flag. (see book "Standard C++ IOStreams and Locales - ISBN 0-201-18395-1", p51 for details on the C++ standard). Two action items ...Show All

353637383940414243444546474849505152

©2008 Software Development Network

powered by phorum