-
- Using solution globals in project properties
by KannoN1
- 2 Replies
- Last post
by KannoN1
- I would like to take global variables defined in my solution and use them in my project properties to help define some build parameters.
For example, I have a /DVersion=$(Version) in my C++ preprocessor defines. I want to set the value of $(Version) in the .sln file. I know I can do this by setting environment varaibles in a script that I run before running VS but I was hoping for a mo
-
- "Separating" high and low bits
by Frawley
- 5 Replies
- Last post
by Simple Samples
- Hi everyone! I am having trouble with the return value of the function GetKeyState(vk_key). On the documentation ( http://msdn2.microsoft.com/en-us/library/aa453132.aspx )
The return value specifies the status of the specified virtual key, as follows:
If the high-order bit is 1, the key is down; otherwise, it is up.
If the low-order bit is 1, the key is toggled. A key, such as the
-
- FindWindow Problam/Question
by DoublyLinked
- 5 Replies
- Last post
by DoulbyLinked3
- Hello, My application and anothe app that is not mine, are using the same class name exactly, and they both create a window with the same name. For example the class name is "abc123", so both my application and the other one are creating a window using that class name and both those created windows has the same name, for example: "Sample Main". So now there is two application w
-
- raw data of bitmap
by zapacila89
- 1 Replies
- Last post
by Simple Samples
- Hi I have a BITMAPINFO structure.. how can i get a pointer to the begining pf the raw data of that bitmap. i mean the actual pixel bits. i`m not interested in nothing but that that. i dont care about header or other things.. Anybody Thanks!
-
- createremotethread
by cadouthat
- 14 Replies
- Last post
by cadouthat
- ive been messin around with threads and processes and stuff lately (i was just curious) and i found a function called createremotethread(), it is supposed to make a new thread in another process, but even when i set everything up right, the process i create the thread in "has an error and needed to close"... i checked the exit code and it had to do with access rights - does this mean tha
-
- C++ class definition error C2061
by Heinz Krug
- 9 Replies
- Last post
by HeinzKrug
- I just learned C++. All the book examples worked well on my Visual C++ 2005 Express Edition.
Now I correctly built a large C project that I got from somebody else. I wanted to add a simple C++ file to it defining only one class:
class HK
{
public :
HK() {} // Constructor
~HK() {} // Destructor
static int Ones();
};
int HK::Ones()
{
return 1;
}
-
- out-of-proc server COM
by George2
- 4 Replies
- Last post
by George2
- Hello everyone,
I am learning how to write out-of-proc server COM DLL using unmanaged C++. Could anyone refer some learning resources and samples for me
I have a couple of months experiences of developing in-proc COM DLL before.
thanks in advance, George
-
- Not serializing two dimensional array correctly;
by Steve Jackson
- 2 Replies
- Last post
by Steve Jackson
- Hey all;
I am making a dos based othello game (class project). The details are not all that important, but the following classes are important for the question:
some classes:
class piece() -> Piece has a color (integer). It can be white,black, or empty.
class Board() -> Holds all of the data for game play, player names, scores, but most importantly - it has a Grid data member tha
-
- Allocation problem
by Hilikus
- 14 Replies
- Last post
by Simple Samples
- I'm using VS 2002, and I'm having an allocation problem. When the program tries to allocate a new block, access violation occurs, but not in my code and not always. Debugger says the error is in the CheckBytes(...) function, and as far as I can tell, it's a function that is called when the 'new' operator is used (when I break the execution, VS opens the dbgheap.c file). I sent my project to someon
-
- how to traverse to a paired brace in MSVC IDE?
by Dmitry Lizorkin
- 2 Replies
- Last post
by Dmitry Lizorkin
- Hello!
In Microsoft Visual C++ IDE, when a cursor is located near a brace (or a bracket), is their a way of moving the cursor to a paired brace (correspondingly, bracket), either via a hotkey or a menu item
Such a feature would help a lot in speeding up the coding process.
Thank you in advance for your help.
Dmitry
-
- VC++ Interview questions
by shibumong
- 7 Replies
- Last post
by JustLikeDat
- Hello, Can anybody help me by providing some good interview questions in VC++ It's urgent! Thanks Shibu
-
- User-interface language for Windows OS
by hi_its_me_007
- 6 Replies
- Last post
by Simrn
- Hi there,
I need to fetch the value of user-interface language selected for Windows OS on my PC. Can you help me with the name of system variable which stores this value, so i can just read this variable Or is there any other way out
-
- std::string and std::wstring
by VFaul
- 6 Replies
- Last post
by einaros
- In my code I'm doing the following:
using namespace std;
#ifdef UNICODE
wstring m_str;
#else
string m_str;
#endif
Is there a std type, similar to TCHAR, that I can use instead
Thanks,
VF
-
- "Match Case" and "Match Whole Word" Find in Files options
by Paul Johson
- 1 Replies
- Last post
by Bite Qiu - MSFT
- I just started using VS 2005 and am annoyed because in previous versions I have always been able to add buttons to the toolbar to toggle the "Match Case" and "Match Whole Word" options for the Find in Files and regular toolbar Find box.
I have not been able to find these options anywhere in the customize toolbar box and when I searched the forum I found this thread http:
-
- CreateThread vs _beginthreadex
by Alexander Stoyan
- 14 Replies
- Last post
by Simple Samples
- Hello.
There is a hot discussion on one Russian developers forum about correct threads creation. _beginthreadex is more correct way because it initializes CRT for the newly created thread.
But there is one great "BUT"!!!
For example we have any callback function which uses CRT (like an exported function from dll). This function could be invoked from any thread including threads,
-
- Is there a way to create a dll in C++ without a def file and have it work for a Visual Basic Host?
by georgeob
- 14 Replies
- Last post
by georgeob
- Is there a way to create a dll in C++ without a def file and have it work for a Visual Basic Host
-
- C++ in VS2005 after 'upgrading' to SP1...
by JoeCoder
- 7 Replies
- Last post
by dieskaap
- I'm having a lot of trouble with my installation of VisualStudio2005 after upgrading to SP1. It seems that the C++ compiler is now unable to compile any code that #includes either <memory> or <algorithm>. It spews out hundreds of errors - here's a small selection: Error 1 error C3646: 'uninitialized_copy' : unknown override specifier c:\program files\microsoft visual studio 8\vc\inc
-
- I need help with a program, It wont let me compile the code
by DARKUNT3R
- 7 Replies
- Last post
by TilakGopi
- I think the codeis right but when ever i try to compile it I get a compiling error "Error 1 fatal error LNK1266: error reading instrumentation file 'c:\documents and settings\tc208-14\my documents\visual studio 2005\projects\ch 5\debug\Ch 5.pgd'; File not found Ch 5". Does any one knows how to fix this because it's driving me and my bud here insane. -----------------------------------
-
- relinking RTM libraries for VS2005SP1
by HonzaHornik
- 10 Replies
- Last post
by HonzaHornik
- Hello.I cannot relinking CRT libraries (msvcr80.dll, ...) due to unhandld.obj. This obj is not generated during compiling. I used original makefile from VS2005 SP1. Can you help me. Thanks.
-
- Microsoft Visual C++ Runtime Library Error
by Afridi786
- 2 Replies
- Last post
by Damien Watkins - MSFT
- I have just installed Lock On: Modern Air Combat, I try to open it, and the Microsoft Visual C++ Runtime Library Error comes up...it says this application has requested the Runtime to terminate in an unusual way. Can anyone help me out
-
- Mouse Coordinates
by pj_bennett
- 1 Replies
- Last post
by Simple Samples
- Hi, I'm trying to write a simple app that just show the mouse coordinate in a Static control when the mouse is moved over picture box, I have a dialog app with a PictureBox and a Static Label (It has an OK and Cancel too) - I've created a control variable and a class to deal with the MouseMove event on the picture, but when I come to access the Static control in the MouseMove event I run into prob
-
- See Windows SDK forum for Windows programming questions.
by Peter Ritchie
- 14 Replies
- Last post
by Peter Ritchie
- Questions regarding Platform SDK, Windows SDK, and Win32 (including how to use Platform SDK functions via PInvoke) should be directred to the Windows SDK Forum
-
- rebuilding .ccp and .h files
by David Harrelson
- 2 Replies
- Last post
by Simple Samples
- I am trying to rebuild two .ccp files and one .h file that are grouped together to make one small program. I was sent the files from someone that has it working on his computer but I don't know how to put them back together on my computer. I have VS 2005. This is a school project but this is the 1st time I have had my main file call out another program and actually get it to work. Can anyone give
-
- Code Optimization of C++ v6.0 compiler vs newer versions
by nbHarpo
- 6 Replies
- Last post
by Simple Samples
- Hi, I have had a MS C++ v6.0 compiler for about 6 or 7 years (it has a copyright of 1998). I have a very I/O and CPU intensive application that has to process input in near-realtime from a network ( there's minimal disk I/O). I'm running this app on a 3Ghz dualcore with 4G memory, with not much else running, and there are times that the CPU utilization is 40-60%. So it gets stressed out, to say th
-
- Problem with calling C++ Dll in C# Appliaction
by Le.W
- 7 Replies
- Last post
by Le.M2P