-
- need help with vC++ 2005
by Lightknight240
- 3 Replies
- Last post
by Simple Samples
- Can somebody tell me how to run programs made with MV C++ 2005 cuz when I try to fing out how to run the Hello world code thing I cant find a run program putton or anything.
Note: Im a 15 year old trying to learn C++ and maybe C# so try to keep the anwser simple please
-
- MessageBox in a Hello-world app should not show ???
by Paranoid_xmllmx
- 14 Replies
- Last post
by Paranoid_xmllmx
- Hello, experts,
I use VS 2005 to create a Win32 Application. The code is as follows:
// CODE BEGIN $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Code Snippet
#include <windows.h>
#ifdef _UNICODE #if defined _M_IX86 #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publi
-
- Is there an SP1 update for the runtime libraries ??
by Marsze
- 3 Replies
- Last post
by Marsze
- the Microsoft Visual C++ 2005 Redistributable Package (x86) is dated 4/10/2006, but the Visual Studio 2005 Service Pack 1 is from January 2007.
Aso my application has stopped runningin other computers with the runtime libraries
Does anybody knows if there is a SP1 update for the Redistributable Package
and how to get it
thanks
Marcos
-
- The while loop and the CPU.
by David S. Anderson
- 7 Replies
- Last post
by Simple Samples
- Is there a way I can use a normal while loop and make it so it does not take up 99% of the central processing unit There must be a way, because a loop is the only way to listen for requests using a Socket or TcpListener so there must be a way to only let it use a portion of the CPU.
-
- LNK2001: using unmanangedC++ in manC++
by unsigned int
- 14 Replies
- Last post
by Mike Danes
- Hi, i'm writing a new user-interface for a small software-company. The old interface should be replaced by the new one, the "inner core" should stay. The old program was written in unmanaged C++, but now I'm writing the user-interface in C#, so I have to use class wrappers. While building the managed C++-project (in a solution with the unman. C++-projects) there a some errors. For examp
-
- how to trim integer!
by Memoona
- 14 Replies
- Last post
by Simple Samples
- hello all!!! i have a problem regarding int.i have a number like year suppose 2007 in an int variable and now i want only the last two digits of this integer...i mean i have yera in four digits but i want it to be in two digits...fot dat matter i have to trim the first two digits.....can nyone help me out... regards
-
- MSVCRT80.DLL dependency probelm???
by FarooqZaman
- 5 Replies
- Last post
by FarooqZaman
- Hi All,
I have developed a simple MFC application using Visual Studio 2005. I am unable to run this application on a machine with fresh installation of Windows XP SP2. Using depends.exe utility I figured out that application is depending on MSVCRT80.DLL and MFC80.DLL which are missing on fresh copy of XP. I can update Windows XP with C++ runtime redistributable but this is not the requirem
-
- std::vector versus std::map performance
by Jonathan Scott
- 7 Replies
- Last post
by Brian Kramer
- I am curious if anyone knows about possible performance issues related to the use of the container template std::map, and particularly as it relates to std::vector's performance. I imagine there is good and bad usage of a map and/or vector, but would replacing a map with a vector offer any real performance gain (considering heavy usage)
My worry is that we will replace an easy-to-read associati
-
- Killing a process opened by _popen
by Boulderdude
- 2 Replies
- Last post
by Simple Samples
- I have an application here that launches a process via the "_popen()" command. Now, is there a way to kill the process that was spawned by the popen command, without actually waiting for it to complete I was considering sending a "kill" signal to the process but I dont know how to get the pid of the spawned process.
Any help is appreciated.
-
- Whole machine freezed in VC debugging mode
by XHL
- 1 Replies
- Last post
by Ramkrishna Pawar
- Dear all:
I have a strange problem with my Visual Sudio 2005. I support several products developed with Visual C++. But one of the products, every time when I turn on the debugging mode, the whole laptop will freeze, meaning the CPU is still running, but extremely super slow, possibly one instruction per five minutes. Even the Task Manager runs that slow. The only way to stop it is to turn
-
- Thanks Microsoft for 11 Different String Types!!!
by nswrambo
- 7 Replies
- Last post
by Simple Samples
- I just wanted to say a word of thanks to Microsoft for keeping me and others like me happily employed spending 50 hours a week for the last however many years learning, using, and debugging the various concoctions of string that MS has stumbled into over the past decade or two. Somebody sneezes up in Redmond and they invent a new string class. Lol. Here are the ones I personally have worked with,
-
- Adding Existing Items to Project
by digitalkhaos
- 6 Replies
- Last post
by Pintu Shukla
- Greetings all,
I'm going to try to be a specific as possible so please bare with me. I'm using Visual Studio 2005 Standard Edition on Windows XP SP2. What I'm attempting to do is create a new C++ project using existing files and directories.
I've created an empty C++ Project. I have a directory structure containing 100's of C source files. I would like to add the entire directory str
-
- Combo box in CListCtrl in c++
by Eby
- 2 Replies
- Last post
by Simple Samples
- Hi, I have a list control (CListCtrl) on my VC form . I want to make one of its column to show a combo box.How is this possible. Any suggestion will be help ful.
-
- ASM on Intel Compiler C++ =S
by _Camus_
- 5 Replies
- Last post
by Bite Qiu - MSFT
- Hi all,
I need help again LOL, i wrote this little program for GCC and compile with no errors, perfect, its for
know vendor and cpu information:
Code Snippet
#include #include #include #include #include #include #define p printf
#define cpuid(in,a,b,c,d)\ asm("cpuid": "=a" (a), "=b" (b), "=c" (c), "=d" (d) : "
-
- Problem with minimizing a child window
by Erik
- 2 Replies
- Last post
by Erik
- Hello. Im making an application that has a CMDIFrameWnd and containing two CMDIChildWnd. The parent window and one of the child windows have been added by the wizard on creating my project, the other child window is added by me later and thats the one Im having trouble minimizing. When I maximize my custom added child window the Minimize/return to previous size buttons at the top left corner of th
-
- What's the parent of a top-level VC8 project?
by A.M.
- 5 Replies
- Last post
by A.M.
- In other words, if I wanted to change project settings for all of my VC8 projects, where would I do that, so "inherit from parent or project defaults" would pick them up
-
- Error Help
by PersonNed
- 1 Replies
- Last post
by Andreas Masur
- How do you solve the following error:
Code Block
The following error has occurred during XML parsing:
File: C:\Program Files\Microsoft Visual Studio 8\VC\VCProjectDefaults\CoreWin_Express.vsprops Line: 9 Column: 1 Error Message: Illegal qualified name character.
The file 'C:\Program Files\Microsoft Visual Studio 8\VC\VCProjectDefaults\CoreWin_Express.vsprops' has failed to
-
- StreamReader blocked or Multithreading in VC++ (.NET 2003)
by distas
- 1 Replies
- Last post
by Zhi-Xin Ye - MSFT
- If you have problem with StreamReader as I had, the solution will
clarify the topic. I wanted to start external command line
application and read standart output to my String. Everything was Ok
until external application was producing output, but if not
Application is still alive, but there is nothing in stream. Your
StreamReader is blocked. The only solution I found was Multithreading:
to
-
- Side-by-side problems after updating to VS2005 SP1
by Henrik Goldman
- 2 Replies
- Last post
by Henrik Goldman
- Hi,
I have a C++/CLI application using Winforms which has used to work great until I updated to VS2005 SP1. Now alot of users are complaining about problems with starting it up.
Under Vista it says that the "side-by-side configuration is incorrect".
So the obvious question is... how do I correct it I'm rather clueless since I got no indication what goes on (it works fine on the
-
- How to initialize const data members in base class?
by tttp
- 3 Replies
- Last post
by Jonathan Caves - MSFT
- I have a struct as list below:
Code Block
ref struct StringLocation{ int iRow; int iLine; int iLength; StringLocation(); StringLocation(int, int, int); };
and I also have a base class:
Code Block
ref class base {
private:
const StringLocation^ const asl1;
public: base(void); ~base();
};
Then I want to derivate a new class from ba
-
- what's happened in my code?
by telnet2008
- 5 Replies
- Last post
by telnet2008
- #include <iostream>
using namespace std; class test { int x; void func() {
}; void func1() { x = 1; };
public: void f() { printf("%x\n",&x); printf("%x\n",&test::func ); printf("%x\n",&test::func1 ); }; };
int main() { test a; a.f(); test * ap = &a; void(test::*pmem)(void)=&test::f;
-
- Simulating combined directx key events with SendInput() (need to simulate ctrl+m )
by &#47;&#92;gurr
- 3 Replies
- Last post
by /\gurra\/
- I am currently able to send single keys using SendInput, but what I need right now is to simulate events like ctrl+m My code does this when it comes to pressing down the key, but when it should release them, it instead releases two completely different keys . Could someone please tell me what I am doing wrong All help appreciated! int main() { Sleep(2000); INPUT inp[4]; memset(inp,0,size
-
- LNK 2019, inline functions
by jsad923f
- 7 Replies
- Last post
by Mike Danes
- I made a class in the header file class Foo { public: float area(float x, floaty); }; in the .cpp I tried #include "Foo.h" inline float Foo::area(float x, floaty) { //lot's and lot's and lot's of stuff . . return variable; } and I get... error LNK2019: unresolved external symbol "public: float __thiscall Foo::area(float x, floaty)" If I take away the inline everythin
-
- GIF problem... Transparent images over another image...
by JGLP
- 4 Replies
- Last post
by JGLP
- hi everyone, i need to insert one GIF over a picture.. but i dont want the gift to be like a square picture, for example a picture of a sun with 40x40. I need some parts to be invisible, and just see the 'sun'. is this possible on Visual C++ how can i accomplish that anyone can help me thanks very much for the help..
-
- how to manage Form Controls from serialport DataReceived event
by Tomys
- 1 Replies
- Last post
by Bite Qiu - MSFT
- Hi
I try to make simple thing :
In DataReceived event of serial port I try to change text of label1 control windows form.
private : System::Void serialPort1_DataReceived_1(System: bject* sender, System::IO: orts: erialDataReceivedEventArgs* e)
{
label1->Text= "ok" ;
}
I doesn`t work and I have message:
"An unhandled exception of type 'System.Inval