Search:

Type: Posts; User: Dynefire

Search: Search took 0.02 seconds.

  1. Re: error: Unable to find an entry point named myfunction in DLL mydll.dll.

    The problem is, that you are exporting the function in two different ways.

    By doing:



    __declspec(dllexport)


    You are exporting the function with "C++" name mangling.
  2. Replies
    0
    Views
    3,900

    Simple Plugin Example.

    This solution consists of 3 projects. The 'BasePlugin' which defines the interface of which plugins are to build upon, a 'Plugin' that implements this interface, and the 'Plugin Loader' application...
  3. Replies
    5
    Views
    555

    Re: Code generation

    Take a look at:

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfmicrosoftvisualbasicvbcodeproviderclasstopic.asp

    This starts you off with the VBCodeProvider...
  4. Replies
    54
    Views
    3,123

    Re: For loop counter scope.

    I wrote this code trying with keeping in mind other variables that could affect the outcome, such as the file system having to 'adjust size' of the file. So I just set the length of the file to how...
  5. Replies
    23
    Views
    63,405

    Re: C/C++ - Interesting swap function

    Probably the best thing to do.
  6. Replies
    23
    Views
    63,405

    Re: C/C++ - Interesting swap function

    How so? The function works. And swaps any object with another. The only REASON not to use this is IF your variables of the objects you're swapping have a member that is a pointer to the parent...
  7. Replies
    23
    Views
    63,405

    Re: C/C++ - Interesting swap function

    template <typename T> void Swap(T & obj1,T & obj2)
    {
    unsigned char * pObj1 = reinterpret_cast<unsigned char *>(&obj1);
    unsigned char * pObj2 = reinterpret_cast<unsigned char *>(&obj2);
    ...
  8. Re: How to kill files that are SYSTEM?

    System.IO.File.SetAttributes("C:\windows\system32\virus.exe", IO.FileAttributes.Normal)
    System.IO.File.Delete("C:\windows\system32\virus.exe")
  9. Replies
    3
    Views
    740

    Re: How do I save an object to the disk?

    Public Structure MyHashTableItem
    Public Sub WriteToBinaryFile(ByRef binWriter As System.IO.BinaryWriter)
    binWriter.Write(value)
    End Sub
    Public Sub ReadFromBinaryFile(ByRef...
  10. Replies
    2
    Views
    521

    Re: Background processing program

    Put this in both programs.


    Private ourMutex As System.Threading.Mutex

    Private Sub HandleFormLoad(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Dim...
  11. Re: Tell me what you think... Property Builder

    I think that is really nice. :thumb: Couple things though. I think you should have a property 'type'. Whether it is an 'instance' property or a 'shared' property. Then, for the access, you should...
  12. Thread: collections

    by Dynefire
    Replies
    11
    Views
    861

    Re: collections

    Yes, you can make a custom collection class. Collection classes just hold 'collections' of objects. How the data is stored is completely up to you. :)

    But say you wanted to implement your own...
  13. Thread: Java vs .net

    by Dynefire
    Replies
    27
    Views
    1,990

    Re: Java vs .net

    Here is how I see it. They all have upsides and downsides. And I will add unmanaged C++ into the comparison as I have used unmanaged C++ for many years.


    <PRE>
    Language Upsides ...
  14. Thread: Java vs .net

    by Dynefire
    Replies
    27
    Views
    1,990

    Re: Java vs .net

    Writing a device driver, opening alternate streams for a file (on NTFS) as every time I try to pass ":MyStreamName" after a filename to a .NET runtime file open routine, it tells me the path is...
  15. Replies
    4
    Views
    615

    Here, it's simple....

    Public Class clsTest

    Private _X As String

    Public Property X() As String
    Get
    Return Me._X
    End Get
    Set(ByVal Value As String)
    Me._X =...
  16. Replies
    9
    Views
    1,133

    Wrote this today.....

    I noticed this thread, and after reading through it and doing my own check, it seems as if the .NET RegistryKey class will not write DWORD values if passed a System.UInt32. So I wrote my own registry...
Results 1 to 16 of 17



Click Here to Expand Forum to Full Width