Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
O

OrcBighter2

@OrcBighter2
About
Posts
7
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Problems downloading objects in IE7
    O OrcBighter2

    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

    Web Development com sysadmin beta-testing tools question

  • Problems downloading com objects in IE7
    O OrcBighter2

    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?

    COM com sysadmin beta-testing question

  • please tell me this ??????
    O OrcBighter2

    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

    System Admin question announcement

  • Problem including C++ code in C# assembly.
    O OrcBighter2

    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.

    Managed C++/CLI csharp help c++ dotnet visual-studio

  • Vector list
    O OrcBighter2

    You 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

    Managed C++/CLI c++ graphics design game-dev help

  • Problem including C++ code in C# assembly
    O OrcBighter2

    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 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

    C# csharp help c++ dotnet visual-studio

  • Problem including C++ code in C# assembly.
    O OrcBighter2

    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

    Managed C++/CLI csharp help c++ dotnet visual-studio
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups