Answer Questions
CCdiver Ideas
I am starting a projec that takes the color and locations of pixels of a certian color on the screen, and turns it into data. The data will be written in the form of a calculated arc that can be drawn from one spot to another. Oh yah, by the way, the whole thing must run behind another program and must stuff the video buffer to over ride all graphical output to the screen. Anyone wanna help me get started in the right direction/ Hi Kyle, T ...Show All
noop Specifying "out" parameters in C++/CLI
I'm building a managed wrapper in C++/CLI and am trying to build a client for it in C#. However there seems to be a few problems. I have a prototype in C++/CLI which looks like the following: int f1( int nType, array <MY_TYPE ^> ^%pOut, int ^%npOut) There are a few problems with the following though. I want that the last two parameters should be output only parameters. In C# I want them to be specified with "out" keyword and not "r ...Show All
Jasaldrich Error in windows app. but not in console(same code)
A simple code: Code: #include <cstring> using namespace std; int main () { char str1[]="Sample string"; char str2[40]; char str3[40]; strcpy (str2,str1); strcpy (str3,"copy successful"); return 0; } if I open win32 project-> windows app.-> empty project and open a .cpp file and compile, it gives me this error: error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmain ...Show All
ioe Programs freeze when starting, IDE crashes.
Hi all, I've been having alot of problems with the IDE. The most annoying one, is i go to debug a project, (or build & run), and the IDE will compile, but then doesn't run the project. It looks like it should be going (IE, stop button available), but nothing shows up. I have to stop it, and start it again. 2nd, when working with some of my larger projects (50,000 lines +), i notice that the IDE itseld will just freeze, th ...Show All
james_m Fatal error when copiling my first program
Ok, I'm just starting to learn C++ because I'm taking a class on Object-Oriented next semester and want to know the background info. I'm trying to compile the source of a Hello World example I encountered in the tutorial I'm using, but it's not working. The code is: #include <iostream.h> #include <stdafx.h> int main () { cout << "Hello World"; return0; } This (wit ...Show All
ShanSara Creating .exe file to debug a dll proyect
"Victor M.@discussions.microsoft.com" <Victor M.@discussions.microsoft.com> wrote in message news:14220612-6d6d-42a4-8c74-efeea98369b9@discussions.microsoft.com > When I'm going to debug my proyect step by step in Visual C++ 6.0, a > dialog box appears; "Please specify the executable file for the debug > session." > > Which executable am I supposed to specify How do I create it ...Show All
thedigitalpioneer Why doesn't the following compile under VC2003?
Why does the following code snippet not compile in Visual C++ 2003 It compiles under GCC, so why not in VC2003. What is wrong with it // Outter class: class Outter { public: // First inner class: template class Inner1 {}; // Second Inner class: class Inner2 { public: // Method definition: Outter* Inner1() {} }; }; Mozilla did that to me too: nuke the linebreaks. Here it is again (over-compensation courtes ...Show All
Jeff Lawson Question about C++ char Pointer
When I use VC++ 6.0(with SP5.0) like this: char temp[2]; memset(temp,0,sizeof(temp)); strcpy(temp,"This is a test\0"); MessageBox(0,temp,temp,MB_OK); The result in temp[2] is "This is a test".There is only two bytes of memory,why can copy more than 2 bytes char I can see a demand for a reverse-engineered (or semi-so) Secure CRT for people to writ ...Show All
olivier durier Capturing Screen
Hello, I've been wondering how is it possible to capture the screen in my Visual C++ 2005 Windows Forms application. With Thanks, Gal Beniamini. On your keyboard towards the right side there is a button called insert, straight above that is a small button called prt scr/sysrq, push that button to take a pictur ...Show All
Keith K EnumPrinters in Service doesn't work
Hi All, I read in one of the forums that an EnumPrinters() for Network printers when used in a service , does not work because the service is running under SYSTEM account. This is the problem. can any of u give me some inputs on how to solve this.I need to use EnumPrinters() from the service. are there any access rights that need to be given to the SYSTEM Account If yes, how do we set them Any solutions Thanks for the help. ...Show All
OberCanober ATL included in PSDK?
Is the ATL included in the Microsoft Platform SDK So can I use the WTL with Visual C++ 2005 Express and the PSDK thanks! I looked in the latest Platform SDK ( Windows 2003 Server SP1 ) in the include folder and I see that alot of ATL code is included in the PSDK. So I see not reason why you couldn't use the ATL headers (which contain most of the ATL library ) from the SDK to build applications using Visu ...Show All
Harry_Leboeuf using "extern "C"" as prefix before _declspec, and occurs to error in debugging
i has created a dll project, and appended "extern "C" __declspec" in front of the export interface. but when compile this project in vs2003,it has occurred to an error as follows: error C2059: syntax error : 'string please help me why it occurs this error! In the tedium of waiting for a reply to my preceding post, and not being one to know a dll from a pickle, may I venture that a namespace declaration might be m ...Show All
throne66957 Installing msvcr80.dll
Hello, I have installed Visualk Studio 2005 and want to try out some stuff. After writing a simple console application I ahve copied the exe to an other machine, but there is no VisualStudio installed. Copying the msvcr80.dll in the system folder does not work (it works on Windows 2000). I know that i lies now in the winsxs folder so I have tried to copy the whole stuff from this folder, does ot work! I have looked in the merge module and found ...Show All
PocketPC Coder How do use conventional C++ Code with Visual C++
Goodday I cannot seem to create any programs with Visual C++ I am not getting anywhere the only program that works is Hello World: #include <iostream> using namespace std; int main() { cout<< "Hello World\n"; return 0; } Not even the test win32 application want to run and i did everything like you explained Please Help Peder Well, this looks like fine C++ to me, although I notice y ...Show All
John Meade _kbhit() memory uasge
Hi, I've noticed that _kbhit(), and kbhit() too, use an abnormal considerable amount of memory. Same problem also whit this simple code.... while( !_kbhit() ) { //do something... } pier! Hi, It looks to me you have found a bug in how kbinit allocates memory internally. It is my initial guess from lo ...Show All
