The function CoGetClassObjectFromURL, which is used to download the object from the web server. In IE6, IE7 Beta 2 this works. In IE7 RC1 it returns a status of E_NOTIMPL!!!! Is there a work around for this in IE7-land? (Also posted in COM message board) http://www.codeproject.com/script/comments/forums.asp?msg=1668115&forumid=1648#xx1668115xx
OrcBighter2
Posts
-
Problems downloading objects in IE7 -
Problems downloading com objects in IE7The function CoGetClassObjectFromURL, which is used to download the object from the web server. In IE6, IE7 Beta 2 this works. In IE7 RC1 it returns a status of E_NOTIMPL!!!! Is there a work around for this in IE7-land?
-
please tell me this ??????Oh, for heavens sake! Put the poor sod out of his misery! In Windows, this refers to the way memory is accessed. 16-bit applications access memory in 16-bit "chunks" (2-bytes). Most DOS and Windows 95 and 98 applications are 16-bit. 32-bit application access memory in 32-bit "chunks" (4-bytes). 64-bit application access memory in 64-bit "chunks" (8-bytes). This means that an integer in 16-bit has a maximum value of 2^15 or 32,768, while the maximum value for an integer in 32-bit is 2^31 or 2,147,483,648, and so on. Please note that you could have got all this information with Google. Try it. Its a wonderful tool! Just do a search on "16-bit definition" and see what jumps out at you!!!! OrcBighter
-
Problem including C++ code in C# assembly.Thanks for your reply. Sorry, but I don't quite see what you are getting at. The const in mc must be static in order to initialise it with a value. For me, the end result must be that a string constant defined in the C# assembly must be able to be initialised to the value of a constant from the managed C++ class. The code I provided works fine for integer constants, however, the C# does not regard the C++ string constant as a constant, and thus will not allow me to initialise the C# constant to that value.
-
Vector listYou are not clear, but it sounds like you want the Standard Template Library (STL) It a simple and easy to use library. here is a simple example for you, straight from the help files which you should probably read first before posting a question: #include "stdafx.h" #include using namespace std; int _tmain(int argc, _TCHAR* argv[]) { vector myVector; // an empty string vector vector::iterator myIter; // an iterator for the string vector myVector.push_back( 0 ); myVector.push_back( 1 ); myVector.push_back( 2 ); myVector.push_back( 3 ); myVector.push_back( 4 ); myVector.push_back( 5 ); for ( myIter = myVector.begin(); myIter != myVector.end(); myIter++ ) { cout << " " << *myIter << endl; } cout << endl; return 0; } OrcBighter2
-
Problem including C++ code in C# assemblyI have a problem setting a class constant in my C# assembly to the value of a constant in a managed C++ class. The compiler does not seem to recognise that the managed C++ class constant is constant. The error message is shown below: #error = "The expression being assigned to 'MyAssembly.SMyFooBar.bahName' must be constant What Have I done wrong here? I am writing in Visual Studio 2003 on WinXP SP2 with .Net Framework V2.0.50727 The reason for this attempt is that the majority of our code is unmanaged c++, which uses a glabal header file to set values through a number of projects. I wish to include this header in our various new C# projects, and thus avoid double maintenance. If the header file changes, all that is needed is a code recompile, at least in theory. To do this I wrapped the header file inside a managed c++ class to create a dll. I then included this dll as a reference in my C# project so that I could use it to initialise some c# constants, thus: -- unmanaged C++ header // CPPHeader.h #ifndef CPPHeader_defined_hpp #define CPPHeader_defined_hpp #define MAX_FOOBARS 3 #define FOOBAR_NAME "Foo Bar" #endif // CPPHeader_defined_hpp --------------------- -- managed C++ class //MyManagedClass.h compiled to a DLL #pragma once #include "CPPheader.h" using namespace System; public __gc class SMyManagedClass { public: static const int maxFooBars = MAX_FOOBARS; static const String* FooBarName = FOOBAR_NAME; }; -------------------------- -- C# assembly //MyFooBarAsembly.cs using system; using SMyManagedClass; namespace MyAssembly { public class SMyFooBar { public const int maxBahs = SMyManagedClass.SMyManagedClass.maxFooBars; public const string bahName = SMyManagedClass.SMyManagedClass.FooBarName; } } OrcBighter2
-
Problem including C++ code in C# assembly.I have a problem setting a class constant in my C# assembly to the value of a constant in a managed C++ class. The compiler does not seem to recognise that the managed C++ class constant is constant. The error message is shown below: #error = "The expression being assigned to 'MyAssembly.SMyFooBar.bahName' must be constant I am writing in Visual Studio 2003 on WinXP SP2 with .Net Framework V2.0.50727 What Have I done wrong here? The reason for this attempt is that the majority of our code is unmanaged c++, which uses a glabal header file to set values through a number of projects. I wish to include this header in our various new C# projects, and thus avoid double maintenance. If the header file changes, all that is needed is a code recompile, at least in theory. To do this I wrapped the header file inside a managed c++ class to create a dll. I then included this dll as a reference in my C# project so that I could use it to initialise some c# constants, thus: -- unmanaged C++ header // CPPHeader.h #ifndef CPPHeader_defined_hpp #define CPPHeader_defined_hpp #define MAX_FOOBARS 3 #define FOOBAR_NAME "Foo Bar" #endif // CPPHeader_defined_hpp --------------------- -- managed C++ class //MyManagedClass.h compiled to a DLL #pragma once #include "CPPheader.h" using namespace System; public __gc class SMyManagedClass { public: static const int maxFooBars = MAX_FOOBARS; static const String* FooBarName = FOOBAR_NAME; }; -------------------------- -- C# assembly //MyFooBarAsembly.cs using system; using SMyManagedClass; namespace MyAssembly { public class SMyFooBar { public const int maxBahs = SMyManagedClass.SMyManagedClass.maxFooBars; public const string bahName = SMyManagedClass.SMyManagedClass.FooBarName; } } OrcBighter2