Answer Questions
rlopez_icr How to pass arguments from the IDE of Visual C++ 2005 Express Edition
Dear All, I am new to the Visual C++ 2005 Express Edition. I have written a network program that required me to pass the IP address to the main program. There is no problem for this when I invok the executable program as "C:\>server 192.168.31.2" My problem is how to pass this IP to the program from within the IDE of the Visual C++ 2005 Express Edition. Your help is much apprecited Bassam ...Show All
Pras Convewrting VS 2005 to 2003 (c++)
Hi, How can I convert a vs c++ 2005 project to 2003. It is a ISO c++ project so there theoretically should be no problem. Are there some tools for it Or maybe some twaeks for the solution files I don't know of any tools, but you should be able to create a new 2003 project and add all your files to it. Just open the project file in a texteditor. Change the version number back to 7.1. Worked for ...Show All
Scottie J sound player
hello everybody : I need to use a sound player in my project, and I need to know which libraries should I use. I mint to ask : if there is a library that contains ( play, forword, puase, rewind, stop, scrolling bar, volume control, ... ) functions or objects or somethinf like that . No! You have to do this by yourself. Or you have to find a free library. The st ...Show All
DLASKEY Another example of my problem with structs...
Help! dynamic.h #pragma once #include "static.h" #include "stdafx.h" using namespace System::Collections; public ref class testit { public : testit( array <city^>^City) { System::Diagnostics::Debug::WriteLine(City[1]->cityID); } }; static.h #pragma once //#include "dynamic.h" (works when not included) ref struct city { int cityID; String ^ cityName; }; Form1.h #include "static.h" #in ...Show All
sharathkumarmv Is there any thing equivalent to NotOverridable in C++?
Hi guys, My problem is this. class Base { public: void OneFunction() { cout<<"Base"; } }; class Derived:public Base { public: //overriden, I ...Show All
DWC035 How to make a window moving handle (click and drag the handle to move the window)
I need to make an app with no borders/title bar (got that covered) that has a window moving handle (the form background) that moves the window when you click and drag it. If this puzzles you think of Windows Media Player in Skinned Mode. Can Someone Please Help Me Flame thrower >>:-/ And for what ATL/MFC/pure Win32 C++/CLR Sry I can't understand you. ...Show All
codepro2 VC++05 Express B2
As an exercise to get familiar with the aforementioned, I tried building the sample solutions provided in the XP Platform SDK SP2. When I try to build the <MSDSKROOT>\Samples\Com\Common\Common.DSW project, it converts to the newer VS format as expected. Then, I do a build, which results in "unresolved external" errors caused by calls to _BSTR_ functions. This code builds properly in VC++ 6.0. I have established di ...Show All
jresnick TIME CONVERSION BUG
// TimeConstructionBug.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "ATLComTime.h" int _tmain( int argc, _TCHAR* argv[]) { COleDateTime a(2006, 12, 1, 17, 0, 0); SYSTEMTIME b; a.GetAsSystemTime(b); FILETIME c; ::SystemTimeToFileTime(&b, &c); COleDateTime d(c); CString startTime(a.Format()); CString endTime(d.Format()); printf( " ...Show All
Staticbob Running an .exe file compiled in VC++ 2005 on a different computer
Hello, I've got a question regarding how to run a program compiled using VC++ 2005 on a different computer. Although I have seen the thread by suda5181 and the answer by RonaldLaeremans (http://forums.microsoft.com/msdn/ShowPost.aspx PostID=23371), I can't find the redistribution pack for the current Visual C++. I have found a page with the Redistribution pack for Visual C++ 6.0 (http://msdn.microsoft.com/library/default.asp url=/library/en- ...Show All
Rick Qually MSBuild running from Local System
Hi I've been executing msbuild.exe from the NT_AUTHORITY\SYSTEM account to build VS 2005 C# projects and the builds have been working as expected. Recently, I attempted the same for a VS 2004 C++ project and the build failed with the following error. fatal error C1902: Program database manager mismatch; please check your installation Is this a bug with msbuild or am I doing something wrong Thanks Hello ...Show All
saju jana exe talking to web pages
hi all want my VC++ application to post data to asp page, how to do that any class or any help. is it possible or not. or i want my application to talk to asp web page. is there is no MFC class for this purpose.i m making application in Vc++7 You can use the ActiveX Object XMLHttpRequest to do this. I’m not much of an MFC person however another option would be to throw in the /CLR compiler flag into your project so that you are ...Show All
jskelly How to decide the errors
hoh to decide the error C2039 if i put 1 + 1.1 the result its 12, i dont understend wy ... where is the poin where come a more 0.1 the correct its 2.1 ... What sort of problem Try this: Number1 = Double::Parse(txt1->Text); Number2 = Double::Parse(txt2->Text); ToDouble isn't a member of String: instead the Double class has a static member function called Parse which takes a String. For example: using namespace ...Show All
jimache inline function
I have a set of functions that I'd like to make inline using VC++ 2003. The functions are compiled sparately from the calling function. I've attempted by placing inline before the function name and in the prototype statement but the function is not found. Do I need to use IMPORT, extern or something like that I can't seem to find an example anywhere to emulate. Thanks, RON C FUNCTION: inline int index_4 ( int jstr, int ks ...Show All
TGunthorpe How to convert from array<Type,2>^ to array<Type>^?
Is there a way to convert from two/three dim array to one dim array in .net Or I have to manually create an one dim array then copy elements over. Thanks, hdp. These really are two different and distinct types so there is no automated way to do this. The easiest way to do this is as you descibe: create a 1-d array and copy the elements you require. ...Show All
Alin Constantin COM Port event handling
Hi all, I am trying to use COM port by writing codes using combinations of DCB, CreateFile, ReadFile, WriteFile, CreateEvent, WaitCommEvent etc. I also want to monitor EV_RLSDS event for detecting carrier (which is well known as CD you know). My questions are, 1. Can I use MSComm control for all these purposes or not 2. Is there any limitation of using MSComm control instead of code Your suggestions will be appreciated. Tha ...Show All
