User Profile

Collapse

Profile Sidebar

Collapse
Kapps
Kapps
Last Activity: Apr 25 '09, 06:05 AM
Joined: Aug 6 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Kapps
    replied to C#-FormApp: COMException Error #80040112.
    in .NET
    I'm not sure how I would go about doing that.
    The person on Vista tried running as Administrator, and the person on XP also has administrative privileges. The one who could run it did nothing special, and was also running it on XP.
    See more | Go to post

    Leave a comment:


  • Kapps
    replied to substring numeric value of a string
    in .NET
    One potential way would be to go through each char in the string, and check if it's numeric. If it is, add it on to a temporary string, which is then returned. I'm not sure how efficient this is however.
    See more | Go to post

    Leave a comment:


  • Kapps
    replied to C#-FormApp: COMException Error #80040112.
    in .NET
    One thing which was occurring before is something that said MSWinsockLib is an interop which requires full trust in a warning. I got rid of this by adding [assembly: AllowPartiallyT rustedCallers()] onto my main form, but it did not solve this issue.

    Any suggestions would be appreciated.
    See more | Go to post

    Leave a comment:


  • Kapps
    replied to C#-FormApp: COMException Error #80040112.
    in .NET
    That's possible, but extremely unlikely. One of the users who was previously able to run my game (1 can, 1 never could, 1 could and now can't) no longer can not, and he didn't make any changes such as uninstalling VB.
    See more | Go to post

    Leave a comment:


  • Kapps
    replied to Deploy query
    in .NET
    There are many reasons for this. For example, certain references will require the DLL and will check for the DLL in the folder of the application itself. Because you are not sending the DLL, it will fail. Perhaps you are trying to load a file/image from the folder upon startup? This will cause it to fail too, as you are only sending the .exe. Most likely, you are missing the .DLL's.
    See more | Go to post

    Leave a comment:


  • Kapps
    replied to Form not unloading..
    ...
    You're making a program, which you want hidden from the user and run as a service, that logs all keypresses the user inputs, and makes screenshots of whatever they're doing?

    We call that illegal.
    See more | Go to post

    Leave a comment:


  • Kapps
    replied to C#-FormApp: COMException Error #80040112.
    in .NET
    When I was starting this project, I didn't really intend for it to escalate into anything. I never made anything networked in C# (having only used VB6 previously), and nor did I ever make anything even remotely complicated in C#. The idea was just a simple little multiple user chat room, and I didn't understand Sockets at all (I still don't understand anything such as delegates/Asynchronous events/callbacks, as I didn't research them yet since I...
    See more | Go to post

    Leave a comment:


  • Kapps
    replied to C#-FormApp: COMException Error #80040112.
    in .NET
    I'm unable to change this as far as I know. For my reference to it, I just goto Add Reference, COM, Microsoft WinSock Control. If I look at the path, it says C:\Windows\Syst em32\MSWINSCK.o cx. After it's added, the path in my References shows the one referenced from my projects folder.

    Also, when I try setting Isolated to true, I get 6 warnings like:
    Warning 2 Problem isolating COM reference 'MSWinsockLib': Registry key 'HKEY_CLASSES_R OOT\CLSID\{248d d896-bb45-11cf-9abc-0080c7e7b78d}\I mplemented...
    See more | Go to post

    Leave a comment:


  • Kapps
    replied to C#-FormApp: COMException Error #80040112.
    in .NET
    Well, the .DLL file itself is included with my project, as it is set to Copy Local. Is there something else that I need to do with this?
    In my project is included Interop.MSWinso ckLib.dll. The project references MSWinsockLib, which if I look at the Path of this reference, is set to my project folder + Interop.MSWinso ckLib.dll.

    Am I just going about this the wrong way, or doing something horribly wrong?
    See more | Go to post

    Leave a comment:


  • Kapps
    replied to Resizing Form and Controls
    in .NET
    One approach to this is to check out Screen.PrimaryS creen.Bounds.He ight/Width. This will show you the total area, minus the task bar, of your monitor (resolution), or if you want just the form, you could just check out Height/Width. Upon resizing, you would have to check what the current height and width is, and then would have to just specify a constant value for the portion of the screen you want it to take, and find an event that's called every...
    See more | Go to post

    Leave a comment:


  • Kapps
    replied to C#-FormApp: COMException Error #80040112.
    in .NET
    Yes, that is part of what the problem is. But I did include the MSWINSCK.ocx as part of my project, which should be what is needed for the Winsock DLL. I also have the DLL set to Copy Local, and it is included with the project. I also tried having the person manually register the DLL, but none of these worked however.

    Thanks for your help though.
    See more | Go to post

    Leave a comment:


  • Kapps
    replied to C#-FormApp: COMException Error #80040112.
    in .NET
    Also, if at all possible, I would like to avoid using the Publish part of .NET, and remove the need for an installer.
    See more | Go to post

    Leave a comment:


  • Kapps
    replied to Working out if my form has focus
    in .NET
    I believe that you could use the LostFocus and GotFocus events on your form to simply change a boolean variable of something such as HasFocus. I believe that those are still called even if you have TopMost set.
    See more | Go to post

    Leave a comment:


  • Kapps
    started a topic C#-FormApp: COMException Error #80040112.
    in .NET

    C#-FormApp: COMException Error #80040112.

    Hi,

    I'm having a problem with my program not being able to run on certain computers. They have the basics, such as the .Net Frameworks. Upon trying to run the program, it gives the error:
    Code:
    [Window Title] 
    Microsoft Windows 
     
    [Main Instruction] 
    EQ Client.exe has stopped working 
     
    [Content] 
    Windows can check online for a solution to the problem. 
     
    [V] View
    ...
    See more | Go to post

  • I solved my problem. :)

    Although I had the DLL do the actual saving and loading, when I was referencing the classes (newBoard, newSquare, newPlayer), I was referencing them directly from the project itself, rather than from the DLL.
    Eg)
    newPlayer Player = new newPlayer(); instead of
    MapControl.newP layer Player = new MapControl.newP layer();
    If anyone else has this problem, you can either find and replace...
    See more | Go to post

    Leave a comment:


  • Kapps
    started a topic C#-App: Deserialization from different projects.
    in .NET

    C#-App: Deserialization from different projects.

    Hi,

    I was wondering how I would go about deserializing a file that was serialized from a different project. I've tried a couple things, but I can't really seem to figure it out. When looking it up, it seemed like it would be solved by just including a class project that did the actual serializing and deserializing, but when I tried this, I still couldn't get it to work. I created a DLL that was referenced by both of my projects, the...
    See more | Go to post
No activity results to display
Show More
Working...