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
M

Mark Salsbery

@Mark Salsbery
About
Posts
10.5k
Topics
63
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • What is your C64?
    M Mark Salsbery

    Timex Sinclair 1000 1982 Z80 microprocessor, enthusiast magazines...learned assembly language (entered one byte at a time), tinkered with wire wrapped circuits, rewired war surplus full size keyboards, all kinds of fun projects...great times!

    Mark Salsbery :java:

    The Lounge question hardware learning

  • Silverlight Status
    M Mark Salsbery

    HTML5 and javascript have replaced Silverlight as a cross-browser cross-platform web solution. I was actively involved in its development (as much as I could be) until it was killed off. No more cross-browser plugin technologies, didn't work on mobile devices already, etc. were main reasons, so I wouldn't recommend it there.

    Mark Salsbery :java:

    The Lounge question asp-net data-structures architecture announcement

  • Animation for an Agent in C#
    M Mark Salsbery

    Sadly, (s)he passed away several years ago...[^] :((

    Mark Salsbery :java:

    C# help csharp agentic-ai question

  • mixed types are not supported
    M Mark Salsbery

    Just a guess, something like...

    class A (){};

    ref class B()
    {
    public:
    IntPtr APtr;
    }

    B ^b = gcnew B();
    b->APtr = (IntPtr)new A();
    A *a = (A*)b->APtr;

    Mark Salsbery :java:

    Managed C++/CLI c++ help question

  • mixed types are not supported
    M Mark Salsbery

    You could store a pointer to an "A" object in an IntPtr[^].

    Mark Salsbery :java:

    Managed C++/CLI c++ help question

  • thread resume with out using sleep method
    M Mark Salsbery

    Another thread would have to resume a suspended thread. Regardless, you shouldn't be using those methods anyway - they aren't only deprecated, they're marked obsolete. What are you trying to do? Surely you can use proper synchronization objects?

    Mark Salsbery :java:

    C# csharp linq help career

  • silverlight version
    M Mark Salsbery

    Same reply as here[^]. The Silverlight 4 Tools for Visual Studio 2010 should add that option to Silverlight project properties.

    Mark Salsbery :java:

    WPF question announcement

  • How i Can open my c# form only automatically to user when user open windows.
    M Mark Salsbery

    Services shouldn't be interacting with the desktop, so not a great idea for a "form" app :)

    Mark Salsbery :java:

    C# csharp

  • Maximum number of columns for a ListView control
    M Mark Salsbery

    32768 / 140 is ~234...looks like exceeding 32768 pixels IS a bad idea[^] :)

    Mark Salsbery :java:

    C# question

  • Maximum number of columns for a ListView control
    M Mark Salsbery

    The docs[^] state "Unexpected behavior can result when the combined width of all columns exceeds 32,768 pixels." Could that be an issue?

    Mark Salsbery :java:

    C# question

  • How to Customize SDK:Tab Control
    M Mark Salsbery

    Are you using TabControl.ItemTemplate to specify a template for the headers? Have you looked at the default template to see what you're working with? TabControl Styles and Templates[^]

    Mark Salsbery :java:

    WPF help tutorial

  • silverlight web site performance
    M Mark Salsbery

    Yes, your XAP file was pretty big but still should load way faster. Silverlight has nothing to do with how fast your XAP file is delivered - that's up to the server and yours seems very very slow.

    Mark Salsbery :java:

    WPF csharp wpf com design performance

  • How to convert a "void*" to managed class
    M Mark Salsbery

    Maybe something like...

    System::Runtime::InteropServices::GCHandle gch = System::Runtime::InteropServices::GCHandle::FromIntPtr((System::IntPtr)pClass);
    A ^pA = (A ^)gch.Target;

    Of course, this assumes pClass was obtained from an IntPtr obtained from an actual managed reference to an "A" object...

    Mark Salsbery :java:

    Managed C++/CLI question help tutorial

  • silverlight web site performance
    M Mark Salsbery

    Has nothing to do with Silverlight.. What's going on while that battery progress indicator is sitting there for an excruciating amount of time? :)

    Mark Salsbery :java:

    WPF csharp wpf com design performance

  • How to remove the border when mouse enter a listboxitem
    M Mark Salsbery

    ...and this may help you out... ListBox Styles and Templates[^]

    Mark Salsbery :java:

    WPF tutorial question

  • Shutdown and Logoff System Events and Windows Services
    M Mark Salsbery

    You should still be able to debug it, but that's a topic for Visual Studio. Do you get the log entry "System Logoff or System Shutdown"? If so, write some log entries in your email code to see if some function is failing.

    Mark Salsbery :java:

    C# help com question

  • Shutdown and Logoff System Events and Windows Services
    M Mark Salsbery

    Can you attach a debugger or at least write some log entries so you can debug what's occurring?

    Mark Salsbery :java:

    C# help com question

  • Overlapped IO sockets sending and receiving at the same time
    M Mark Salsbery

    I personally don't like the idea of waiting on OVERLAPPED handles. I'd much rather not introduce more (or any) synchronization objects to the IOCP handler threads but instead let the IOCP do its magic with all threads waiting on GetQueuedCompletionStatus. I take advantage of the fact that the same overlapped structure pointer you pass to an overlapped function will be returned to you so I use extended OVERLAPPED structures like the one in this article[^]

    typedef struct _OVERLAPPEDPLUS {
    OVERLAPPED ol;
    SOCKET s, sclient;
    int OpCode;
    WSABUF wbuf;
    DWORD dwBytes, dwFlags;
    // other useful information
    } OVERLAPPEDPLUS;

    The opcode can be used to indicate read or write (and many other things including non-I/O tasks you want to queue on the IOCP). Also gives you a handy place to keep buffers associated with the operation.

    Mark Salsbery :java:

    C / C++ / MFC question

  • Get RadioButtons from RadioButtonGroups and vice versa
    M Mark Salsbery

    Iterate through the Panel.Children collection and check each elements type. If it's one of your radio buttons then check its GroupName property. VisualTreeHelper.GetChild[^] can help...

    Mark Salsbery :java:

    WPF csharp wpf collaboration

  • How to trigger the Property Change from WCF service in Silverlight
    M Mark Salsbery

    Maybe the update source trigger...

    Text="{Binding CustomerSurname,Mode=TwoWay,UpdateSourceTrigger="PropertyChanged",ValidatesOnExceptions=True,NotifyOnValidationError=True}"

    Mark Salsbery :java:

    WCF and WF csharp database wcf asp-net
  • Login

  • Don't have an account? Register

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