Answer Questions
Öz.Net Why doesn't this code work?
Why doesn't this code work Using C++ .NET 2005: // MSS.cpp : main project file. #include "stdafx.h" #include "stdio.h" #include "iostream" using namespace System; int main( array <System::String ^> ^args){ struct tnode { int count; System::String ^ word; } ; tnode smth; smth.word= "Sometext" ; Console::WriteLine( smth.word ); } Hi MsFiT, Could you be a bit more specific please What error d ...Show All
Erik Gantar Capturing /showIncludes output
Hi. I'm trying to capture the output of cl /showincludes . The docs say that this goes to stderr , but that seems not to be the case. In a 'normal' console window, the output goes to stdout and I can use cl -c -showIncludes f.cpp >includes When run from VisualC++ (visual c++ 2005 express edition), cl insists on sending its output to the Output window, and no amount of redirection seems to be able to pursuade it to do otherwise. ...Show All
Perter problem passigng variables from c# to mined C++
hey guys, im having quite a small problem yet i dont know the solution to. i have a c# application, and a managed c++ dll. in the c++ dll i have a native implementation of a funtion, and in the managed c++ i wrap that native implementation with another class. and i pass form c# to managed c++ class 2 objects with abunch of variables in each. that managed c++ class intrun passes these values to the native class, calculates something, assigns ...Show All
FreakFrossard typedef Definition Help w/C Program
Hi everyone, I'm very new VS. I hope this is the proper group to post to. I have a C program with a size_t variable declaration. When I hover the mouse over 'size_t' I see a tooltip that indicates size_t is a 'typedef unsigned int'. When I right-click on 'size_t' and select 'Go To Definition', however, I get a dialog popup that says, "The symbol 'size_t' is not defined". The 'Code Definition Window' also has the text, "No definition se ...Show All
pweyzen1 use of __value as a variable name in unmanaged c++ code
Hi, I think I get a compiler error when defining a variable named __value, even in unmanaged code. For example: I create a new win32 console application project, and add a single file containing something like: void main () { int __value; } I get the errors: error C4980: '__value' : use of this keyword requires /clr:oldSyntax command line option error C2059: syntax error : '__value' My guess is that this is related to th ...Show All
Jean-Marc Flamand dit le_beluet DDX/DDV and VC 7.0/8.0
Friends, I am having a strange problem with VC 7.0 while assigning a variable with an edit ctrl on the dialog box. Here is the description: I dropped an edit control on the dialog box and then right click on that edit control in order to add a variable of type int . I also give min and max values to the variable. The problem is that, though the variable is getting added in the header file of the dialog class, but there is no entry of thi ...Show All
eddie_r Problem in MFC AppWizard(exe)
my code is like this: void CRrDlg::OnGetText() { CString kk; int f; CRrDlg* pEdit=(CRrDlg*)GetDlgItem(IDC_EDIT7); { f=22; kk=f; pEdit->SetWindowText(kk); } } I cant show 22 as output and i don't want to use kk.Format() to display. Is there any way to put variable f as variable kk SetDlgItemInt is the best. Just want to complete your Question though. To change an int to a char: #include < ...Show All
confusedDeveloper Heap/Stack Overflow/Overrun Issues
I am running a simulation program in VC++ 6 that requires arrays (dynamic or otherwise) that will eventually have as many as 200,000 entries of type "double". The program works fine when I use small arrays (with a few hundred entries) but fails when I increase the array size to say several thousands. The error code is "Unhandled exception in sim.exe: 0xC00000FD: Stack Overflow". I guess the main question is, if possible ...Show All
Beral Adding as a Reference changed some function definitions ??
Hello Everyone, I have an .exe which is a COM component, I used it in WIN 32 it worked fine as expected. I used the same exe as refrence in .NET and some function definitions got changes...For Example Originally in WIN 32 the function looked something like this virtual HRESULT __stdcall raw_OnChallenge ( long attemptsRemaining, unsigned char password[20]) IN .NET the object browser shows something like this.... System.Void OnChal ...Show All
Galm Wrapping legacy code as Web Services with .NET managed classes
Hi all, Could you tell me how to wrap legacy C++ code as Web Services using .NET managed classes Is there a lot involved Thanks, - Leo - Thanks! :) I'll have a look at the links! Any other links and tips are greatly appreciated! ;) - Leo - Here are some helpful links on how to wrap native C++ code into managed ones: http://msdn.microsoft.com/library/default.asp ...Show All
Tom Kelley COM Events
I created a control based on the DispServ ATL example. I want to extend it so that the client control is both a source for events as well as a receiver. I think I've done everything correctly but when I attempt to compile the client control, the compiler fails with the following: ------ Build started: Project: HandlerClient, Configuration: Debug Win32 ------ Compiling... HandlerCtl.cpp c:\program files\microsoft visual studio 8\vc\a ...Show All
Dayasankar Project creation failed w/ .net projects (C++, C#) VS2005
I just installed Visual Studio 2005. All non-.net projects create and work fine. However, when I try to create a CLR Windows Forms Application in C++, it says at the bottom "Creating project 'myProject' ... project creation failed." When I try to create a Windows application in C#, it will create with no problems, and I can execute the default code with no problems, but when I try to open the source file in the forms designer, vi ...Show All
Luis Luevano Dual Monitors - HtmlHelp - Popup locations
Hi I am working with a dual monitor system. The secondary monitor is on the left side of the primary monitor, which means that the secondary monitor has negative x coordinates. The program that runs on the secondary monitor uses HtmlHelp() to create a Help window from a .chm file, on the secondary monitor. The help pages have pictures of the user interface with buttons and popups appear when a button is clicked. The problem is that the popup ...Show All
rgrohsman vector <long>; allocation or not
Hi there I have a function that has a vector in it, like vector<long> mylist; when the program enters the function, does anything gets allocated (maybe will malloc or similar) or constructed, or is the 'mylist' just pushed into the stack. thanx, Soren thanx! AFAIK this depends on the implementation. All implementations of the STL in VC don't allocate anything neither new or malloc is called. ...Show All
Eric Charran Automation detection
I have an application that you can run through automation and that you can also run doing the standard double-click and it loads thing. well is there a variable or method i can query at any point during my application that will tell me whether or not the application is being run through automation or otherwise Thanks Will ok and how would some one access the instance of CComma ...Show All
