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

Software Development Network >> Visual C++

Visual C++

New Question

New template compilation errors in 8.0
CEdit number or text
VC++ 2005 : ambiguous call to overloaded function
Vista "for loop" problem
Notifications and messages in win app.
Memory mapped file size limit
How to solve the problem due to DEP
COM & visual studio 2005
How to do what I already have done in Visual C++ 6.0
/Wp64 and sprintf

Top Answerers

Senthil Ramadoss
bryanedds
Hussain Saffar
Norbert Thek
precious1026
MuscleHead
is98
Queeez
hte
matti81
sitemap
Only Title

Answer Questions

  • Kiran Pillai Editing Array of string values from CSV file

    I'm new at this so please bear with me. I have a CSV file that contains about 500 rows and 50 columns. I need to keep all the rows but only keep columns 1,2,3,4,6,7. I've opened the CSV and stored each row as a single element in a one-dimensional array. What I need to do now is search through those array elements and remove everything except column 1,2,3,4,6,7. Am I approaching this problem correctly If so, how do I proceed I'm stuck. How can I read until the 7th column What would I need to add to the code I also need to omit the 5th column. Thanks for the help. When I try to print the contents of the array, I get 500 values of System.Collections.Generic.List'1[System.S ...Show All

  • Ed_Zero WaitForMultipleObjects doesn't work

    Hello Everyone! Function WaitForMultipleObjects Requirements: Requires Windows Vista, Windows XP, Windows 2000 Professional, Windows NT Workstation, Windows Me, Windows 98, or Windows 95. But this function doesn't work in WinNT. Why Thanks in advance Vladimir Vladimir_V wrote: Now I'm using LARGE_INTEGER check_elapse = {-10000}; When I try to receive a return code (just for test) while (1) { printf("step 1"); dwObject = WaitForMultipleObjects(dwCount, hControl, FALSE, INFINITE); //1 printf("dwObject = %d", dwObject); printf("step 2"); ... I receive the following step 1 and that's all:) ...Show All

  • jellali Can Visual C++ 2005 create a Makefile from a vcproj file ?

    In Visual C++ 6.0 It was possible to export a project as a makefile, however now that I have upgraded to visual C++ 2005, I can no longer find this option, is it still possible to exprort a project as a makefile , and how is it done. This page seems to offer some explanations: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=948720&SiteID=1 . ...Show All

  • Mturco11x Issues while porting VC++ 6.0 project to VC++ 2005

    Hi all, I am new to VC++ 2005. I am porting a COM project created previously with VC++ 6.0 to VC++ 2005. I am running into few compilation issues. Request for help. My code looks like below ..... //I have following in my file include.... //I added strstream in the include as part of porting #include <strstream> // ostrstream using namespace std; ................. //A function which has ostrstream as one of the params..... void ConLong(FieldsPtr fields, ostrstream s, const char *name) { _variant_t v = fields->GetItem(name)->Value; if (v.vt != VT_I4) s << '|'; else s << v.lVal << '|'; } //and the above function is called as follows... STDMETHODIMP CTest::Add(VARIANT *recordset, VARIAN ...Show All

  • Sincas bug in wingdi.h ?

    Hello, could someone verify this is bug : #define GetGValue(rgb) (LOBYTE(((WORD)(rgb)) >> 8)) Atleast for me it throws runtime-check-error when used. """ Run-Time Check Failure #1 - A cast to a smaller data type has caused a loss of data. If this was intentional, you should mask the source of the cast with the appropriate bitmask. For example: char c = (i & 0xFF); Changing the code in this way will not affect the quality of the resulting optimized code. """ Change to #define C_GetGValue(rgb) (LOBYTE(((WORD)(rgb&0xFFFF)) >> 8)) helps, so it seems like a small bug in headers to me. I wouldn't like to spam the Microsoft Connect with this th ough... Regards, Mar ...Show All

  • Shady9399 Ask a problem,about template:)

    Ask a problem,about template:) i write template class <<<<<<<<<class.h>>>>>>>> #pragma once template <class T> class Tem { public: T rxg(T a); }; <<<<<<<<<class.Cpp>>>>>>>> #include "stdafx.h" #include "class.h" template<class T>T Tem<T>::rxg(T a) { return a; } <<<<<<<<<<<Dialog.Cpp>>>>>>>>> #include "Class.h" ................................ Tem<int> moral; int a=moral.rxg(10); Error: Test.obj : error LNK2019: unresolved external symbol "public: int __thiscall Tem<int>::rxg(int)" ( rxg@ $Tem@H@@QAEH ...Show All

  • Njofra Find in Files and View->Find Results 1 window no longer work

    Greetings, I have come across a bug in vs2005. My Find in File no longer works. Every time I press it Dev Studio looses focus but the Find in Files dialog does not come up. Nor can I bring up the FindResults1 window, However the Find Results 2 does still work. Another thread has posted a "Fix" is to try pressing Ctrl + ScrLk and/or Ctrl + Brea. One even suggests trying this during a compile, I have tried to no avail. It amazing how much you use it without thining and how much you miss it when its gone. Crippled, I tried a full unistall + reinstall and it still does not work. Perhaps this is a registry bug entry Help, I have to get this working, I'm one step away from having to reinstall windows!!! I have found the F ...Show All

  • flerida separating high and low 32 bits in a 64 bit interger

    Hi, Can anyone help me to separate the high 32 bits and low 32 bits of a 64 bit integer into 2 new intergers Thanks in Advance Could you show us some code that you tried Thanks, Ayman Shoukry VC++ Team I am trying to write a C++ program That should be as simple as shifting and applying masks. inline unsigned long HILONG(__int64 value) { return (unsigned long )(value >> 32); } inline unsigned long LOLONG(__int64 value) { return (unsigned long )(value & 0xffffffff); } ...Show All

  • niroshanonline RLE Compression????

    hi everyone, I am doing project that requires me to do a compression of a bimap file in c++. I came after "RLE Compression" after browsing through some sites. Coz i am quite new to c++, i have no idea how to do a RLE compression. Do anyone have a site or a sample to share about RLE Compression Thankz you so much. Regards Natoia The easiest way to compress a bitmap is to save it in the GIF or JPEG format. Of all the standard bitmap formats around, only TIFF uses RLE compression. BMP is rumored to support RLE but I've never seen it... If this is a homework assignment and you need to come up with a way to compress a bitmap, RLE compression is the way to go. It is a simple co ...Show All

  • Wint Creating Windows Shortcuts (Shell Links or .lnk files)

    I am having issues figuring this out. In Visual C++ 2005, I am trying to create a shortcut. At this point I don't care what the shortcut is for or where it will go. I've seen references to the Windows Scripting Host Object and the IShellLink interface. Neither of which can I figure out how to use. When I referenced the WSH, I was getting errors about undefined identifiers, I guess because I don't have any kind of header file to use. Any help would be appreciated. Thanks. That's a very good article, but I don't think it has much to do with .LNK files. Am I missing something LNK files look to be a very fundamental part of the Win32 shell -- not something that's added on as a component. There it is ...Show All

  • Ofer Kalisky C++/CLI ICE while passing a member function pointer to template argument

    The original code that caused ICE was different, but I narrowed it down to: #include "stdafx.h" using namespace System; struct Dummy { void bar() {} }; template < void (Dummy::*pmem)()> void foo() { void (Dummy::*memfunc)() = pmem; } int main(array<System::String ^> ^args) { foo<&Dummy::bar>(); return 0 ; } _Winnie C++ Colorizer The ICE occurs at line 14. If I remove line 19, everything's ok. Note, that this code causes no problems in native C++ compiler and is C++ ISO conformant (well, except for System::String^ and array<>^ part ;)) The only thing I can suggest ...Show All

  • lucerias New template compilation errors in 8.0

    Hi All, This template code compiled fine in the previous version of Visual Studio, but when I tried to port this code to Visual Studio 2005 I get compilation errors.  Can someone help Class declaration in header file: // Linked list entry class template<class T> class CProListEntry {     public:         // Construction/destruction         CProListEntry();         CProListEntry( const T& data );         CProListEntry( const CProListEntry<T>& entry );         ~CProListEntry();       &nb ...Show All

  • MF Recruit Trace

    What is the trace I found a class and a tool... but what for Is it a particular log file How can I use it That tool is useful to display tracing info generated by an MFC program with the TRACE macro . The Trace class is a managed .NET class, useful to generate tracing info in a C++/CLI program. Check the docs on how to use them... It's installed when you install the VS 2005 IDE. If I don't wrong there is something like it in VC++ 6 also. But I didn't understand what it's in general. That still doesn't narrow it down. Are you talking about the "MFC-ATL Trace Tool" There's lot of tracing tools, MFC TRACE macro jumps to mind, as does .N ...Show All

  • Sean Connolly My app get's hung up some times and is not responding

    I am developing this simple arithmetic program and this is my first windows application ever, so I am not so sure at how to program this. In my app the user can set the lower limit and upper limit for the calculations numbers that are about to come up in a test the user want’s to do. You se the upper and lower limit as variables in the code below. The code below generates calculations for addition, subtraction and multiplication. So let us suppose that the user sets the limits to lower = 1 and upper = 100, that will give us 100 x 100 = 10 000 calculations! When I test this on my own computer it takes a while to generate all calculations, and if I change upper limit = 200 the program stops I push (ctrl+alt+del) and it says that the applica ...Show All

  • ismail el hilo EDITTEXT resource to HWND

    Hi, Is there any way that I can retrieve the HWND handle of an EDITTEXT resource for use in messages Thanks in advanced. ---Dan Use the GetDlgItem method, with the dialogs handle as first parameter and the id of the control in question as second. I'm actually using pure Win32 SDK...No MFC, ATL, etc (partially becuase I am using Dev-C++)...Anyway, an EDITTEXT control is a resource type for a text editing area within a dialog box. It is apparently a member of the EDIT class. I am trying to retrieve the HWND handle of it...Is there a way What is an EDITTEXT resource Is that another name for a textbox In MFC, there's a .m_hWnd property on the MFC wrapper classes, and ...Show All

93949596979899012345678910

©2008 Software Development Network

powered by phorum