Answer Questions
Analog2 Function pointer for GC
Is there a workaround for passing pointer to a member function of a gc class I know I can use delegate but I don't want to. Thanks P I do not think there is a concept of function pointers at the CLI language level. Pinning pointers refer to class data (or the class itself), not methods of a class. You are almost there - the correct syntax is: foo(d, &galva ...Show All
Paul Nicholson - MSFT Can functions....
...be nested inside other functions Yes: the compiler is pretty much based on both the ECMA Standard for C++/CLI (ECMA-372) and the ISO/IEC Standard for C++ (ISO/IEC 14882:2003). The ECMA Standard can be downloaded from: http://www.ecma-international.org/publications/standards/Ecma-372.htm Thanks for the reply, is there any lists of such extensions made by MS I'd like to make my code not rely too ...Show All
guilhermecvm94558 How to change owner of a process or thread?
Hi, I have a Windows Service that run with SYSTEM user. When i create a new process in this process (using ShellExecute function) the new process got SYSTEM privilege too. I want it'll run as current user privilege. How can i done Any help Hieu I've find out the solution. By using Security function: - OpenProcess - SetSecurityInfo So i can write the owner of the process. But i when i user SetSecurityInfo function, it failed wi ...Show All
Carolyn Chau MSFT Issue with spawnv (tried spawnl, spawnlp and spawnvp, too)
Dear all: I ran into an odd behavior, and I wonder whether anyone has encountered it before and possibly knows a fix/workaround/correction. Rather than post lots of code right away, I will describe it first. The program is a .C source with a regular int main(). If I use spawnv directly with the no wait flag, the path/command and the arguments (not interested in the env part), it works nicely. However, if I try to put the same logic into a ...Show All
fcastell porting code
hello, Are there any examples of porting native posix c code to something that can be compiled on VS-05. Also, I get lot of errors like 1>d:\src\avilib.c(1826) : warning C4996: 'strerror' was declared deprecated thanks -mic VS2005 introduces security enhancements in the CRT which result in this warning. You can read more about how to use the new more secure CRT function replacements (or how to disable this warning) here: http://m ...Show All
Fergus Ko Problem with templates
I am trying to write a template class for a simple double linked list. Posted below are the definitions. In the .cpp file I have the implementation. I know for certain that I am including the .h and .cpp files in the project, but I get an error when I try to build: error LNK2019: unresolved external symbol "public: __thiscall wcLinkedList<int>::~wcLinkedList<int>(void)" ( 1 $wcLinkedList@H@@QAE@XZ) referenced ...Show All
Andrew McGhie Enabling and disabling Remote desktop, Programetically
hi all, I am stuck by the problem of enabling and disabling Remote Desktop protocal. anybody has a solution for this, this will be of great help to me. bye and thank you MOINUDDIN Hi there, I believe that Remote Desktop is controlled via a Registry key. Please see this link for details: http://www.windowsdevcenter.com/pub/a/windows/2004/05/04/serverhacks_remote.html If that's the case then in your program all you need to ...Show All
Michael-T Error : msvcr80d.dll not found on your system please reinstall for fix application
I'm use Visual studio 2005 Pro can't debug please help me For my benefit can anyone elaborate on what this workaround actually means, and why FAT32 drives can't be detected by the manifest tool and keep it transparent to the user This is the *first* time I've ever seen the IDE have an option to "workaround" a problem. Brian Set Use FAT32 Work-around to yes ...Show All
CLG3 VC 2005 RC with Loki small object allocator, std::lower_bound, and CompareFixedAllocatorSize
I am trying to use the Loki Small Object Allocator with VC 2005 RC v8.0.50727.26. In smallobj.cpp Loki has the following template function invocation: Pool::iterator i = std::lower_bound(pool_.begin(), pool_.end(), numBytes, & ...Show All
Tampali CreateMutex problem
Hi everyone, I'm getting a security threat related to giving DACL rights to "Everyone", for example while creating mutex- when I run my code through Application Verifier, even though I have removed the "Everyone" access completely from the code. Is it possible that some functions are interally calling functions like createmutex, etc, with the "Everyone" right Can we control it Also, Is there any way of traversing through a list of all mutex c ...Show All
Omer KU?CU (/Za) Option
Hey, what can I do to have my code as much anci C(I have set an option to compile as C) as possible I think /Za turns of MS extensions. Where can I find document describing those extensions Do I have to set some more options I code C using Visual C++ 2003 Standard and testing C++ Express edition. And 1 more simple question. When I turn off /Za "getch();" returns me an error. I have to change it to "_getch();", why Will _getch compile with gcc o ...Show All
Mutt10R Unresolved Token and other link errors when migrating from VC++ 2003 to VC++2005 Express
Hello all, Here is the situation. I am migrating an existing solution from Visual C++ 2003 to Visual C++ 2005 Express. I have the Platform SDK installed as well. The solution contains two mixed mode projects. One is essentially a managed wrapper dll for a 3rd party static win32 library. I do not have access to the source for the 3rd party library. The other project is a managed executable that utilizes the wrapper dll. These proje ...Show All
Udi Azulay VC++ project under VS.NET 2003 unable to query IDispatch
Hello, I am new to COM programming in VS.NET 2003, although experienced with COM in other environments. I am just starting a new project and am hung on something rather basic. I have a class that stores a reference to a dual interface. This class has a property by which a client can obtain ther IDispatch interface. Roughly, I want to: CComPtr<IDualIntf> m_DualIntf; ...Show All
dotnetscott Using host program functions from C# Script?
Im kinda new to this scripting thing. Im using C++ to compile a C# script at runtime, then calling certain methods within the script. Is it possible to "import" some of the host programs functions to use within the script ANY advice is appreciated. I am not sure what you really mean. If you are asking about the C# application calling a managed C++ application, then yes that is possible. This past post mi ...Show All
bener User Interface options
Good Afternoon- I've been developing a code in VC++ as part of my thesis work. So far it has been a console application, I've dumped all the data to a text file and then done analysis work in a spreadsheet. I'd like to tackle adding a user interface to control inputs, display data, etc. I'd appreciate some input on which way to go. As I understand it right now I have three options: 1. MFC 2. Windows Forms 3. an open source / freely available ...Show All
