Answer Questions
SiddharthK Compiling code written in C in .NET2005
Hi, I am using .NET 2005 and I created an empty project, Win32 Console Application,and the code I wrote is simple C, not C++. When I try to compile it it gives me this warning : C4996: ' scanf' was declared deprecated. When I run my application it stopes after the first scanf function. I read in MSDN that they changed something about this functions, but what #include <stdio.h> #include <conio.h> #include <stdl ...Show All
David Wheeler favor AMD64 intrinsic functions
How do I tell my compiler/linker to use the __stosq intrinsic function 32-bit assembly intrinsic functions compile, but 64-bit ones do not. Also, the compiler /favor:AMD64 is considered to be an unknown option. Is there anything I can do to enable this compiler option Are programs that use 64-bit pointers limited by default to 2GBs of memory What will happen when I generate data beyond 2GBs but do not enable the linker /largeaddressawar ...Show All
LuisFer Intellisense Problem
Hello, I have yet another problem which is that Intellisense stops working. When my script reachs a certain legnth it just won't work anymore. Now it sometimes even doesn't work when I start new applications. (I am using Visual Studio 2005 June CTP). With Thanks, Gal Beniamini. Can you be more specific on what does not w ...Show All
vavkin Windows XP Password character.
Hi, Dont know if this is the correct forum, but since I didnt get any answers elsewhere, I'm posting it here as well The Problem: On some machines, my password field displays the password character as the "dot" - which is XP standard, and on other machines it dispays small square boxes. Details: We have written a win32 application in C++ with, in which we have a password field. Inorder to use the XP style of "bulleted" password chars (in ...Show All
Dude81 Why can't I see printf output?
Hi, I'm devleoping a COM ext. property page for AD. I want to see more detail by using GetLastError(), and more error information using the following code but I don't see even a DOS window opens up and definitely not additional error message written. Can someone tell me how to get this done Thanks. if ( FAILED ( hResult ) ) { DisplayError(hResult, L "Saving new computer failed" ); printf( "Saving new computer faile ...Show All
Paul Cavanagh Share Projects in one solution
Dear all, I create two projects, say A and B, in one solution in VC.net 2003. They are basically 2 executable applications, A.exe and B.exe. In project A, it uses some classes created in project B. I include the header B.h in A.h, and add Additional Include Directories to which B.h resides. Compile is OK but when linking it looks like the LINKER does not know where to link obj in B project and gives the error me ...Show All
NRN System::String -> OLECHAR*
Hi, how can I convert String from NET forms to OLECHAR* for passing it to Invoke() function as a DISPPARAMS structure member Thanks. But it returns _wchar_t __gc*, and I need BSTR :) I'm in doubt. BSTR() wants LPWSTR PtrToStringChars() returns _wchar_t __gc* I have a System::String. :) Maybe someone can recommend me a good book or manual about Win32 string types and it's conversions All those books I've seen h ...Show All
cych SOS:VC2005 B2 Express VC++ Directories Problem
I downloaded and installed VC2005 B2 Express, I can't set "VC++ Directories". screenshot: http://member.netease.com/~lilong/temp/VS2005ExOpt.jpg is this bug this is a BIG PROBLEM!! charlie_pike@discussions.microsoft.com wrote: i've got exactly the same problem. no list box coming up You should report it under http://lab.msdn.microsoft.com/productfeedback/ -- Greetings ...Show All
CosmicSheep .Net Framework
Hi, I have an application which I did not originally create. I develop it using Visual Studio 2003 - Visual C++.net. When I click on the configuration manager for my solution I can see that this platform, for said application is "Win32". I didnt think this was the case since my work (code) is developed compiled and run correctly using visual studio.net. Then i created a completely new project, visual c++ and chose the opt ...Show All
CoDeR X How do you develop an interface for an existing C++ program?
Hello Everyone, I have a large and complex program, which to be honest I dont fully understand, that I have to develop an interface for. I understand how the program works to an extent, but the level of C++ used in the program is way beyond me. It has to do with genetic programming, programs writing programs, so I dont think that im going to be learning how to do that anytime soon. Although I am alot better with VC++ than C++ and can ...Show All
QuasiLoca Converting strings to numbers
Sorry for the total newbie question, but it's midnight and my poor brain can't find the answer to this problem in the online help.... It is easy enough to convert numbers (ints and floats) to a string using String::Format. How do I go the other way I have a bunch of numbers given to me by an SQL server in String ^ format. I need to do math with them. How do I convert from String to int or float ...Show All
LOUREN&#199;O MANTOVANI .
. . Thank you very much! Okay, so you are attempting to create a library and not an executable. Also, you seem to be using native classes. What you need is a regular Win32 DLL project that exports symbols. You can generate one using the wizard, and it'll show you how to export a class out of it. Alexandrei wrote: I am trying to create ...Show All
Hossam El-Deen SendInput is sending mouse clicks to the current mouse pointer location instead of specified X,Y
Hi The mouse clicks sent via SendInput API are getting reported at the "current mouse pointer location" irrespective of the X,Y co-ordinates specified in the MOUSEINPUT structure. Here is the code. void SendMouseInput(unsigned int iX,unsigned int iY) { MOUSEINPUT mousei={0}; INPUT Input={0}; BlockInput(true); ::ZeroMemory(&Input,sizeof(INPUT)); ::ZeroMemory(&mousei,sizeof(MOUSEINPUT)); mousei.dx=VirtualXFromAbsoluteX(iX); m ...Show All
MikePHall Controlling settings for all the vc8 projects from a common place.
Hi, Issue: Controlling settings for all the vc8 projects from a common place. I have heard about property sheet for vc. Can anyone explore about property sheet for VC In VS2005 MS has provided MSBuild but it is not supporting VC projects. Thanks in advance. Regards, Madhur There's no equivalent of MSBuild's common targets file for Visual C++. In order to achieve the same result, you'll need to create a new property ...Show All
SP16 non stopping compile?
Hey, My Visual Studio C++ worked once well. But after I used it to do a project with Visual Parse, it does not work well. It compiles and compiles without stop. And I can not stop this process with the STOP-BUILD-Button. I must use Task-Manager to kill it. I think, I had changed some settings, but I can not remember now. I really don't know why, I can not even do a simple "HelloWorld" programm. Thanks a lot if you can give me som ...Show All
