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
B

Bog

@Bog
About
Posts
77
Topics
35
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Interfacing with webcams
    B Bog

    Just for fun I'd like to be able to get an interface with a pc cam or a digital camera hooked up through usb. Like, for example I could write an app that does time-lapse photography on my cactus (which does move, btw), or claymation maybe. Like, I could save one frame every 10 minutes. Or of course for doing webcams.. I know there's software that comes with some pc cams that does some of that already, but, being a programmer, I'd like to get my hooks into it myself. Does directx do this, maybe? I'm worried that each cam will be non-standard about it's protocol, etc... anyone know? thanks "Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read." -Groucho Marx

    C# learning graphics game-dev tutorial question

  • survey on books
    B Bog

    whatever you do, avoid Windows Forms Programming with C# by Erik Brown Its one of those books where every example builds on the previous example's code. Horrible, horrible idea. It's like the opposite of the perl cookbook. "Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read." -Groucho Marx

    C# csharp asp-net dotnet question discussion

  • Unregister an assembly?
    B Bog

    thanks, Ok, I knew this already actually, but I was hoping I could register an assembly from within dot net, like with the RegistrationServices class? Are you saying that I need to include regasm.exe in my installer for the application when it's deployed? It's a shame, tha seems kind of hackish.. "Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read." -Groucho Marx

    C# csharp help tutorial question learning

  • Unregister an assembly?
    B Bog

    I want to unregister an assembly from within a csharp app. Basically all I want to is the exact same thing as: regasm.exe /unregister (path to assembly) only from within my app. (The assembly I'm unregistering is not the app running it, it's a different assembly.) Also, I want to know how to register it again later, same as: regasm.exe /codebase (pathtoassembly) (I think what I'm stuck on is creating an "Assembly" class instance, since there's no constructor that just takes a file path as an arg. ) thanks "Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read." -Groucho Marx

    C# csharp help tutorial question learning

  • Check if Remoting server is running?
    B Bog

    Tathan thanks for your response, I am using remoting to communicate between my BHO and a C# application. The BHO's are loaded by each instance of Internet Explorer, each seperate from one another, and relay information to the application. The nature of a BHO is that it runs in the same process as the IE instance, and therefore isn't in the same CLR as the application (each BHO is in it's own CLR instance). I looked at the ServiceController class, but it seems to be for the purposes of starting and stoppig a windows service. I don't have any services- it's all apps (well and BHO's). (Also btw, a service could be running but have it's remoting server turned off...) Am I missing something? thanks bog "Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read." -Groucho Marx

    C# question sysadmin learning

  • Check if Remoting server is running?
    B Bog

    I have two apps on the same machine, one has to check and see if the other's Remoting server is running, beofore it tries to connect. If it's not running, then the (client) app should launch the other app, and wait for it to finish loading, and then try again to connect. Two questions: 1. How do I check to see if it's running or not? I can just try and catch an exception but I'm wondering if there's a better way. 2. How do you recommend I wait until it starts (with a timeout so I don't wait forever)? thank you "Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read." -Groucho Marx

    C# question sysadmin learning

  • Send an email from a Form?
    B Bog

    Well, thanks but that won't do. I have verizon, for examle, and Verizon doesn't let you send email where the From address is anything besides the email address verizon gives you. If you want to send email From any other address you have to use a different SMTP server. Also where could I find out what the user's ISP's SMTP server is? Like if they don't have Outlook installed, or it's not set up (wrong or missing SMTP for example). thanks anyway for your response. "Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read." -Groucho Marx

    C# question sysadmin help learning

  • Send an email from a Form?
    B Bog

    This is a new one- I haven't seen anyone mention this. If the use doesn't have outlook installed, then obviously this won't work. So I'm still probably better off installing an SMTP server on the users local machine instead. Hey, if the user has Outlook installed, but the user didn't specify an SMTP server for outlook (or specified an incorrect one), then this won't work right? Or is it like using the underlying internal SMTP server of outlook itself or something? See, like me for example- I have outlook installed but I never use it- I use Eudora, so I never told Outlook what SMTP server to use. thanks for your response, "Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read." -Groucho Marx

    C# question sysadmin help learning

  • Send an email from a Form?
    B Bog

    Yea this is exactly what I did, and I got the error I described. But thanks for your response anyway. "Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read." -Groucho Marx

    C# question sysadmin help learning

  • Send an email from a Form?
    B Bog

    Hi this is kind of an embarassing question- do I actually need to run an SMTP server to send an email? What I want to do is have my desktop windows app (Form) send an email when the user clicks a button. If the user installs my app, do I need to also install an SMTP sever on the user's local machine? I've read a lot about using the System.Web.Mail stuff. But I'm getting the "Could not access 'CDO.Message' object." error when I set SmtpMail.SmtpServer="localhost". I tried all the suggested fixes- I have Outlook installed, I'm using valid addresses for To and From, I tried setting SmtpMail.SmtpServer to "". Do I have to install an SMTP server on the user's machine in order to send an email? thanks "Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read." -Groucho Marx

    C# question sysadmin help learning

  • Get the current thread ID in c#?
    B Bog

    Hello, I have a c# assembly that gets called by unmanaged code (it gets called by Internet Explorer, like a plugin). What I want to know is, how do I get the thread ID of the current thread? If I use System.Threading.Thread.CurrentThread, I can only get the name. As I understand it, C# threads are not the same thing as old win32 threads. But since my C# assembly is being called by unmanaged code, it is definately running on one of those win32 threads, how do I get the thread ID? thank you "Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read." -Groucho Marx

    C# question csharp learning

  • Remoting between applications on the same machine
    B Bog

    Hi I have two .net applications running on the same PC. (its a long story.) I need to do a little bit of communication. I've read that Remoting is the way to do this, but all the examples for remoting involve three applications where one is a server, and tcp connections, and complicated stuff I don't need. Is there like a simpler thing I can do? "Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read." -Groucho Marx

    C# csharp sysadmin question learning

  • MIME filter
    B Bog

    Hello, has anyone ever created a MIME filter before (c# or otherwise)? I tried to make a mime filter for a content-type that I invented: "text/myml", and when I test it, my filter's Start() method get's called, but then nothing else happens. The behavior in the browser is that it just hangs until I click the stop button. Although, when I click the stop button, IE calls my mime filter's Abort and Terminate methods. Is there something special my MIME filter has to do in the Start method? All I have it doing right now is store m_Sink and m_pIncomingProt. Also when Start() is called, dwReserved.pProtocol comes in null. I don't know why but that seems like a bad thing? "Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read." -Groucho Marx

    C# csharp question learning

  • Convert WBMP to BMP?
    B Bog

    I need to convert WBMP (wireless bitmap) into regular bmp (or png or jpg), in my code. Anyone know any library that does that? thanks "Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read." -Groucho Marx

    C# graphics question learning

  • WebBrowser control bug- application wont die
    B Bog

    nevermind. :-O "Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read." -Groucho Marx

    C# help com performance learning

  • WebBrowser control bug- application wont die
    B Bog

    My message didn't show up on this board because of a bug or something so I'm posting again: If you put a WebBrowser control in a Form, and then put that Form inside another Form (set it's Parent to the other form and set TopLevel to false, which is perfectly legal according to the docs), then when you quit your application (close the outer Form), it will stay resident in memory and eat up 100% of CPU time. (You can see it doing this in the Task Manager). This is probably caused by that OLEinPlace stuff somehow but I don't know OLE so that's totally a guess. This is a HUGE problem for me!! X| X| X| "Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read." -Groucho Marx

    C# help com performance learning

  • Copy protection via internet
    B Bog

    just a test "Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read." -Groucho Marx

    C# learning question announcement career

  • WebBrowser bug- application won't die.
    B Bog

    If you put a WebBrowser control in a Form, and then put that Form inside another Form (set it's Parent to the other form and set TopLevel to false, which is perfectly legal according to the docs), then when you quit your application (close the outer Form), it will stay resident in memory and eat up 100% of CPU time. (You can see it doing this in the Task Manager). This is probably caused by that OLEinPlace stuff somehow but I don't know OLE so that's totally a guess. This is a HUGE problem for me. MASSIVE!! X| X| X| "Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read." -Groucho Marx

    C# help com performance learning

  • Can one thread see that the other one's dead?
    B Bog

    Thanks, it turns out that the worker thread is not my problem after all. My problem is much deeper and more anoying. So much so that I'll make a whole new post about it. thanks, "Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read." -Groucho Marx

    C# help question learning

  • Can one thread see that the other one's dead?
    B Bog

    I have two theads in my windows app- the main GUI thread, and a constantly listening worker which runs an infinite while(true) loop. The problem is, when I quit the app, the worker thread keeps running and sucks up 100% CPU time. So, I have the main gui thread set a bool variable to false when the app's window closes, and then in the loop for the worker, it listens for that and kills itself when it sees that the bool is false. That's all fine, but my fear is what if the main window of the app gets blown up, and it's "window closing" event never fires? Like, if the main window is closed because it throws some low level error or something. I've seen it happen already. In that case, the worker thread would never get the signal to die. Is there some other way to make the worker check on the existence of the gui thread? thanks "Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read." -Groucho Marx

    C# help question learning
  • Login

  • Don't have an account? Register

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