Software Development Network Logo
  • Smart Device
  • Windows Live
  • Visual J#
  • Windows Forms
  • Visual Basic
  • Visual FoxPro
  • VS Express Editions
  • Visual C#
  • .NET Development
  • SQL Server
  • Microsoft ISV
  • VS Team System
  • Game Technologies
  • Visual C++
  • Visual Studio

Software Development Network >> Visual C++

Visual C++

New Question

C Program. Desperately seeking help.
Exception during module load?
How to insert button into CRichEditCtrl?
using ATL macro to change LPSTR to LPCWSTR
msvcr80.dll Problem
changes of operator overloading in vc++2005
Looking for some guidance
Global Error Handling in VC++6.0
Help me find a better way to keep the compiler from optimizing some functions
a MFC ReBar problem!

Top Answerers

Roemer
Pierre Christophe
ktm300
Ethan Efren
Michael Wright
Jason Smith - MSFT
souma
Mekon2
Ahsukal
SuriP
Ragel State Machine Compiler
Only Title

Answer Questions

  • Mbauser A difficult question

    Hello all, I have done C/C++ programming in university on DOS/UNIX machines. I want now to make the shift to Windows VC++. I am very confused about the various tools available. There is VC++ 6. VC++.net and VS 2005. Are these tools compatible If I learn one can I use the others easily Which one do you recommend I start with Can you recommend a good book Thanks in advance for your help. Hi, The C++ Tools ...Show All

  • kpmkhaja Problem Adding a Class

    Hi - I am using Visual C++ .NET 2003 and am having a problem using the Add Class feature of the Solution Explorer. I am seeing a message box appear with the following message: "Failed to return new code element. Possibly syntax error. New Element name: XXX" The steps to reproduce this error are: 1. Load my Solution 2. Right click a project in the Solution Explorer 3. Select Add->Add Class 4. In the dialog select the Generic class type. This ...Show All

  • talshac Problem deploying a VC++ application

    Hi all.. I have programmed a small application (a Win32 type application) that uses only Windows API and some CRT functions. That way, I thought it would have the fewest dependencies as possible, but I'm afraid I was wrong. First, I only copied the released EXE file to the target machine. When I ran it, a message was shown telling that it expects a CRT DLL, which is expectable since I use CRT functions. Well.. I copied the mentioned DLL bu ...Show All

  • lordfkiller rand() not being random!!!

    OK An other problem which I really need assistance with I'm using srand to generate random numbers out of a range BUT i always get the same sequence of numbers!! But I notice the problem come from rand() i tried to create a new project with only this : #include <ctime> #include <iostream> using namespace std; void main() { srand(time(NULL)); cout << rand() << endl; cin.get(); cin.ignore(); } ...Show All

  • Tealc Wu Resizing arrays on the free stack

    I was wondering wether there is a way to resize arrays on the free stack, whithout having to create a new array of the desired ,size, copying all the values and deleting the old one. I specifically want to delte the first few elements of the array and keep the others. I also want to add elements before the array . For example, if I add 2 elements, I want to be able to access the current [0] as [2], and the 2 new elements as [0] and[1]. Thanks in ...Show All

  • Patrick Pierz Memory: App - Driver

    How do I declare memory for use in an application and a driver I want declare a pointer in the app, "int *pData", then call some function so that the driver will allocate the necessary memory, pointed to by *pData, which can be accessed by both the driver and the app. I'm trying to port a Linux driver and Linux app.  The Linux app is using mmap() function.  Is there a Microsoft equivalent Thanks ...Show All

  • RIHARD D ROBERTS Designer problem

    Hello, I have a little problem... I can't design my form anymore. It happened just like that without me doing any changes and now I can't view the designer. My application runs ok, though. I get two kinds of errors. Some times I get this: One or more errors encountered while loading the designer.The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. Clicking on each error ...Show All

  • adi_lazar create C++ DLL to be used by C# ?

    I want to write a native C++ function that I can later access from C#. Please keep in mind I do not have much experience developing on windows, (mostly unix) and that my only windows compiler is VS2005. I tried creating a MFC DLL. I am able to access this from a C++ .net program, but not from a C# program using P/Invoke. It seems that a plain MFC DLL is not "good enough" for use with DllImport. Is this correct It seems that I h ...Show All

  • RoboForm Help with using DLLs

    Hello, since this appears to be a new forum perhaps I can get some help. I am having the darnest time working with DLLs. I have found snippits here and there, but no concrete complete example programs. My question: Can someone show me a complete program that loads a dll and then executes a function from that dll I have included my first feeble attempt at what seems to me shouldn't be so difficult. The code runs but the dll is not loaded. #inc ...Show All

  • Steve_B Atlthunk.lib help.

    I'm using Visual C++ 2005 Express with SAPI 5.1. I managed to fix the header file compilation errors, except that atlthunk.lib does not exist. Is my solution the same as with using WTL with Visual C++ 2005 Express (I'm referring to the site here .) Yes it is. The page you mentioned describes how to entirely remove the need for atlthunk.lib. That's what providing definitions for AllocStdCallThunk and FreeStdCallThunk does for you. ...Show All

  • Richard Cook - MSFT Setup was unable to create a DCOM user....

    Hi. When I try to Install VS6.0 …. Setup Error Setup was unable to create a DCOM user account in order to register ” ..\Program Files\Microsoft Visual Studio\Common\Tools\VS-Ent98\Vanalyzr\valec.exe” I couldn't Install VS6.0, What should I do Thanks. You're in luck: it turns out you are not the first person to hit this problem: http://support.microsoft.com/default.aspx scid=kb;EN-US;q257413 Are you r ...Show All

  • Steven Jaques Reading from a text file

    Hello, I have been having severe trouble trying to read from a text file, which I have created and placed on the folder. The code I am trying to use is listed as below: void CArchiveDlg::OnArclistingButton() {     // TODO: Add your control notification handler code here fstream ArcFile; Archive item; int nRetCode; ArcFile.open("archive.dat", ios::in|ios::out||ios::nocreate); //ArcFile.seekg(0L, ios::beg); //ArcFile.read((c ...Show All

  • Narahari Can and how do I extend an array of objects during run time?

    Hi, I created an array of objects, based on a class I created to hold data only, at the start of my program. During the run time, I may need to add an unknown number of additional objects to new data. Can I do this How can I increase an array of objects during run timge, one at a time as the need arises For exmaple: myClass aryObjects[10]; .............. How do I add to the aryObjects and make it a aryObjects[11] Thanks. ...Show All

  • Wei Xiang VC++ 6.0 Platform SDK download

    Dear All Do any one know how to get the Platform SDK for VC++6.0 I found the least one that not support VC++ 6.0 Please Help Regards KS Look at your old MSDN CD's From the SDK download page you can read: The last SDK that will work with VC 6.0 is the February 2003 Edition, you can order a CD on the fulfillment site. http://www.microsoft.com/downloads/details.aspx FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&a ...Show All

  • Kishore Gopalan C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>

    I have looked through the other posts concerning this error and I am sure that this situation is different. I have a C++ COM ATL project and am trying to use CStringList which resides in <afxcoll.h> But when I include <afxcoll.h> #include "stdafx.h" #include <afxcoll.h> I get the error: fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h> I'd be very grateful for any help. By ...Show All

96979899012345678910111213

©2008 Software Development Network

powered by phorum