microsoft.public.dotnet.languages.vc Archive - September 2004
Post a message to this list
Messages
Page: 12345
"Querying" interfaces (3 replies, VIP)
microsoft.public.dotnet.languages.vc
Hi, With COM, I was able to create an object supporting various interfaces, and by overloading QueryInterface to decide at runtime if the interface beeing queried was actually available (given the current state of the object) or not. Is there such a possibility with managed .net classes derived from several interfaces ? Is there some way to make a dynamic cast fail ? Chris.
Impersonation (fairly simple I thought) (7 replies)
microsoft.public.dotnet.languages.vc
Hi there, If a program running under the interactive logon session (say Susan), needs to impersonate Bob (via "LogonUser()"), but Bob needs to access the network as Susan (i.e., his local credentials will be his own, but his network credentials will be Susan's), is there anyway to do this? The problem seems to rest with the fact that Bob needs Susan's cleartext password to invoke any of the approp...
Decompiler.NET reverse engineers your CLS compliant code (33 replies, VIP)
microsoft.public.dotnet.languages.vc
http://www.junglecreatures.com/ Try it and tell me what's happenning in the Microsoft Corporation. Notes: VB, C# are CLS compliant You can also use managed code with C Using what they call obfuscator, will not help you for a long time. For each new obfuscator there will allways exist a new deobfuscator. Your source's Symbols are written unchanged in the exe or dll file. Looking to your Symbols, it...
C#.net inner classes (2 replies, VIP)
microsoft.public.dotnet.languages.vc
Hai one and all..I have a doubt about inner classes in C#.net..Here by I need a full description about that.plz sent it to me.. From: raja sekar Posted by a user from .Net Guru (http://www.dot-net-guru.com/) Id i9U20 cBqkend17NigJrJg /Id
New Google group - Visual Studio Express (3 replies)
microsoft.public.dotnet.languages.vc
A new Google group has been formed for the purpose of discussing the new Visual Studio Express products. http://groups beta.google.com/group/Visual Studio Express The products are currently in beta testing and include Visual Basic 2005 Express, Visual C# 2005 Express, Visual C 2005 Express, Visual C 2005 Express, Visual J# 2005 Express, Visual Web Dev 2005 Express and SQL Server 2005 Express. They...
lnk1181 glowcode.lib missing (2 replies)
microsoft.public.dotnet.languages.vc
I took an sdi mfc app created under vstudio (prior to .net) and rebuilt it using vstudio.net. The debug configuration builds fine, but when I try to build the release version I get the following linker fatal error LNK1181: cannot open input file 'glowcode.lib'. There is no such file on my workstation. What is glowcode.lib, and why is the linker looking for it? If I need it, where do I get it? I am...
Read variables through EXE (3 replies, VIP)
microsoft.public.dotnet.languages.vc
Sorry for the confusing topic, I wasn't sure how to word this exactily. I have a program that needs to read a variable in from the outside. Specifically, the program will be run like this: Set WshShell CreateObject("WScript.Shell") WshShell.Exec("myProgram.exe 123456") end sub myProgram.exe is a VC application 123456 is a variable I want to be able to read into this VC application. Any advice on h...
is Marshal::FreeHGlobal() possible? (2 replies, VIP)
microsoft.public.dotnet.languages.vc
Hi, After converting String* to Char*, I need to call Marshal::FreeHGlobal(). Fine. But I need pass this Char* to an unmagaed C class and the managed C class is not possible to do Marshal::FreeHGlobal() any more. What should I do? delete Char* in the unmanaged class? Thanks
Concatenate char to String (3 replies, VIP)
microsoft.public.dotnet.languages.vc
Okay I know this is basic C but can someone tell me how to concatenate char[] to string. Ex: char hexChar[] {'A','B','C','D','E','F'}; String *str "A"; how can I do this: str hexChar[1] hexChar[3]; or str str hexChar[3]; thanx, Poe
thread debugging causes access violation (3 replies, VIP)
microsoft.public.dotnet.languages.vc
Trying to debug a C application with multiple worker threads and suddenly I am getting a memory access violation in heap alloc base. This application did not produce this error before I opened a thread window and it works fine if run without debugging. A google search finds a 2001 discussion about a similar problem: "I've seen extrememly weird behavior when I've linked libraries compiled with debu...
webservices in C++ (2 replies, VIP)
microsoft.public.dotnet.languages.vc
hello, i'm wondering if i can write webservices in c ? instead of VB or C# ... if this is a case how do some specify a WebMethod attribute ? tnx
Problem with event declaration - possible VS.NET bug? (4 replies, VIP)
microsoft.public.dotnet.languages.vc
Hello, I made a post relating to this issue a while back, but I haven't received any answer, so here I am again. I am writing a mixed C dll which uses the following declaration: typedef System::Byte ByteArray gc[]; Then I have an event declared in the main class for the dll as follows: event void MyEvent(ByteArray* ba); The problem is that with this event declaration, when I compile the code, I ge...
Delegating Constructor only supported by native class objects? (4 replies, VIP)
microsoft.public.dotnet.languages.vc
Are or will delegating constructors (constructors that can call sibling constructors) be available for ref classes or only for native classes? The CLI/C specs seems to say that it is a native class thing so I just want to make sure so that I can include/exclude it from the revision of my book. (I also can't seem to get it to work for a ref class, if it is supported.)
access 3dsmax using C++ (3 replies, VIP)
microsoft.public.dotnet.languages.vc
could anybody help me if I can use VC to access graphic object created by 3ds max,auto CAD,SolidWork,and how thank you in advance[quote:a39b0bff4c][/quote:a39b0bff4c]
Caputring Text From a 3rd Party RichEdit Chat Window (3 replies, VIP)
microsoft.public.dotnet.languages.vc
Hi All, I want to capture / read the text flowing through a chat window that is part of an external application. I should note that I don't just want to capture the text in the chat window once, I want to get the new text as and when it is posted into the chat window I have little knowledge of the windows api so a simple explanation or sample code would be much appreciated. Adam
Improving performance C++/C# (16 replies, VIP)
microsoft.public.dotnet.languages.vc
Because of historical reasons, I have both C# and C managed/unmanaged code mixed together in my class library. But I prefer to port code to C# since it compiles faster and the syntax is much more readable so I can do more in less time. The big question now, will I gain/lose performance, given the fact that I create pure managed code, if I port the managed C classes to C# classes? I cannot port all...
Failed to load vcproj (2 replies, VIP)
microsoft.public.dotnet.languages.vc
Hi, I'm in the process of migrating our code to .NET 2003 from VC 6. I'm able to load most of the projects without any problem but for few I'm getting "Failed to load ... .vcrpoj" error. I read thro the article http://support.microsoft.com/?id 329412 and made sure that there are no extra quotes but still getting the same error. I even tried creating the vcproj file again from dsp file. Using .NET ...
VC 7.1 Bug related to templates ?! (4 replies)
microsoft.public.dotnet.languages.vc
Hi all, Microsoft Visual C .NET 69586 112 0293626 18840 doesn't compile the code below, it issues a C2146. template class T class A { public: typedef T X; }; A A int ::X::X i; Is a fix available for this problem ? Thank you, Dot Net Guruhias
Calling a managed __gc class from a mixed mode dll, please help! (3 replies, VIP)
microsoft.public.dotnet.languages.vc
I have a mixed mode dll with a garbage collected interface. The interface is garbage collected because my derrived class has managed member variables. I am trying to return a pointer to my interface using GetProcAddress and calling an exported function which instantiates and returns my derrived class. While this works for the native portion(also interfaces) of my DLL, this fails with my managed cl...
Simple C++ DLL and visibility (4 replies, VIP)
microsoft.public.dotnet.languages.vc
I have some experience with writting DLL's but none in C . Here are the steps that I follow and the (negative) results I get: I create a VC project of Class Library (.NET). I modify the .h file to be as follows: // myDLL.h #pragma once #include string.h using namespace System; namespace myDLL { public gc class Class1 { public: Class1() { myInfo new char[20]; strcpy(myInfo,"This is it!!"); } char *...
std console output for windows based app (?) (5 replies, VIP)
microsoft.public.dotnet.languages.vc
Hi, (*) I am writing an unmanaged application that hosts managed assemblies ( e.g. CorBindToRuntimeEx ) my app may host window based PEs and Console based PEs, the host is a single executable and should be able to host the two types of the PEs. (*) When Hosting a consol based app ( managed ) I can't see the std output generated by the app. (*) The host is compiled as a Win32 project (windows based...
Bit masking (2 replies, VIP)
microsoft.public.dotnet.languages.vc
Hi, I'm quite new to programming C, so if someone could help me I'd be really thankful. Now, what I need to do is bit masking. I have an 16Bit integer that is composed of two parts. First, there come three one bit flags, followed by the rest a 13bit integer. Now, to receive everyone of these values, I wrote the following macros: [FirstFlag][SecondFlag][ThirdFlag][RestInteger] Bits: 1 1 1 13 #defin...
Got error when try to compile a dll (2 replies, VIP)
microsoft.public.dotnet.languages.vc
I got the following error message when compiling a dll, after this dll has been compiled with calling project: "fatal error LNK1168: cannot open mylib.dll for writing" Realized that the file is being locked by the invoking project , but not sure why. Any thoughts? Thanks, J
Static Read-only array fields in C++ (4 replies, VIP)
microsoft.public.dotnet.languages.vc
I can't create a Constant/Read only array field in managed C classes doesn't allow the keyword const pointer to const object on array fields in managed C classes. e.g. Want to define a read/only field for an empty array (so all the empty arrays of the given type can use the same object) however because the pointer in the field cannot be marked as constant then it is possible that any external part...
How to fill a memory range with a value when debuging a process in (3 replies, VIP)
microsoft.public.dotnet.languages.vc
I want to set a big memory range (size 0x10000) with 0xff. How can I do it when debugging? Thanks
Ad
Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification