<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>C Board - Windows Programming</title>
		<link>http://cboard.cprogramming.com</link>
		<description>Questions specific to windows programming</description>
		<language>en</language>
		<lastBuildDate>Fri, 20 Nov 2009 22:32:12 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://cboard.cprogramming.com/images/misc/rss.jpg</url>
			<title>C Board - Windows Programming</title>
			<link>http://cboard.cprogramming.com</link>
		</image>
		<item>
			<title>AlphaBlend and BlendFunction - dynamic opacity</title>
			<link>http://cboard.cprogramming.com/windows-programming/121765-alphablend-blendfunction-dynamic-opacity.html</link>
			<pubDate>Thu, 19 Nov 2009 11:45:55 GMT</pubDate>
			<description><![CDATA[I've got the formula working and the debugger is showing that I have the correct values each time.  Trouble is, the transparency is not working. 
 
What I'm trying to do is get a color fade dependent on the current and maximum HP.  At 50% remaining HP, the text is yellow.  At 0% remaining HP, the...]]></description>
			<content:encoded><![CDATA[<div>I've got the formula working and the debugger is showing that I have the correct values each time.  Trouble is, the transparency is not working.<br />
<br />
What I'm trying to do is get a color fade dependent on the current and maximum HP.  At 50% remaining HP, the text is yellow.  At 0% remaining HP, the text is red.  For values between these, the text fades from red to yellow as HP increases (it's white above 50%).  To accomplish this, I have it so that the red text is drawn first.  The yellow text is drawn on top and it's the yellow text that has varying opacity.  Both versions of the text uses a 32-bit TGA image and a custom-made font of my own (which leaves out TrueType fonts).  I'm using AlphaBlend to do the drawing in all cases.  This means I need the &quot;BlendFunction&quot; struct, of which I have filled out.  The red text is drawn normally at full opacity.  The problem comes from the yellow text.  If I directly set the &quot;SourceConstantAlpha&quot; to 153 (to simulate 30% HP remaining), the text is still drawn as if it still was at 255.<br />
<br />
My question is, how do I get this fade effect without creating extra versions of the font for more colors?  A <a href="http://www.ulillillia.us/images/PlatformMastersScreenshot015.png" target="_blank">simulation screenshot</a> I made earlier shows what the effect should be like (note the bottom right corner).<br />
<br />
Edit:  never mind, I found the problem - it was a copy/paste mistake causing the text to yellow in both cases instead of a separate yellow and red one.  It's now working as I expected it.</div>

]]></content:encoded>
			<category domain="http://cboard.cprogramming.com/windows-programming/">Windows Programming</category>
			<dc:creator>ulillillia</dc:creator>
			<guid isPermaLink="true">http://cboard.cprogramming.com/windows-programming/121765-alphablend-blendfunction-dynamic-opacity.html</guid>
		</item>
		<item>
			<title>A way to automatically detect the base address of a PCI card</title>
			<link>http://cboard.cprogramming.com/windows-programming/121699-way-automatically-detect-base-address-pci-card.html</link>
			<pubDate>Tue, 17 Nov 2009 11:49:55 GMT</pubDate>
			<description>Hi guys, 
 
I have a program that interfaces with a PCI card and it works fine, except that the needed PCI base address either has to be hard-coded or entered by the user. Ideally I would prefer for the app to automatically detect the base address of the PCI card.  
 
Is there a way to do this?</description>
			<content:encoded><![CDATA[<div>Hi guys,<br />
<br />
I have a program that interfaces with a PCI card and it works fine, except that the needed PCI base address either has to be hard-coded or entered by the user. Ideally I would prefer for the app to automatically detect the base address of the PCI card. <br />
<br />
Is there a way to do this?</div>

]]></content:encoded>
			<category domain="http://cboard.cprogramming.com/windows-programming/">Windows Programming</category>
			<dc:creator>binaryboy</dc:creator>
			<guid isPermaLink="true">http://cboard.cprogramming.com/windows-programming/121699-way-automatically-detect-base-address-pci-card.html</guid>
		</item>
		<item>
			<title><![CDATA[Loading images that aren't BMP...]]></title>
			<link>http://cboard.cprogramming.com/windows-programming/121654-loading-images-arent-bmp.html</link>
			<pubDate>Sun, 15 Nov 2009 22:35:22 GMT</pubDate>
			<description><![CDATA[I'm looking for a way to load other image formats such as PNG, JPEG, DDS, etc, and use them like you can with BMP files (ie use with Win32 functions). For example, how could I load a PNG file into a HBITMAP structure? 
 
I have looked at libpng.org: top level (http://www.libpng.org), but that seems...]]></description>
			<content:encoded><![CDATA[<div>I'm looking for a way to load other image formats such as PNG, JPEG, DDS, etc, and use them like you can with BMP files (ie use with Win32 functions). For example, how could I load a PNG file into a HBITMAP structure?<br />
<br />
I have looked at <a href="http://www.libpng.org" target="_blank">libpng.org: top level</a>, but that seems to only do PNG files and I'm not sure if it can turn it into a HBITMAP. Anyone know anything about this?<br />
<br />
Thanks.</div>

]]></content:encoded>
			<category domain="http://cboard.cprogramming.com/windows-programming/">Windows Programming</category>
			<dc:creator>yaya</dc:creator>
			<guid isPermaLink="true">http://cboard.cprogramming.com/windows-programming/121654-loading-images-arent-bmp.html</guid>
		</item>
		<item>
			<title>WINAPI thread problem</title>
			<link>http://cboard.cprogramming.com/windows-programming/121579-winapi-thread-problem.html</link>
			<pubDate>Fri, 13 Nov 2009 16:23:16 GMT</pubDate>
			<description><![CDATA[Hey there, 
             I've been working on this project for a long time now and can't seem to find how this is done. 
 
c++ language under windows. 
 
I created 4 threads. Inside one of the threads I want to call another thread funtion. How is this done?? Cause it does not seem to work like...]]></description>
			<content:encoded><![CDATA[<div>Hey there,<br />
             I've been working on this project for a long time now and can't seem to find how this is done.<br />
<br />
c++ language under windows.<br />
<br />
I created 4 threads. Inside one of the threads I want to call another thread funtion. How is this done?? Cause it does not seem to work like other threads.<br />
<br />
Thanks so much in advance.<br />
<br />
 <div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">DWORD WINAPI R1 (LPVOID)<br />
{<br />
&nbsp; &nbsp; &nbsp; while(TestAndSet(&amp;lock))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while(lock==true);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; readcount++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; &quot;R1 in CS.&quot; &lt;&lt; endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; readcount &lt;&lt; &quot;Readers in CS.&quot; &lt;&lt; endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; writecount &lt;&lt; &quot;Wrtiers in CS.&quot; &lt;&lt; endl;&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  //want to call a thread here. example R#2.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  readcount--;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lock=false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return (DWORD) 0;&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://cboard.cprogramming.com/windows-programming/">Windows Programming</category>
			<dc:creator>samguddy</dc:creator>
			<guid isPermaLink="true">http://cboard.cprogramming.com/windows-programming/121579-winapi-thread-problem.html</guid>
		</item>
		<item>
			<title>Simple File Write</title>
			<link>http://cboard.cprogramming.com/windows-programming/121546-simple-file-write.html</link>
			<pubDate>Thu, 12 Nov 2009 17:47:11 GMT</pubDate>
			<description><![CDATA[The Following code is used to keep a log about my process' activity. The problem is that it the debug output file gets the wrong name (unreadable characters). I can't figure out where my pointers go wild. Sorry for such a silly problem :D. 
 
Code: 
--------- 
#include "includes.h" 
#include...]]></description>
			<content:encoded><![CDATA[<div>The Following code is used to keep a log about my process' activity. The problem is that it the debug output file gets the wrong name (unreadable characters). I can't figure out where my pointers go wild. Sorry for such a silly problem :D.<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">#include &quot;includes.h&quot;<br />
#include &quot;externs.h&quot;<br />
<br />
<br />
HANDLE hDebug;<br />
HANDLE mDebug;<br />
<br />
<br />
void AddLog(char *buffer)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; #ifdef DEBUG<br />
&nbsp; &nbsp; &nbsp; &nbsp; DWORD dwBytesWritten=0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; DWORD dwBytesToWrite=0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; dwBytesToWrite =(DWORD) strlen(buffer);<br />
&nbsp; &nbsp; &nbsp; &nbsp; if( hDebug == INVALID_HANDLE_VALUE || hDebug == NULL )<br />
&nbsp; &nbsp; &nbsp; &nbsp; return;<br />
&nbsp; &nbsp; &nbsp; &nbsp; WaitForSingleObject(mDebug, INFINITE);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; while(dwBytesWritten &lt; dwBytesToWrite)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WriteFile(hDebug, buffer+dwBytesWritten, dwBytesToWrite - dwBytesWritten, &amp;dwBytesWritten,NULL);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; ReleaseMutex(mDebug);<br />
&nbsp; &nbsp; &nbsp; &nbsp; #endif<br />
}<br />
<br />
void StartDebug()<br />
{<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; wchar_t FileDebug[]={'d','e','b','u','g','.','e','t','h'};<br />
&nbsp; &nbsp; &nbsp; &nbsp; mDebug = CreateMutex(NULL, false, NULL);<br />
&nbsp; &nbsp; &nbsp; &nbsp; hDebug = CreateFile( (LPWSTR) FileDebug,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GENERIC_WRITE,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NULL,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CREATE_ALWAYS,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FILE_ATTRIBUTE_NORMAL,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NULL<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; );<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
}</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://cboard.cprogramming.com/windows-programming/">Windows Programming</category>
			<dc:creator>like_no_other</dc:creator>
			<guid isPermaLink="true">http://cboard.cprogramming.com/windows-programming/121546-simple-file-write.html</guid>
		</item>
		<item>
			<title>Win32 API and sockets question.</title>
			<link>http://cboard.cprogramming.com/windows-programming/121489-win32-api-sockets-question.html</link>
			<pubDate>Wed, 11 Nov 2009 14:39:21 GMT</pubDate>
			<description><![CDATA[Hi all! 
 
I'm trying to get two values for my app: 
 
1) ISPN 
2) DNS server from my ISP 
 
is it possible with sockets? I already have the hostname and the IP: 
 
Code:]]></description>
			<content:encoded><![CDATA[<div>Hi all!<br />
<br />
I'm trying to get two values for my app:<br />
<br />
1) ISPN<br />
2) DNS server from my ISP<br />
<br />
is it possible with sockets? I already have the hostname and the IP:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">char hostname[128];<br />
HOSTENT *lpHost;<br />
&nbsp;IN_ADDR inaddr;<br />
&nbsp;// hostname<br />
gethostname (hostname, sizeof hostname);<br />
SetDlgItemText(hwndDlg, IDC_EDIT1, hostname);<br />
// ip<br />
lpHost = gethostbyname(hostname);<br />
memcpy(&amp;inaddr, lpHost-&gt;h_addr_list[0], 4);<br />
SetDlgItemText(hwndDlg, IDC_EDIT2, inet_ntoa(inaddr));</code><hr />
</div>Thanks for the tips.</div>

]]></content:encoded>
			<category domain="http://cboard.cprogramming.com/windows-programming/">Windows Programming</category>
			<dc:creator>Joelito</dc:creator>
			<guid isPermaLink="true">http://cboard.cprogramming.com/windows-programming/121489-win32-api-sockets-question.html</guid>
		</item>
		<item>
			<title>Task Scheduling every two days but..</title>
			<link>http://cboard.cprogramming.com/windows-programming/121369-task-scheduling-every-two-days-but.html</link>
			<pubDate>Sat, 07 Nov 2009 11:41:35 GMT</pubDate>
			<description>Hello,  
 
IŽd like to schedule a task (through a script) such that it executes an application every two days. However I cannot guarantee that the computer will be on every two days at a specific time.  
Can I not somehow specify that it should run every 2 days as soon as possible, and not at a...</description>
			<content:encoded><![CDATA[<div>Hello, <br />
<br />
IŽd like to schedule a task (through a script) such that it executes an application every two days. However I cannot guarantee that the computer will be on every two days at a specific time. <br />
Can I not somehow specify that it should run every 2 days as soon as possible, and not at a specific time?</div>

]]></content:encoded>
			<category domain="http://cboard.cprogramming.com/windows-programming/">Windows Programming</category>
			<dc:creator>simpatico_qa</dc:creator>
			<guid isPermaLink="true">http://cboard.cprogramming.com/windows-programming/121369-task-scheduling-every-two-days-but.html</guid>
		</item>
		<item>
			<title>export table</title>
			<link>http://cboard.cprogramming.com/windows-programming/121348-export-table.html</link>
			<pubDate>Fri, 06 Nov 2009 12:50:14 GMT</pubDate>
			<description><![CDATA[hey i m confused little bit abt export table's in dll's like what i don't get i read that everything relys on kernel32.dll every dll so that means that every dll doesn't got export's only kernel32.dll got exports? for exampe i m calling printf which is in msvrt.dll i noticed that my import there...]]></description>
			<content:encoded><![CDATA[<div>hey i m confused little bit abt export table's in dll's like what i don't get i read that everything relys on kernel32.dll every dll so that means that every dll doesn't got export's only kernel32.dll got exports? for exampe i m calling printf which is in msvrt.dll i noticed that my import there are also calling to kernel32.dll but why would my function also call msvrt.dll if only kernel32.dll has export table ?</div>

]]></content:encoded>
			<category domain="http://cboard.cprogramming.com/windows-programming/">Windows Programming</category>
			<dc:creator>MrNoobah</dc:creator>
			<guid isPermaLink="true">http://cboard.cprogramming.com/windows-programming/121348-export-table.html</guid>
		</item>
		<item>
			<title>How to create and manipulate Terabyte size Arrays with Win32API</title>
			<link>http://cboard.cprogramming.com/windows-programming/121304-how-create-manipulate-terabyte-size-arrays-win32api.html</link>
			<pubDate>Thu, 05 Nov 2009 06:05:38 GMT</pubDate>
			<description>If you are like me, working on serious scientifc projects, then the chances are you are required to deal with huge data, data that does not fit into your tiny 2 or 4Gb RAM. If you are looking for a way of creating and accessing very large arrays, arrays that can handle content in the order of Tera...</description>
			<content:encoded><![CDATA[<div>If you are like me, working on serious scientifc projects, then the chances are you are required to deal with huge data, data that does not fit into your tiny 2 or 4Gb RAM. If you are looking for a way of creating and accessing very large arrays, arrays that can handle content in the order of Tera Bytes, then probably you might find a technique I have developed sometime back, described at <a href="http://gpalem.web.officelive.com/TerabyteArrays.html" target="_blank">Creating very large arrays (Terabyte size arrays) with Win32 File mapping</a>, useful.<br />
<br />
Its a simple Win32 File mapping concept, but very powerful when used in the right way with C++ templates. File mapping is the association of a file's contents with a portion of the virtual address space of a process. It allows the process to work efficiently with a large data files without having to map the whole file into memory. Processes read from and write to the file view using pointers, just as they would with dynamically allocated memory. This improves efficiency because the file resides on disk, but the file view resides in memory, the page-in and page-out happening seamlessly behind the scenes.<br />
<br />
In a typical Win32 environment, applications have 4 gigabyte (GB) of virtual address space available. The virtual address space is divided so that 2 GB is available to the application and the other 2 GB is available only to the system. The size of a file mapping object that is backed by a named file is limited by disk space. The size of a file view is limited to the largest available contiguous block of unreserved virtual memory. This is at most 2 GB minus the virtual memory already reserved by the process.<br />
<br />
To create a huge array, create multiple temporary files, each of _MaxFileSize, _MaxFileSize being any convenient maximum file size limit such as 2GB, and access their content by mapping and unmapping portions of them to the main memory as required. Creating the temporary files and mapping/unmapping them can be taken care by the CreateFile, CreateFileMapping, MapViewOfFile, and UnmapViewOfFile API. A simple implementation of this and sample code can be found at: <a href="http://gpalem.web.officelive.com/TerabyteArrays.html" target="_blank">Creating very large arrays (Terabyte size arrays) with Win32 File mapping</a><br />
<br />
Gopalakrishna Palem,<br />
Creator of <a href="http://musicnote.sourceforge.net" target="_blank">CFugue</a>, the world's first and only high level Music Note Programming Library for C/C++<br />
<a href="http://gpalem.web.officelive.com/" target="_blank">Palem Gopalakrishna's Homepage</a></div>

]]></content:encoded>
			<category domain="http://cboard.cprogramming.com/windows-programming/">Windows Programming</category>
			<dc:creator>KrishnaPG</dc:creator>
			<guid isPermaLink="true">http://cboard.cprogramming.com/windows-programming/121304-how-create-manipulate-terabyte-size-arrays-win32api.html</guid>
		</item>
		<item>
			<title>Signal in windows</title>
			<link>http://cboard.cprogramming.com/windows-programming/121275-signal-windows.html</link>
			<pubDate>Wed, 04 Nov 2009 12:38:28 GMT</pubDate>
			<description>Hi,  
i a writing one socket program and in my program I am creating child processes and executing different applications.  
 
If any process killed, i need to send signal to parent process like unix. 
 
Is it possible in windows. 
 
If possible give some examples. 
 
Also, in windows we can use...</description>
			<content:encoded><![CDATA[<div>Hi, <br />
i a writing one socket program and in my program I am creating child processes and executing different applications. <br />
<br />
If any process killed, i need to send signal to parent process like unix.<br />
<br />
Is it possible in windows.<br />
<br />
If possible give some examples.<br />
<br />
Also, in windows we can use createProcess() like fork() in unix.<br />
<br />
but, is it correct to send info to parent process like unix.<br />
<br />
thanks.</div>

]]></content:encoded>
			<category domain="http://cboard.cprogramming.com/windows-programming/">Windows Programming</category>
			<dc:creator>kalamram</dc:creator>
			<guid isPermaLink="true">http://cboard.cprogramming.com/windows-programming/121275-signal-windows.html</guid>
		</item>
		<item>
			<title>Help with F#</title>
			<link>http://cboard.cprogramming.com/windows-programming/121239-help-fsharp.html</link>
			<pubDate>Tue, 03 Nov 2009 03:06:16 GMT</pubDate>
			<description>Hello,  
 
Im just starting a class about F# in school and was wondering if i can use microsoft express to start, like a F# project or file? I have seen on the www that you can do it with visual studio pro edition but that i dont have. 
 
The express programs i have is C#, C++ and Visual Web. 
 
Me...</description>
			<content:encoded><![CDATA[<div>Hello, <br />
<br />
Im just starting a class about F# in school and was wondering if i can use microsoft express to start, like a F# project or file? I have seen on the www that you can do it with visual studio pro edition but that i dont have.<br />
<br />
The express programs i have is C#, C++ and Visual Web.<br />
<br />
Me teacher couldnt answer this question because he only run linux....<br />
<br />
Thanks!</div>

]]></content:encoded>
			<category domain="http://cboard.cprogramming.com/windows-programming/">Windows Programming</category>
			<dc:creator>ingenting</dc:creator>
			<guid isPermaLink="true">http://cboard.cprogramming.com/windows-programming/121239-help-fsharp.html</guid>
		</item>
		<item>
			<title>Graphics under Windows in C.</title>
			<link>http://cboard.cprogramming.com/windows-programming/121222-graphics-under-windows-c.html</link>
			<pubDate>Mon, 02 Nov 2009 13:57:09 GMT</pubDate>
			<description><![CDATA[Here's a simple program which shows how to animate, or create an animation in C. 
 
A file has been attached.Attachment 9422 (http://cboard.cprogramming.com/attachments/windows-programming/9422-graphics-under-windows-c-a_car-c)]]></description>
			<content:encoded><![CDATA[<div>Here's a simple program which shows how to animate, or create an animation in C.<br />
<br />
A file has been attached.<a href="http://cboard.cprogramming.com/attachments/windows-programming/9422-graphics-under-windows-c-a_car-c" target="_blank">Attachment 9422</a></div>


	<br />
	<div style="padding:1px">

	

	

	

	
		<fieldset class="fieldset">
			<legend>Attached Files</legend>
			<table cellpadding="0" cellspacing="3" border="0">
			<tr>
	<td><img class="inlineimg" src="http://cboard.cprogramming.com/images/attach/c.gif" alt="File Type: c" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
	<td><a href="http://cboard.cprogramming.com/attachments/windows-programming/9422d1257170162-graphics-under-windows-c-a_car-c">A_CAR.C</a> (1.1 KB)</td>
</tr>
			</table>
		</fieldset>
	

	</div>
]]></content:encoded>
			<category domain="http://cboard.cprogramming.com/windows-programming/">Windows Programming</category>
			<dc:creator>yugal0007</dc:creator>
			<guid isPermaLink="true">http://cboard.cprogramming.com/windows-programming/121222-graphics-under-windows-c.html</guid>
		</item>
		<item>
			<title>How to play an audio file in c program?</title>
			<link>http://cboard.cprogramming.com/windows-programming/121220-how-play-audio-file-c-program.html</link>
			<pubDate>Mon, 02 Nov 2009 13:46:42 GMT</pubDate>
			<description><![CDATA[Please can any one tell me how to open an audio file in C Program? 
I came across a function "fopen", but i think its for opening text file. If i m wrong with that, can anyone tell me how to open audio file using "fopen".]]></description>
			<content:encoded><![CDATA[<div>Please can any one tell me how to open an audio file in C Program?<br />
I came across a function &quot;fopen&quot;, but i think its for opening text file. If i m wrong with that, can anyone tell me how to open audio file using &quot;fopen&quot;.</div>

]]></content:encoded>
			<category domain="http://cboard.cprogramming.com/windows-programming/">Windows Programming</category>
			<dc:creator>yugal0007</dc:creator>
			<guid isPermaLink="true">http://cboard.cprogramming.com/windows-programming/121220-how-play-audio-file-c-program.html</guid>
		</item>
		<item>
			<title>OutText - absolutelly newbie...</title>
			<link>http://cboard.cprogramming.com/windows-programming/121115-outtext-absolutelly-newbie.html</link>
			<pubDate>Thu, 29 Oct 2009 22:54:47 GMT</pubDate>
			<description><![CDATA[Please, help me with some directions and advises! 
I'm working with small microcontrollers and WinAPI is very , very unknown. 
(Un)fortunately, i need program , which: 
   - is talking with small device via RS232, 
   - receives strings, analises these strings , reformats them and outputs on 
   ...]]></description>
			<content:encoded><![CDATA[<div>Please, help me with some directions and advises!<br />
I'm working with small microcontrollers and WinAPI is very , very unknown.<br />
(Un)fortunately, i need program , which:<br />
   - is talking with small device via RS232,<br />
   - receives strings, analises these strings , reformats them and outputs on<br />
    WindowsApp  window.<br />
   - keyboard input must be redirected to serial port.<br />
In other words - goal is to make PC based terminal for this small device (which has 240x64 pixels display and some keypad).  <br />
  In this moment i want to learn faster <br />
  1) how to output text in graphic mode, how to control font parameters,<br />
  2) how to control stretching of window - i assume to work in window 240x64 or 480x128 , but what happens , when one resizes window?<br />
<br />
    Last few days i have played with WinBGI ( library, wrapper , which gives to me graphic control in known for me TurboPascal style). Problem here is size - i have about 2MB exe even on start, with 3 strings , drawed in window. Additionally , i'm not sure how stable is this library.<br />
     On serial side i experimented with one simple library, but found problems - characters are lost, even on low speed. (<a href="http://www.tetraedre.ch/advanced/serial2.php" target="_blank">Serial Communication for WIN32 (Event-driven)</a>). Maybe i'm wrong, but library does not specify any buffers, when comport is initialised with CreateFile.( Does Window have long buffers by default?)  So i'm planning to try other library - from <a href="http://www.ramondeklein.nl" target="_blank">Welcome to Ramon's homepage</a>. But this is other story...<br />
  I have Dev-Cpp installed and i want to learn. <br />
  Any advice and comment, link to library/ wrapper will be useful for me.<br />
  Thanks.<br />
Stefan</div>

]]></content:encoded>
			<category domain="http://cboard.cprogramming.com/windows-programming/">Windows Programming</category>
			<dc:creator>stefan63</dc:creator>
			<guid isPermaLink="true">http://cboard.cprogramming.com/windows-programming/121115-outtext-absolutelly-newbie.html</guid>
		</item>
		<item>
			<title>Empty child window...</title>
			<link>http://cboard.cprogramming.com/windows-programming/121106-empty-child-window.html</link>
			<pubDate>Thu, 29 Oct 2009 17:53:30 GMT</pubDate>
			<description><![CDATA[I'm trying to implement a child window so I can put buttons and such in it, though things aren't going to plan. This is what I've got: 
 
 
Code: 
--------- 
hChild = CreateWindowEx( NULL, "", NULL, WS_CHILD | WS_VISIBLE, 0, 0, 0, 0, hMainWindow, (HMENU)ID_CHILD, GetInstance(), NULL ); 
---------...]]></description>
			<content:encoded><![CDATA[<div>I'm trying to implement a child window so I can put buttons and such in it, though things aren't going to plan. This is what I've got:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">hChild = CreateWindowEx( NULL, &quot;&quot;, NULL, WS_CHILD | WS_VISIBLE, 0, 0, 0, 0, hMainWindow, (HMENU)ID_CHILD, GetInstance(), NULL );</code><hr />
</div>The problem is, hChild is always 0 (because it failed). I'm guessing the problem is that I don't have a WNDCLASSEX in there, but I want it to be empty. So what's wrong? Or am I going about this the complete wrong way?<br />
<br />
Cheers.<br />
<br />
EDIT: Sorry, I should've explained the situation more. What I'm trying to do is implement pages in my Tab Controls. I've got the tabs appearing and running fine, but I'm thinking I will add a child window for each page. When the user clicks on a tab, I'll use ShowWindow() to hide the old child window and display the new one. I've figured this would be a pretty good way of doing it (or is it?). So, more or less, how do you implement a child window into a tab, so that I can put in my other controls on the page?</div>

]]></content:encoded>
			<category domain="http://cboard.cprogramming.com/windows-programming/">Windows Programming</category>
			<dc:creator>yaya</dc:creator>
			<guid isPermaLink="true">http://cboard.cprogramming.com/windows-programming/121106-empty-child-window.html</guid>
		</item>
	</channel>
</rss>
