LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-09-2006, 07:52 PM   #1
alagenchev
Member
 
Registered: Oct 2004
Location: USA
Distribution: Slackware, Debian, Ubuntu
Posts: 223

Rep: Reputation: 30
C#, FindWindow problem


Hello Guys,

This is not exactly a Linux Programming Question, but I have been beating my head on this all day, and I don't know who else to ask.
I am trying to use window messaging for InterProcess communication between two processes that I created. I am trying to find the handle for the process that I am trying to call, and I use FindWindow. Inside FindWindow, I am supposed to have lpClassName. I wrote what I thought is the class name for the called process, but the thing doesn't get the handle, it always returns 0, which is always the wrong handle. What do I need to put for lpClassName. Thanks for your help
 
Old 02-14-2006, 12:21 PM   #2
tekkieman
Member
 
Registered: Dec 2004
Location: Northern CA
Distribution: Mepis 6.5
Posts: 123

Rep: Reputation: 15
If you're using Visual Studio, you can use Spy++ to show you your ClassName. Here's a link to a site showing a project that does what you're trying to do: http://www.codeproject.com/csharp/cskillapp.asp
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FindWindow equivalent OneMan_aus Programming 3 09-21-2004 05:23 AM
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 07:45 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration