| Newbie: Howto convert char variable __gc into CString? (2 replies) |
| microsoft.public.dotnet.languages.vc |
| Hi (again)! I have a WS that recieves a character array ex: "C:\folder\filename.txt" in the form char .... gc[], how to I convert the char array into CString? It seems to be easier without the garbage collector but then doesn t my Web Service work. without gc: function (char inFile nogc[], ,); char *pchar; pchar inFile; CString m sInfile; m sInfile kchar; .... or is the above also incorrect? Thank... |
|
| how to get list of computer on local network ? (2 replies) |
| microsoft.public.dotnet.languages.vc |
| how to get list of computer on local network ? I used (with interop, in C#) WNetOpenEnum, WNetEnumResource, NETRESOURCE but it's imperfect. it fail to bring back a laptop, not registered on any domain, although connected onto the network. worst, even from the laptop itself I was not able to grab this computer, any other ideas ? |
|
| Unigraphics and C++ .NET (2 replies) |
| microsoft.public.dotnet.languages.vc |
| I'm developing an application in C# that generates scripts for UNIGRAPHICS (Win2000 and WinXP) Unigraphics is a designing tool similar to AutoCad. The scripts generated are used to automatically draw objects in Unigraphics. CURRENT SCENARIO: Because Unigraphics supports only C , I'm generating those scripts in C , even though my application is written in C#. Once the script is created, the user ha... |
|
| Looking into gcroot contents while debugging (2 replies) |
| microsoft.public.dotnet.languages.vc |
| I have an unmanaged class with a pointer to a managed instance (wrapped in gcroot). While debugging, is there any way of getting at the contents of the member instead of just the handle? Its painful to have to add a temporary line of code that assigns the pointer to a copy, recompile, relink, relauch the application and get back to that spot. Any help appreciated. Thanks. |
|
| Exposing COM interface in managed C++ (2 replies) |
| microsoft.public.dotnet.languages.vc |
| Hi, I would like to know how can I exposing a COM interface using managed C Not using ATL I will apreciate if anyone can give me any example. Cheers, aragao |
|
| Fatal Error C1010 in Mixing Managed C++ and Unmanaged C++ Code (2 replies) |
| microsoft.public.dotnet.languages.vc |
| Hi all, I have Microsoft Visual C .NET (Standard Edition) in my Windows XP Home Edition PC. I got a fatal error C1010: unexpected end of file while looking for precompiled header directive, when I tried to build the following code of the Managed C Application in my PC: /////////***Mixing1 Hello.cpp***////////// #using mscorlib.dll using namespace System; #include "stdio.h" void ManagedFunction() {... |
|
| Object Browser comment information in release DLL's (3 replies) |
| microsoft.public.dotnet.languages.vc |
| Hi, I have read most articles about this subject, but still can't get this to work: How can the summary and other class information be displayed by the object browser when one selects a class or method of a referenced DLL (instead of the actual project itself). I use c# and add comments before classes and methods, and all information seems to be displayed correctly inside the object browser if I s... |
|
| Calling generic object functions (7 replies) |
| microsoft.public.dotnet.languages.vc |
| Lets say that I have am creating a small game. This game has monsters and elves. I want to create a Movement class (MoveForward();MoveBackward();etc). I want to create two more classes: a Monster class that inherites the Movement class, and a Elf class that also inherites the Movement class. Everything is easy up to this point. My question is: In my main loop, I want to have a single line call the... |
|
| ngen:ed mc++ dll stops working! (2 replies) |
| microsoft.public.dotnet.languages.vc |
| Hi! I'm trying to sort out some performance issues and are now ngen:ing. But shouldn't it be ok to ngen a managed c dll?? It's a wrapper dll consisting of both gc classes and unmanaged classes. ngen tool works ok but after that I cannot load the executable. Nothing happens from the command line and if I launch the exe from the debugger I get a System.ExecutionEngineException in cstringt.h. CString... |
|
| Making a property an indexer in MC++ (3 replies) |
| microsoft.public.dotnet.languages.vc |
| Hi! Is it possible to mark a property to be interpreted as the indexer when the class is used by C#? Actually, I am looking for an attribute that does the reverse thing that IndexerNameAttribute does. It would be nice if I could do something like public gc class IndexedClass { public: [SomeAttributeMakingThisTheIndexer] property int get Item(int i) { /**/} property void set Item(int i, int val) { ... |
|
| IMPORTANT: IntelliSense does not work after __typeof operator (2 replies) |
| microsoft.public.dotnet.languages.vc |
| I work on Visual C .NET for developing .NET Framework applications. I've noticed that if I apply the typeof operator, the IntelliSense tool is no more available for the code lines following the line where this operator is used. For example, if we use Type gc* myType typeof(String); IntelliSense will no more work for the rest of lines. On the contrary, if we use Type gc* myType Type::GetType("Syste... |
|
| Problem marshalling complex structures (invoking Win32 APIs) (3 replies) |
| microsoft.public.dotnet.languages.vc |
| Hello there, I hope someone can help me solving the following problem I'm using ManagedC and I want to display the "Browse folder" window so I call SHBrowseForFolder (in "shell32.dll") than needs as a parameter the BROWSEINFO structure. Everything works fine except that the Title above the "tree view" shows only garbage characters. I wrote the following declarations in the header file: /******* he... |
|
| Managed C++ String to char* (5 replies) |
| microsoft.public.dotnet.languages.vc |
| Is there an easy way to get at any char in a System::String ? All I want do is be able to iterate through each character ,or Unicode we char to be clear, to then add it to a char array (char*) I have allocated for the System::String.Length 1 to terminate it with a \0. Pretty standard stuff, but how do you index into the String, or get at any value in it? Thanks. |
|
| Problem with LogonUser (4 replies) |
| microsoft.public.dotnet.languages.vc |
| Hi All, I have been trying for a long time to figure out this LogonUser/ImpersonateLoggedOnUser however when I call if (!LogonUser(blah blah)) { GetLastError......................... } I get kicked out of the function completely... obviously I can not see what is going on inside LogonUser because it goes into assembly. But when it comes out it goes no futher Has anybody successfully managed to imp... |
|
| web.config (5 replies) |
| microsoft.public.dotnet.languages.vc |
| Once again I'm stuck because every example I can find on the net is for VB or C#... can anyone tell me how to use the Configuration.AppSettingsReader in VC.NET Thanks Gav |
|