microsoft.public.dotnet.languages.vc Archive - February 2002
Post a message to this list
Messages
Page: 12
run a process automatically after show a CDialog (2 replies)
microsoft.public.dotnet.languages.vc
Hello I need to run a process automatically after show a CDialog. I try to catch som message bun I did't find no one to do this. Plece somebody can helpme
Exception happens in case of putting NET control on the from in design-time (7 replies)
microsoft.public.dotnet.languages.vc
Hi, Does anyone know what can be the reason of throwing an exception from HRESULT 0x80131019 when I am trying to place a NET control written on C on the Windows Form in design time? Everything I can find is a definition of this exception in the CorError.h file in Framework SDK: #define COR E FIXUPSINEXE EMAKEHR(0x1019) // Attempt to load an unverifiable exe with fixups (IAT with more than 2 sectio...
System.IO.Stream from IStream? (2 replies)
microsoft.public.dotnet.languages.vc
Hi all, Currently the system I've been working on for the past 5 years uses OLE structured storage (Microsoft's Compound File implementation) to persists it's data. We have some automation object that we wrote in ATL that delegate everything to IStorage and IStream. What I need to do now is somehow hook up the IStream interface to the System.IO.Stream class. Is there any type of interop service or...
this pointer (4 replies)
microsoft.public.dotnet.languages.vc
Hello , I am wondering if there is any function like GetHashCode for Managed C Application? In unmanaged c code this pointer value can be used as a hash code but in managed code there is no pointer value. C# and VB.NET provides a function Object.GetHashCode which can be possibly used for identifying an object. Any suggestion? Thanks Maneesh
Public Private (6 replies)
microsoft.public.dotnet.languages.vc
Hi, What I am trying to do is mimic the *internal* keyword used in C#, but so far without any success. I don't know if anyone else has had any success with access specifiers but to kick off I would like to refer readers to this ms help://MS.VSCC/MS.MSDNVS/vcmxspec/html/vcManagedExtensionsSpec 21 2.htm When I use the access specifiers (a la the reference above) the member variables seem to have the...
Building a custom NET control using Managed Extensions (6 replies)
microsoft.public.dotnet.languages.vc
Hi, Did anyone try to create a custom NET control using Managed Extensions? Any success? It seems pretty straightforward but the problem I found that I can not use this control in WinForms designers (I mean I can not put this control on the form in design time). Similar simplest (a few line of code) control written using C# works fine. Did I miss some special settings (compiler switches, class/ass...
Accessing C# from VC++7 (2 replies)
microsoft.public.dotnet.languages.vc
Hallo, I'd like to use a C# assembly in a VC7 program. It works in general, but the VC application is quite large (written in VC6, but now converted) and makes heavy use of std::string. The C# functions return System::String, and I would like a nice and fast conversion from System::String to std::string. At the momemt, I'm copying the System::String character per character to a char[] buffer and c...
InstallUtil.exe encountering System.BadImageFormatException (2 replies)
microsoft.public.dotnet.languages.vc
I wrote a Windows service application in managed C (at least everything that I am looking at shows it to be one; it's my first managed app). However, when I run it, I get the following error: Exception occurred while initializing the installation: System.BadImageFormatException: The format of the file 'ServiceTest.exe' is inva lid.. All of my classes are declared with gc. The only thing I can find...
fatal error LNK1254 (6 replies)
microsoft.public.dotnet.languages.vc
I have a C project containing a managed component. Initially it was a VS6 ATL COM project. Inside I have some C files, including global functions. When building in VC7, I get this : fatal error LNK1254: metadata for symbol '?MyFunction@@$$FYGHPADPAI0IHHH@Z' inconsistent with COFF symbol table "MyFunction" is the name of a global function from a C file. I don't find any information about resolving ...
Dispatch tables with functions containing managed pointers (5 replies)
microsoft.public.dotnet.languages.vc
How do I construct a dispatch table containing function pointers that point to members of unmanaged objects, or are normal functions? It is a requirement that the functions accept at least one argument that is a pointer to a managed object. The following program illustrates the problem: #using mscorlib.dll #include tchar.h using namespace System; gc class Managed { public: int I; }; int Func(Manag...
VC7 pointer regression (2 replies)
microsoft.public.dotnet.languages.vc
Here's an odd one... if I name one of my variables "main" (wmain is my entry point), I can't assign a pointer. It just points to a random place in memory. Well, random to me at least. Even happens if I pass the pointer to a function, that doesn't use "main" at all. It's like the linker is doing something "smart", though it happens in DEBUG, with no optimization. My example, works great with VC6, w...
Tool to generate Server side code given a .WSDL? (10 replies)
microsoft.public.dotnet.languages.vc
Is there a tool that will generate Stub server side code (Not client side like wsdl.exe)? I have developed a complex wsdl and now I want to try it out by creating a web service. Thoughts?
Web Service client is c# app how to authenticate? (2 replies)
microsoft.public.dotnet.languages.vc
I have a web service and c# clients talk to the five or six methods on the web service. Everything is ok on the development machine. I would like to know how to get my client to connect to the web service securely. My scenario is this, the user enters a username and password into the c# application when the application starts. This username and password is used to authenticate with the web service...
How to convert Int64 to int? (3 replies)
microsoft.public.dotnet.languages.vc
I know this is probably really simple, but I've not found the solution. How do I safely convert an Int64 to an int? I've been doing just a (int)(myval), but I realize that could eventually get me into some trouble. Thanks in advance!
Windows service applications (System.Diagnostics.DebuggableAttribute headaches) (3 replies)
microsoft.public.dotnet.languages.vc
Has anyone here written a Windows service application in Managed C ? I've been trying for several days now with absolutely no luck. I've tried so many different things that I am on the verge of ripping out my hair. Lack of any kind of sample code in MSDN for C is making it even more frustrating. The point I am at right now is that I have a Managed C .dll code module (ServiceTest.dll) and a C# .net...
Events from ActiveX controls added at run time (2 replies)
microsoft.public.dotnet.languages.vc
I am connecting at run time to an ActiveX EXE that was written in Visual Basic. I am able to call methods and access properties in the ActiveX object but have not been able to figure out how to get notified of events triggered by the ActiveX EXE. The wrapper class that was created when I added the ActiveX object to the project has function of with the names of the events I am trying to get, but th...
ASCII to base64unicode (2 replies)
microsoft.public.dotnet.languages.vc
How can I convert from an ASCII string to base64unicode? It sounds simple, but.... How can I detect if a string value is ASCII or base64? Thanks, Ann
SOAP returning array of objects containing arrays (3 replies)
microsoft.public.dotnet.languages.vc
Hi. I have a web service that supports a method which returns a collection of objects each object containing an array of additional objects. Essentially a multi dimensional array. I know that my server returns the correct data. My problem is that when my client application receives the response, the first level of the array is correct, but the 2nd dimension is NULL. So how can I code my client to ...
VC++ 7.0 compatible and speed ! (18 replies)
microsoft.public.dotnet.languages.vc
Hi, Please explain about new version of VC ... Why i must change my programming language from 6.0 to 7.0 ??? Thanks
ADO convert VB to C++ help please (2 replies)
microsoft.public.dotnet.languages.vc
I would like help converting this example from VB to C I found it in the dotnet RC1 Sample Visual Basic Application to Update Records Using OPENXML and ADO I would be very happy to get help putting this into c thank you mark
how to implement a collection in managed c+? (3 replies)
microsoft.public.dotnet.languages.vc
hi, i tried to implement a class with a collection/list/dictionary or whatever (in managed c ), but i can not access the memeber of the collection by index, e.g. void main( ... ..... MyClass my my.Items[index].Test .... gc public class MyItems : public ICollection { public: int Test() { return 20; } }; // end class MyItems gc public class MyClass { public: MyItems *Items; };
assembly not found calling C# from C++ (3 replies)
microsoft.public.dotnet.languages.vc
I have a solution that was working in Beta2 but doesn't in the release, even if I redo it as a new solution. Everything compiles and links, but when I try to actually open a C# form from C , I get: An unhandled exception of type 'System.IO.FileNotFoundException' occurred in CPlusManaged.exe Additional information: File or assembly name System.Windows.Forms, or one of its dependencies, was not foun...
Managed C++ Class Library? (4 replies)
microsoft.public.dotnet.languages.vc
Hi, Im trying to rewrite our Corporate Directory system in .net. Man, have I had troubles. Im creating it as a webservice (C#), the directory information is stored on a Siemens DirX (LDAPv2) server. However some of the custom types that are used in the LDAP server cant be handled in .net. After much toil and trouble trying to access the data in c# I decided it wasnt happeneing and decided to inves...
new to GDI+, how do you handle redrawing/refreshing shapes on screen? (2 replies)
microsoft.public.dotnet.languages.vc
Well, the topic is pretty much self explanatory. I have been playing around with the GDI stuff in .Net recently and I am having a little trouble getting my shapes to redraw properly. Here's what I'm doing.... I've created a bar chart. The bars(rectangles) are situated horizontally. If the user resizes the screen I move the rectangles to a new location. when I move the rectangle objects they move f...
Dialog Editors. What have you done? (10 replies)
microsoft.public.dotnet.languages.vc
As someone who spends a lot of time preparing Dialogs in Visual C and who follows the Windows GUI Guidlines I am distressed at the new .NET development. Before we had one great Editor in the Visual C Dialog Editor and one awful abomination in the Visual Basic form editor. Now for some reason the Visual C editor has been made worse, although only slightly, but the new Windows Forms Editor is even m...
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