microsoft.public.dotnet.languages.vc Archive - April 2002
Post a message to this list
Messages
Page: 12
PLEASE HELP ME. (GetMessage problem) (2 replies)
microsoft.public.dotnet.languages.vc
Can anyone please tell me why this piece of code never reaches code the body inside the wile loop? According to Microsoft Spy the winamp window gets messages all the time. I have sent messages manually through a small self written program. Winamp receives the messages and performs the action. But this piece of code below that is supposed to react every time a message is sent to winamp doesn't work...
C functions in C# (3 replies)
microsoft.public.dotnet.languages.vc
Hi I need to give an C DLL function char *** argument in which this function then will return me an two dimensional array of strings. the memory will be allocated by C function and the size of that array is unknown. Also i need to give to a C function a pointer to a call back function which will then be called with 2 char ** arguments holdign array of strings (one dimensional arrays) the size is a...
MC++ contained in MFC (2 replies)
microsoft.public.dotnet.languages.vc
This is my headached... I have a legacy VC app, and we have a new (VB).NET app. The VB.NET app contains a Class Library that I need to use. This Class Library is responsible for authenticating our security. I have created a MC class that interacts with this Class Library, so far so good. Well, now I need to instantiate the MC class from within the VC app, and keep a reference to it throughout the ...
PLEASE, how to have a bar of menu with a range of gray? (4 replies)
microsoft.public.dotnet.languages.vc
How is necessary it to make to have a bar of menu with a range of gray as in Internet Explorer 6.(it is a bitmap or another thing?) Thank you in advance.
ListView...ItemCheck event...make some items hidden..but how? (2 replies)
microsoft.public.dotnet.languages.vc
HI! was ich machen will... wenn ein user checked eine item in der ListView sollten alle andren item nicht checktbar sein oder noch besser: alle andren item nicht checktbar sein und hidden(nach dem der user nochmal auf diese checked item klickt sollen wieder alle items sichtbar sein) (das erste beispiel würde mir mir aber auch schon reichen) aber wie kann ich diesen event am besten schreiben? hat e...
Managed arrays, multidimensional (2 replies)
microsoft.public.dotnet.languages.vc
Hi all, maybe someone holds the answer for me. I have a function that receives an array and fills it, and that should examine the array it receives to determine its length and number of dimensions. The idea, then, is that this function should accept both unidimensional and multidimensional arrays. Of course the trouble is that I have not been able to figure out how to make the function accept both...
Threading (7 replies)
microsoft.public.dotnet.languages.vc
I apologize if this isn't the best newsgroup for this question but I was unable to find one specific to the subject. NOTE: This is being implemented via win32 API calls, not the .NET framework. I'm currently attempt to synchronize a set of methods which are considered read and write. The flow is that any function which uses but does not modify a shared resource can be accessed asynchronously. Howe...
Attributed ATL && AtlReportError?!? (2 replies)
microsoft.public.dotnet.languages.vc
I've got this VBScript file calling my component which when I do IID iid; IIDFromString(L"{1A6133D7 A86D 4EE4 8BA9 15E5F6A421F5}", &iid); return AtlReportError(GetObjectCLSID(), "Mambo", iid, MY HRESULT MADE WITH MAKEHRESULT...);" inside my C Attributed COM It doesn't work?!? I just get this Invalid STDGMEDIUM structure stuff... What am I doing wrong?!? I've added the "support error info("IEDIConv...
DataSet in Visual C++ (2 replies)
microsoft.public.dotnet.languages.vc
If a web service (written in C#) returned a DataSet, how could a windows application written in C translate the XML back into regular data? I have only been able to read the response as a BSTR and don't know what else to do. Thanks in advance.
ListView...ItemCheck event..make some items hidden..but how? again.... (2 replies)
microsoft.public.dotnet.languages.vc
hi! I ask this few days ago. but no one answert me.. therefore I ask over again.. ;) what I want to do.... when an user checked one item in the ListView the other items must come hidden. or: when an user checked one item in the ListView the other items must come hidden and after the user cheched the second time at this item all items was visible.... (I will make it to allowed the user to checked o...
mc++: how to iterate over values of a SortedList? (9 replies)
microsoft.public.dotnet.languages.vc
Believe it or not I'm translating a C# application to MC . The C# code in question is: foreach (KlassInfo klass in RunDoc classes Values) ... where RunDoc classes is a SortedList*. My problem is that SortedList::Values yields an ICollection which I can't index into. Best as I can tell I would need to use ICollection::CopyTo to copy the Values to an array, and then iterate over the array, but this ...
typedef'd pointers are ruining my day! (2 replies)
microsoft.public.dotnet.languages.vc
I have several Adobe Acrobat plug ins that I am trying to port MC . For a variety of reasons I would like to wrap these plug ins in managed classes. My problem is that most of Acrobat's core types are typedefs to undeclared structs. Example: typedef t Foobar *Foobar; // Where this is the only place t Foobar is ever defined Any time I attempt to use a variable of type Foobar, my wrapper throws a Ty...
ATL Server SOAP Headers incompatible with C# Webservice SOAP Headers? (4 replies)
microsoft.public.dotnet.languages.vc
I have the following class, soap header, and soap method: class myHeader { public: BSTR bsToken; BSTR bsContext; }; myHeader oToken; [ soap method ] [ soap header("oToken")] HRESULT ListXBS(/*[in]*/ int nXBSID,/* [in]*/ int nXBSType, /*[out, retval]*/ BSTR *bstrXBSXML) My problem is I get different soap headers sent from C# clients than I do from C clients. A C# soap client generated by adding a w...
C++ control and toolbox bitmap problem (3 replies)
microsoft.public.dotnet.languages.vc
Hi, I have a question. I have tried to ask it before, got some suggestions but they did not help. Here is a question: I am developing a custom NET control using Managed Extensions for C . I need to specify a toolbox bitmap for the control (NOTE: bitmap should be embedded into the assembly not as a separate file in disk). It is well documented and works fine for C# controls but all my attempts to d...
how to call a javascript from c# ? (3 replies)
microsoft.public.dotnet.languages.vc
Hi! I have a webbrowser inserted into my c# app and I want to scroll down the webpage automatically. I couldn t find anything (method or anything, even tried with sendmessage) to scroll down the page so my best guess is to use javascript to do it. (if you know how to do it directly, please tell me :) So i try to do a innerHTML and insert at the end javascript, but the browser doesn t seem to parse...
Override Create in Custom Controls (3 replies)
microsoft.public.dotnet.languages.vc
I create a custom control, in this case derived from CListCtrl. I add a List Control to a dialog, then add a variable for the control to the dialog class, specifying my custom class as the variable type. This all works fine, except that I cannot seem to catch the creation of my control so I can set the styles I need and perform initialization steps. With custom controls in the past, I've added an ...
System::String '==' operator (9 replies)
microsoft.public.dotnet.languages.vc
Maybe I'm misunderstanding how the ' ' operator is supposed to work but I seem to be getting unexpected behavior when I use this operator to test equality on two different System::String objects. For example in the following: // This is the main project file for VC application project // generated using an Application Wizard. #include "stdafx.h" #using mscorlib.dll #include tchar.h using namespace...
Listbox (2 replies)
microsoft.public.dotnet.languages.vc
Hi I am new to VC , I have been using another windows programming language. Could you please tell me how could I add string in a list (say when a user enters a string in an edit box and i want to send it to a listbox) Please Help Me
VC7 project always out-of-date, always rebuilds all (11 replies)
microsoft.public.dotnet.languages.vc
Every time I issue the build command my VC7 project completely rebuilds. When I try to start debugging it always tells me that my project is out of date and needs to be built. This only happens for this one project. All my modified dates look correct. My build log looks normal, but I've included it below anyway. My only solution so far is to compile each unit individually and then link manually. O...
how do I pass int array by reference? (3 replies)
microsoft.public.dotnet.languages.vc
Sorry to ask such a simple question, but I've searched the documentation and I cant work out the best solution. In a managed C application, I want to pass a reference to an array of integers to a method, what is the best way to do this? Also, I want to be able to return arrays of integers from the method, without knowing the size before I call the method. If I have an array like this, Int32 myarra...
wrapping unmamaged code... (3 replies)
microsoft.public.dotnet.languages.vc
I'm creating a managed class to wrap an unmanaged class I already have and need some help handling parameters, specifically passing strings around. I understand that I have to convert the managed string to an unmanaged one for my string parameters and am doing so with the following code (found the code somewhere, I didn't write it myself so I don't really understand it): strNew static cast char * ...
Need examples using MSXML4.0 with c++ MFC (3 replies)
microsoft.public.dotnet.languages.vc
Hi, I have been trying for ages to get the exaple using IXSLProcessor in C on the MSDN site to work in VC7. I have tried allsorts to import the MSXML4.0 dll into my class but to no avail. Can anybody send me a full working example complete with solution files. If nobody can post an example could you please give me some pointers. At the moment I am including MSXML4 with the lines: #import "msxml4.d...
Clean Selection Only or Build Selection Only (3 replies)
microsoft.public.dotnet.languages.vc
Anyone know how to do this with the new enviroment?
VARIANT conversion for CLR (2 replies)
microsoft.public.dotnet.languages.vc
Hi, I'm writing a managed wrapper class to make an existing C application .NET compatible in order to be able to use VB .NET and C# created customization DLL's. Some of the methods use VARIANT type and VARIANT * type parameters. I understand that these should be convertible to CLR object types. However I could find little documentation and no samples. None of the casts I tried did work. I keep get...
Newbie: Passing a "String" by reference in C++ and calling in C# (2 replies)
microsoft.public.dotnet.languages.vc
Hi, This should be really easy, but I seem to have missed out on something here: I am creating an assembly (DLL) in managed C which I am testing in a C# application. However I am having troubles passing a String object to be altered in a sub routine: Here are three different versions I've tried, each with no avail: // C implementation BOOL ILRLibrary::CiCardII::GetInformation(String *pstrInfo) { p...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com