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

Software Development Network >> Visual C++

Visual C++

New Question

Cannot open include file: 'StdAfx.h': No such file or directory
MFC/C++
mangled name
How to make a program unkillable
Passing Unmanaged Class by reference to Managed Class Constructor
Urgent Super easy question ! I cannot use the protected method of DataGridView
Please help this silly Newbie:All about array
C2555 error in VS C++
How to create a windows service property sheet
how to get Networks Connections device list

Top Answerers

Joe Buys
Ross Watson
Jerryl101
Bastiaan Molsbeck
vikram vilasagaram
Jassim Rahma
Alexei_shk
DreamingBear
vidya_084
herman_hhh
sitemap
Only Title

Answer Questions

  • Kapoulkine Arseny Warning C4482 - Enums

    Maybe this isn't the correct forum, perhaps if I ask the question this way. Is there anything wrong with the way I am using the enum below FigureNames is simply an enum {jack, jill, etc..}. When compiling, it get the following warning; Warning 2 warning C4482: nonstandard extension used: enum 'Names' used in qualified name c:\Documents and Settings\Steve Jackson\My Documents\MySchool\C++\Assign1\Assign1\Assign1\Main.cpp 282 switch (name) { case Names::jack: cout << "My name is jack!"; break ; } That's the weakness of C++, unfortunately. Namespaces can be used to get around this limitation. If you want to get rid of those obnoxious error mes ...Show All

  • Patrik Olsson Junk values when build in Release mode

    Hello Everybody, I am having a strange problem in one of my VC++ code. I am setting a value in the code, which is getting retrieved perfectly when executed in DEBUG mode. But when I try to execute the same in RELEASE mode only junk values are being returned instead. I am totally clueless. Could anybody be having some idea on this My code snippet is as follows: _bstr_t szStatus = _T(""); _bstr_t szMessage = _T("not available"); // the value that I am trying to set int retVal = -1; try { retVal = m_oSql.GetStatusDescriptionSQL(...); if (retVal == 0) { szStatus = szMessage; // the value is being assigned here } } catch ( CSQLException& e ) { return this->Error(CComBSTR(e.m_szMsg), IID_ICola, E_F ...Show All

  • Soundbyte CRichTextEditCtrl Printing question

    The below code is derived from the MSN help pages. I'm trying to figure out how to print the contents of my CRichEdit window. Could anyone tell me what I'm doing wrong The CRichEdit is contained in a CDialog derived class. m_DisplayWindow is a CRichEditCtrl. // Prepare to print CDC dc; CPrintDialog printDlg(FALSE); // Get printer settings from user if (printDlg.DoModal() == IDCANCEL) return ; // Get and attach a printer DC dc.Attach(printDlg.GetPrinterDC()); dc.m_bPrinting = TRUE; // Get line width information from the printer. long lLineWidth = ::MulDiv(dc.GetDeviceCaps(PHYSICALWIDTH), 1440, dc.GetDeviceCaps(LOGPIXELSX)); m_DisplayWindow.SetTargetDevice(dc, lLineWidth); m_DisplayW ...Show All

  • bw12117 Converting System::String to LPCWSTR

    I've been looking for a long time as to how to solve this, and eventually just thought I'd ask. I've been told of A2W, which apparently cannot convert from System::String (so says the compiler error), I've tried converting to a wchar_t first, but the method won't accept it, and I'm running out of luck. Here's what my code looks like now. pin_ptr<const wchar_t> wch = PtrToStringChars(fileName); IAVIFile *aviMedia = NULL; IAVIStream *aviStream = NULL; AVISTREAMINFO *aviSInfo = NULL; AVIFILEINFO aviFInfo; LONG bufferSize = NULL; DWORD length = NULL; wchar_t wcFileLoc; Single vidLength; AVIFileInit(); wcFi ...Show All

  • Anand Raman - MSFT 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

  • JollyChollie How make, that message box show lithuanian letters?

    Or, that message box show russian letters, or others, but that not need be change locale for not unicode programs in 'Control Panel'. I not get error message, but that yuo say, MessageBox show letters as Lithuanian. Alikas wrote: Thanks! But unicode programs not work on Windows 98. I want that work. Now I set lithuanian language (or baltic) for not unicode programs on Windows XP. And notepade not show russian letters. I copy some russian letters from russian html file and paste in MessageBox text and want that MessageBox show this text as ruusian letters. I try make that, but still show as baltic letters: #include <windows.h> #include ...Show All

  • IvanOrdonez vcredist_x86.exe runs without errors, does not install VC8 DLLs

    Hello, We built a couple of new machines for development and on both, the vcredist_x86.exe returns without error, but does not actually install all (any ) of the DLLs. vcredist works properly on every other machine in our organization. Here is a log... anything jump out at anybody We see the "skipping", but don't know why it is doing so. Thanks! === Logging started: 11/15/2006 12:15:28 === Action 12:15:28: INSTALL. Action start 12:15:28: INSTALL. === Logging started: 11/15/2006 12:15:28 === Action start 12:15:28: INSTALL. Action start 12:15:28: WindowsFolder.04B9F3B6_9645_7658_FF1F_C8B3B9A1E18E. Action ended 12:15:28: WindowsFolder.04B9F3B6_9645_7658_FF1F_C8B3B9A1E18E. Return value 1. Action start 12:15:28: SystemFolder.04B9F3B6 ...Show All

  • Nick P Setup Visual C++

    Hi, I am very new to visual C++ and I am trying to use it to compile C code. I have everything setup and I created a hello.c file which basically prints Hello to the console window, but when I run my program the output windw opens and then closes in a flash. Does anybody have an idea why this is happening and if this is the right way to compile C code in Visual C++. Thanks, Sunny It seems that you are doing every everything right. The problem is that with today's computers your program executes before you can see much more than a flash on the screen. Trying adding the following as the last line of your main function int main() {    // ...    system("pause"); } This will ...Show All

  • Jassim Rahma Microsoft Visual C++ Runtime Library

    I have experienced problems with my MusicMatch Jukebox. It became corrupt and fried my external hard drive with about 90 gigs of music/movies. I lost all of those files and had to reformat the drive as well as mess around with my PC's BIOS. Finally I uninstalled MusicMatch, reinstalled it only to have this message appear. Microsft Visual C++ Runtime Library Program: C:\Program Files\MusicMatch\MusicMatch Jukebox\mmjb.exe This application has requested the Runtime to terminate it in an unusual way. If anyone has any solutions or has experienced similar problems please help me out. I am not very knowledable with computers and not having access to music really hurts. Thanks in imesh when i open it i get this message ...Show All

  • MartinMalek What is Visual C++ equivalence to C#'s "is" operator?

    I'm trying to convert some C# code over to C++ but cannot figure out what's the C++ "is" operator. C# code: Control m_control; if (m_control is Control) { ... } I've searched and found this article but it's outdated and does not work with Visual C++ 2005: http://msdn.microsoft.com/msdnmag/issues/02/02/managedc/ In which the author defines the following template: template <typename T1, typename T2> inline bool istypeof ( T2* t ) { return (dynamic_cast<T1*>(t) != 0); } bool isanInt = istypeof<int __box>(someBoxedInt); I've tried all following with no luck: if ((Ojbect^)m_control == (Object^)Control) if(m_control.Equals(Control)) Any help would be appreciated. Thanks ...Show All

  • imj licence generation

    hi everyone I want to implemnt license generation algoritham. Basically i want to give trail period of my software for 30 days . Later it has to disable. i Got 2 optinons one is Storing the clsid into the registry . But this is very inefficient because any registry cleaner will clean the registry keys after the user uninstalls the trail software. again he can install and he can use it second one making a file in windows folder But this is also inefficient because any file monitor software can know my file and after completing trail period simply uninstall and again installing the software will make it work. I have seen so many software tools even they won't work if u change the system clock and also once i uninstalle ...Show All

  • joyson OnShutdown() method does not work !

    Hi all experts, I am using VS Pro 2005 and Win XP Pro. I have developed a C++ Window Service to detect the shutdown event and perform some tasks before desktop shutdown. I have followed the MSDN instruction and assigned CanShutdown to TRUE. However, I found that OnShutdown() method is not being called. Could anyone please help me Many Thanks The following sample codes are attached for your reference: =============================== virtual void ABCWS::ABCWSWinService::OnShutdown() override { ServiceStatusLog->WriteEntry("ABC Shutdown"); } void InitializeComponent(void) { .. this->CanShutdown = true; .. } =============================== ...Show All

  • ramkrishnamca Want to give a college student a hand? Some problem about DAO and Multi_thread in MFC...

    Hi,every expert,I am a student coming from China and came across a puzzle problem about MFC programing...Please forgive my poor English. The problem is that open the CDaoRecordset object in thread function which is started by AfxBeginThread() function.If m_daoRecorset->Open() called is NOT in the thread function,there is not exception thrown;if not (in thread function)there are some debugging exception pop up to show something wrong happened in file daocore.cpp.I don't know why. I compile the project in Visual C++ 6.0(not sp5) originally ,but the lib of DAO cannot support the access 2003's file(*.mdb),so I converted it into Visual Studio 2003 ,the damned problem happened.I ask someone in Chinese forum in CSDN(www.CSDN.net),they don't kn ...Show All

  • StevenR2 msvcr80.dll Problem

    Hi there, can someone possibly tell me why Noton WinDoctor is telling me that 10 executables in the .NET Framework 2.0 cannot access the necessary dll file msvcr80.dll I see that the dll exists in the WinSxS directory and I'm running XP pro. I didn't have this problem until I downloaded the 2.0 framework at windows update. Any advice appreciated. Thanks. Naolin Are you sure that WinDoctor is right Thanks much everyone for the feedback. Sounds to me like its an inconsequential error that Norton will need to address in a future update to look for it in the correct dir. I read on an msn blog somewhere (sorry I cant find it again) that one should not put the dll in the system32 dir but from o ...Show All

  • Tim Preston Arrays of Strings

    Hi folks, I'm writing a .NET Winforms project in Managed C++ using Visual Studio 2003 and I'm wondering how I go about having multi-dimensional arrays for String objects I'm vaguely aware of the Array Class, but I'm not sure if this needs to be part of my solution. I've tried a few experiments using the classic C++ method of creating multidimensional arrays, but (of course) this does not work owing to the managed restrictions of the language. In any case, I just need a little direction here - do I need the Array class or is the syntax for this a bit different than what you might expect -Zero array<String^, 2>^ myStringArray = gcnew array<String^, 2>(y,x); Where 2 is the dimensio ...Show All

67891011121314151617181920212223

©2008 Software Development Network

powered by phorum