-
- Free Heap block modified after it was freed
by Deeps_123
- 5 Replies
- Last post
by Brian Kramer
- I have developed an MFC application usin VC6. In this application I am allocating about 4kb of memory using new operator and deleting it using delete operator. But when i again use the new operator to allocate some more memory than this error is coming. If i remove the delete operator code than this error does not come but i dont want this because than there would be memory leaks in my code. Pleas
-
- Why "Double Number1[] = new Double[5]; " Can not pass the compiler in VS.NET 2005?
by daniel mark
- 5 Replies
- Last post
by Nishant Sivakumar
- Hello all:
I read the online tutorial as follows:
http://www.functionx.com/managedcpp/Lesson18.htm
One of the statement is:
Code Snippet
using namespace System;
int main() { Double Number1[] = new Double[5];
return 0; }
However, when I compile this statement in VS.NET 2005, I received the following errors:
Error 1 error C24
-
- Display an Unsigned CHAR as Binary and Hex
by MrBrilliant
- 7 Replies
- Last post
by Gesus Christ
- Hello everybody.
I was wondering if it was possible to display a UCHAR in binary and hex format using Visual C++ 6.0
Regards
-
- Internal error instead of compile-time error
by Pasalic Zaharije
- 4 Replies
- Last post
by einaros
- On simple c++ console app I got internal compiler error instead of compile-time error:
"INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 2701) Please choose the Technical Support command on the Visual C++ Help menu, or open the Technical Support help file for more information"
This is simple case of code that reproduce error
typedef unsigned int UI32; class UI32 {};
Note, I us
-
- Visual C++ 2005 fragments the hard drive.
by Laker dog
- 3 Replies
- Last post
by TilakGopi
- I am using Microsoft Visual C++ 2005 Express Edition, my program is about 10K lines, I am in the final stages of cleaning it up and so need to build quite frequently. The problem is that after half a day of work, the hard disk is badly fragmented. I've increased the memory to 1,500MB but still have to defrag the hard drive every few hours or the access time just becomes too long. Any ideas
-
- LNK2019 Errors in VS2003
by Climax
- 2 Replies
- Last post
by Climax
- Hi, I've copied someone's working project to my laptop and am getting linking errors in my build. The debug output leads me to believe the problem might be related to Parser Generator libraries. Any help will be greatly appreciated!
Command Lines
Creating temporary file "d:\Rog\School\Fall2007\Research\markedGraphVC\markedGraphVC\MGXVCPP\MGXVCPP\Debug\RSP00
-
- Help Needed
by sGurpreet
- 1 Replies
- Last post
by TilakGopi
- hi friends
i need ur help regarding a FTP Project. pls guide me how to start with
c++ skills : intermediate
-
- VS .Net 2005, how to disable intellisense...
by ChandraP
- 14 Replies
- Last post
by Boris Jabes
- Hi I am really frustrated with the performance of VS .Net 2005. This is because I always see at the bottom "updating intellisense..." and it uses 60% to 70% of CPU. How to disable this updating of intellisense... Please this is making Visual studio unusable. Thanks Chandra
-
- How to change Static label text alignment at runtime
by Amr Ouf
- 6 Replies
- Last post
by Amr Ouf
- Please help me change STATIC label text alignment at runtime I have used the following but it's not working this->GetDlgItem(IDC_STATIC)->ModifyStyle(WS_EX_RIGHT|WS_EX_LEFT,WS_EX_LEFT,0); Thanks in advance.
-
- When using the COleDateTime class, an error 2079 appears
by MicahF
- 1 Replies
- Last post
by Bite Qiu - MSFT
- Hello,
I am trying to use teh COleDateTime class, however I always receive an error 2079 saying that it is undefined. This is the message I get:
main.cpp(22): error C2079: 'var' uses undefined class 'ATL::COleDateTime'
Am I missing a header file or something Thanks
-
- DLL Conflict
by Carolina Gomes
- 3 Replies
- Last post
by Simple Samples
- Hi there! I wrote an XLL(a user-defined function for Excel, using C++) that evaluates algebraic expressions using binary trees, stacks and so on. The good thing is, it works perfectly. But then I need to make it work using a cluster, that is, parts of the expression must be sent to the clusterĄŻs master computer and it will send these parts to be calculated by some slave computers. Ok. However the
-
- statement
by giuseppe500
- 1 Replies
- Last post
by einaros
- hello. I create a solution for the research and substitution of the string between " and "( "*")in a project for the internationalization. I must match only the string for the internationalization and not ad example a string in the if statement or in the case statement. what is all' this statement in c++
-
- use c++ to separate MPG 4 file audio and vidio
by roger5089
- 3 Replies
- Last post
by Ben Anderson MSFT
- Dear all one of question hope some one give me some suggestion for this project , i need to know the concept of MPG 4 format. if i want to us c++ to write code to separate one MPG4 file by audio one file and vidio one file. how can i start research it , does any API i can found out in msdn or any idea i can start.
-
- Help using EnumChildWindows()
by flynny1st
- 6 Replies
- Last post
by flynny1st
- Hi,
I'm having problems inplementing the EnumChildWindows callback function. I have hooke dinto my external application ok. What i wish to do now is add a new child window (button) in this application.
I can do this, however the problem i have is that because the window already contains child windows itself. My window (button) is being drawn underneath these panes and so cannot be cl
-
- Moving files with SHFileOperation
by araneh
- 5 Replies
- Last post
by Sheng Jiang (?êÉ)
- Hi!
I would like to use SHFileOperation to move all files in a folder to another . I'm able to specify a file and move it to another folder but I can't move a group of files.
I know the problem is in pFrom and pTo. This is what I have written:
SHFILEOPSTRUCT fileop;
fileop.hwnd = NULL;
fileop.wFunc = FO_MOVE;
fileop.pFrom = "..\\temp\\*.*\0";
fileop.pTo
-
- Using .NET assembly in win32 Application
by preeteesh Kakkar
- 10 Replies
- Last post
by crescens2k
- Hi, I need to use a code developed in .NET in a C++ Application. I don't want .NET assembly to be converted to a COM server and register it using regsvr32 instead i want it to be converted to win32 dll so i can directly use it from any C++ project. I just need to expose some API in .NET assembly to my Win32 C++ Applictation. Please let me know.
-
- how call an event within an event
by Talal Hallaj
- 2 Replies
- Last post
by Dav? S. A???????
-
- Drawing 32-bit icon
by myx
- 2 Replies
- Last post
by myx
- Hello. I want to draw 32 bit icon. I load it from resource, and draw it with DrawIcon function. But when I try to draw it using a Image List it does not draw it like a 32bit icon. I'm use ILC_COLOR32 flag when I create an image list. And add icon by ImageList_AddIcon function. When I get icon from image list by ImageList_GetIcon function, it is still 32bit with alpha channel, because DrawIcon draw
-
- Building deployment project stalls for TEN MINUTES
by JohnnyMalaria
- 2 Replies
- Last post
by JohnnyMalaria
- I have a VC++ solution on Visual Studio .NET 2005. It's reasonably complex but only has about a dozen components.
Every time I build the deployment project (i.e., a Windows installer package), VS stops for ten minutes, literally. Nothing responds at all. Task Manager shows ZERO processor activity. There's no disk activity. Then, like clockwork, it will start packaging the files (I don't ev
-
- Strange error C2228
by Krank
- 4 Replies
- Last post
by Krank
- Hello, I am facing a very strange error with this code: Basically, I have a wrapper object, and I want to initialize it with a temporarily created object (which is perfectly legal). But depending on the declaration, the wrapper object creation fails. Here is a sample code: struct a
{ int s; explicit a(int s_):s(s_){} }; class a_wrapper { a m_a; public: explicit a_wrapper(const a&am
-
- Service Pack ??
by madhu_v
- 3 Replies
- Last post
by Damien Watkins - MSFT
- hai,,
Iam using Visual C++ 6.0 Professional edition in Windows 2000 Platform. The Service Pack 5 for visual studio is included. I have developed an application and need to deploy in another pc with same windows 2000 OS.
The redistributable pack "vcredist.exe" do not install updates in Windows 2000, so how should i update the required file from visual studio service pack 5
-
- HeapReAlloc user break point
by Shakje
- 5 Replies
- Last post
by Shakje
- I'm looking for a problem with some particular code that's written in C and have been looking around the line that calls the "user break point" all of today just about. The HeapAlloc function is working fine and I've inspected the memory around pObjects (especially near the end) to make sure it's not an overrun and that everything is alloced cleanly.
nRecordMax is at 2000 here, bu
-
- passing a vector in function
by aguess
- 7 Replies
- Last post
by aguess
- hi i would like to pass a vector in my function but that didn't work with me and got an error
Code Block
Error 1 error C2955: 'std::vector' : use of class template requires template argument list my code is
Code Block
CStringW name_of_city(std::vector tab); can you tell what i missed
-
- VS 2005 SP 1 bug
by Nikos2705
- 4 Replies
- Last post
by AnonymousHero
- Hi guys,
I am trying to compile a project in debug mode and I get the following error.
c:\program files\microsoft visual studio 8\vc\include\iterator(730) : error C2953: 'stdext::checked_array_iterator' : class template has already been defined
The code compiles in release mode but it seems that when debug,the same library is called more than one time by the debugger.If any opinions on t
-
- Problem with DsoFramer and WindowProc
by fabien13000
- 2 Replies
- Last post
by JelleW
- Hi,
I use DSOFramer in an C++ Based application.
I start my application and I open the form containing of DSOFramer. It works fine but when I open an other form over the DSOFramer then that I close again it, the behavior of the DSOFramer is strange. I have a lot of redraw, paint issues, and can't find a way to have it redraw nicely everytime. I have the same problem if I open an other applic