comp.os.mswindows.programmer.win32
  Home FAQ Contact Sign in
Your Ad Here
comp.os.mswindows.programmer.win32 only
 
Advanced search
May 2008
motuwethfrsasuw
   1234 18
567891011 19
12131415161718 20
19202122232425 21
262728293031  22
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007    
total
comp.os ... win32 Profile…
RELATED GROUPS

POPULAR GROUPS

more...


 Up
  Why do I have to specify the runtime type at compile time?         


Author: markscottwright
Date: May 2, 2008 13:28

Can anyone explain to me why the type of C runtime has to be specified
at compile time rather than at link time? I would expect that to be
determined by whether I linked to mscvrt.lib or libcmt.lib, but since
CL has those /M[TD] options my intuitions must be wrong. It's a major
pain in the ass, so I assume MS must have had a good reason - does
anyone know what it is?
1 Comment
  Need programmer         


Author: xt400
Date: May 2, 2008 07:19

Hi!

I'm learning C at school atm. I know just basics, but I need a program, that
randomly takes screenshots and uploads them via FTP. I want that program
reads one line from file (lets call it file.txt) and that line would define
image name. Ex:

File.txt contains one line: YourName=TestName

User runs program. Program will start taking randomly screenshot of his
screen, when user starts another process, calling 'process.exe'. After 2min,
it takes first screenshot. Program reads first line from file.txt and it
define screenshot file name. Then it uploads file to
'ftp://ftpaccount.host.com/images/' with username 'ftpaccound' and pass
'password'.
Then, after 3 min, it takes another screenshot etc.

When I go to my ftp, and open folder 'images', Ill find few images. They are
named 'TestName.0001.jpg', 'TestName.0002.jpg' etc.
Show full article (2.75Kb)
2 Comments
Your Ad Here
  adding button using win32 api and retrieving using .Net         


Author: vidishasharma
Date: May 2, 2008 06:04

I have added a win32 api button in reading pane using
_childwindow = CreateWindowEx(WS_EX_LEFT, "BUTTON", "Childwindow",
WS_CHILD | WS_VISIBLE, 750,60, 20, 20,
_windowLike, IntPtr.Zero , IntPtr.Zero,IntPtr.Zero );

I was very much able to do that

now I tried to get the control using following lines of code however
Control b = Control.FromHandle(_childwindow);

however I get the cotrol as null. I read it that "FromHandle only
works for HWNDs that were directly created by a Windows Forms control
or form." If that is true how can I get this button control in my c#.
I want to attach a click event to this control.

Please help.
1 Comment