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

Software Development Network >> Visual C++

Visual C++

New Question

RegQueryValueEx problem?
htonl source code
Length cannot be less than zero. Parameter name: length
Good old days in C++ are gone
memory leak with static attached dlls
Winsock and that common external error
Problem compiling
console from form
My First Line....
Frequent IDE freezing

Top Answerers

Kevin Schlegelmilch
Joris Wit
Vinay Chopra
maitreg
Alvin tiow
Learner1
dakhili
peetie
Chau Tran
dpolyakov
JigCard Gallery
Only Title

Answer Questions

  • Roger Willcocks Program terminates without finishing code

    hi... what is happening when a program terminates (no error messages) without executing the rest of the code my code is attached below. The while loop does not iterate and after one iteration, my program exits. I don't know what is wrong and how I can debug... Thanks for any help. #include <stdio.h> #include <speex/speex.h> #define FIXED_POINT #define MaxFrameSize 500 #define MaxFrameBytes 500 int main (int argc, char ** argv) { &nbs ...Show All

  • dinh107 Value Sorting

    Okay now that I have got the whole fstream working I now need to compare values with each other from 2 dat files and output all values in order to one file. I have no clue where to start on comparing, I know im supposed to use pointers(&) on this. So my first ifile01.dat contains the following in this order: 2 22 16 11 9 My second ifile02.dat contains these value in this order: 26 1 8 21 13 They need to be outputed in this order to the last ...Show All

  • Igor I.I. Why MsgWaitForMultipleObjects returns 0xFFFFFFFF?

    I wonder why this fairly simple code makes MsgWaitForMultipleObjects to return 0xFFFFFFFF The result from GetLastError is Access Denied. What access could be denied in this code HANDLE l_hComm = CreateFile("COM1", GENERIC_READ | GENERIC_WRITE, 0, 0, OPEN_EXISTING, 0, 0); if (l_hComm == INVALID_HANDLE_VALUE) { l_this->m_staticText.SetWindowText("Couldn't open COM port."); AfxMessageBox("Couldn't open COM port."); ifs.close(); l_thi ...Show All

  • John Cromie openGL with forms

    I get openGL to work fine with a CLR Console Application or a Win 32 Console Application but when I try it with a Windows Forms Application project type then I get the following. This is Visual C++ 2005 Express Edition. Program Files\Microsoft Visual Studio 8\VC\include\GL/glut.h(486) : error C3641: 'glutInit_ATEXIT_HACK' : invalid calling convention '__stdcall ' for function compiled with /clr:pure or /clr:safe 1>C:\Program Files\Micro ...Show All

  • xx_Moe_Man_xx Problem in Visual C++

    Hi All, I am facing a peculiar problem. I am using Visual C++ for a GUI program which reads the serial port continously and displaying the contents. I am using a "while" loop for this. But after starting the program I am not able to do anything with the application window (lik minimize, maximize, or stop the program). Can anybody help me in tackling this problem. With thanks in advance. VKA POs ...Show All

  • Hernan93 a lock system problem

    Hi, I'm working on a program using a .ocx control purchased recently (whose function is calendar and calculator). However, whenever I lock the system by pressing Ctrl+Alt+Del or the screen saver with password is about to run, my program crashes. I know it's due to that control, so I asked the company for the source code. But it is too complicated to make myself clear on those codes in a short time. If sb. has the experiences of dealing with s ...Show All

  • jmcconnell86 Finding data type at run time to create an identical object

    Hello all, I hope this thread matches in here. I am working with Visual C++ 6.0. I am trying to create a vector that will be used as a buffer for an algorithm. The problem is that I want the algorithm to work on a "template" type vector. Therefore, my buffer vector must be created at run time with the type of the vector supplied as input. (for example, say the input vector is "vector<int> data" the buffer should be created as type integ ...Show All

  • jorn error when using a mixed mode dll in a windows service

    under the dot net 2.0 framework I get the following error when i use a mixed mode dll with in a vb.net windows service. System.BadImageFormatException: Invalid access to memory location. (Exception from HRESULT: 0x800703E6). This dll works fine if used in a vb.net standalone application. Any ideas what may be the cause Interesting I have found that this mixed mode dll will work in the service if its linked dir ...Show All

  • Frundatz Displaying Output problem

    Hello all, I am trying to develop an MFC application from an existing c++ console program. The c++ source is very complicated and is as follows; [code] // Genetic programming code to solve the Santa Fe artificial ant problem // Copyright David Jackson 2005 #pragma hdrstop #include <stdlib.h> #include <stdio.h> #include <math.h> #include <time.h> #include <memory.h> #include &l ...Show All

  • sspotts Need help with a funtion to take a name entered by a user

    I want this function to take the name of the user and then display it. However it will only display a number when I run the program. I am new to C++ and programming for that matter so any help would be appreciated. char GetNameOfInvestor( char name) { numberOfYourFunctionsCalled++; Console::Write(S"Please enter your name: "); String __gc * input = Console::ReadLine(); return name; Christain, Thanks for pointing me towards co ...Show All

  • Linson Thomas VS 2005 B2 getting exe files to work on other computers

    When i try to run a file created by visual studio 2005 beta 2 on a computer other than the one i have visual studio 2005 on, i get an error message saying (translated from swedish into english): This program could not start because the programs configuration is wrong, the problem could be solved by reinstalling the program. on one computer (i think it was indows 2003 server) i solved it by copying msvcp80.dll, msvcp80d.dll, msvcr71.dll msvcr8 ...Show All

  • dajeeper Visual C++ Express with ADSI?

    At work I use Visual Studio 2003 .NET edition. I developed an ISAPI filter to authenticate against Active Directory. I want to know if there's any hope of compiling this on Express edition, so that I can occasionally work at home. I have trouble because atlstr.h is not available, and winldap.h includes schnlsp.h, which also is not available. I am using CString. I have downloaded and hooked up the Platform SDK, so other atl files are availa ...Show All

  • Cazz88 load win32 dll dynamically

    Hi, I had a win32 dll which i need to load it with the help of LoadLibrary from my client application. i am facing a problem in loading and calling the dll functions. here is the code.. some body please help me. DLL code: win32dll.h #ifndef _WIN32DLL #define _WIN32DLL #include <windows.h> #define DLL_EXPORT __declspec(dllexport) DLL_EXPORT void sayhai(void); #endif Win32dll.c #include "Win32dll.h&qu ...Show All

  • Krolrules File rename in c++ language

    Deal all One question in c++ if i had one hundred file which like "001.txt" to "100.txt" in one field and then in c++ code how can i rewrite it become "001.doc" to "100.doc" some thing 1. cout file 2. while 3 rename The CRT has a simple function called rename. http://msdn.microsoft.com/library/default.asp url=/library/en-us/vclib/html/_crt_rename.2c_._wrename.asp Just form the new name with sprintf, call rename. ...Show All

  • bslim Print Preview Issue

    Hey, Heres the problem.  I use the OnFilePrintPreview and OnEndPrintPreview methods of the various views.  I have overridden these methods just for some appilication specific calls, but at the end of that i still call the base class for these methods.  That all works well but when I preview a document and then open another document it fails,  basically i want to be able to call the OnEndPrintPreview method when i op ...Show All

888990919293949596979899012345

©2008 Software Development Network

powered by phorum